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/datadesk/django-bakery/get_day
LDU_FT
[ "<BEGIN>\n## `serve`", "Serve static files below a given point in the directory structure.", " To use, put a URL pattern such as::", " (r'^(?P<path>.*)$', 'django.views.static.serve',\n {'document_root' : '/path/to/my/files/'})", " in your URLconf. You must provide the ``document_roo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_day API. 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 get_day API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the day from the database in the format expected by the URL.
"Return the day from the database in the format expected by the URL."
104
false
datadesk/django-bakery
get_day
37,173
LDU_FT/graphql-python/graphql-core/parse_type_system_definition
LDU_FT
[ "<BEGIN>\n## `is_valid_value`", "Given a type and any value, return True if that value is valid.\n<END>", "<BEGIN>\n## `get_key_for_schema_and_document_string`", "This method returns a unique key given a schema and a request_string\n<END>", "<BEGIN>\n## `document_from_string`", "This method returns a Grap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_type_system_definition 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 parse_type_system_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
TypeSystemDefinition : - SchemaDefinition - TypeDefinition - TypeExtensionDefinition - DirectiveDefinition TypeDefinition : - ScalarTypeDefinition - ObjectTypeDefinition - InterfaceTypeDefinition - UnionTypeDefinition - EnumTypeDefinition - Inpu...
"TypeSystemDefinition :\n - SchemaDefinition\n - TypeDefinition\n - TypeExtensionDefinition\n - DirectiveDefinition\n\n TypeDefinition :\n - ScalarTypeDefinition\n - ObjectTypeDefinition\n - InterfaceTypeDefinition\n - UnionTypeDefinition\n - EnumTypeDefinition\...
128
false
graphql-python/graphql-core
parse_type_system_definition
37,174
LDU_FT/spacetelescope/stsci.tools/cfgGetBool
LDU_FT
[ "<BEGIN>\n## `stsci`", "For STScI GEIS files, need to do extra steps.\n<END>", "<BEGIN>\n## `stsci2`", "For STScI GEIS files, need to do extra steps.\n<END>", "<BEGIN>\n## `readgeis`", "Input GEIS files \"input\" will be read and a HDUList object will\n be returned.", " The user can use the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cfgGetBool API. 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 cfgGetBool API. 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...
Get a stringified val from a ConfigObj obj and return it as bool
"Get a stringified val from a ConfigObj obj and return it as bool"
917
false
spacetelescope/stsci.tools
cfgGetBool
37,175
LDU_FT/pjuren/pyokit/build_genome_alignment_from_file
LDU_FT
[ "<BEGIN>\n## `__trim_extensions_dot`", "trim leading dots from extensions and drop any empty strings.\n<END>", "<BEGIN>\n## `__split_genomic_interval_filename`", "Split a filename of the format chrom:start-end.ext or chrom.ext (full chrom).", " :return: tuple of (chrom, start, end) -- 'start' and 'end' are...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_genome_alignment_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_genome_alignment_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
build a genome alignment by loading from a single MAF file. :param ga_path: the path to the file to load. :param ref_spec: which species in the MAF file is the reference? :param idx_path: if provided, use this index to generate a just-in-time genome alignment, instead of loading the file imme...
"build a genome alignment by loading from a single MAF file.\n\n :param ga_path: the path to the file to load.\n :param ref_spec: which species in the MAF file is the reference?\n :param idx_path: if provided, use this index to generate a just-in-time\n genome alignment, instead of loading the fil...
519
false
pjuren/pyokit
build_genome_alignment_from_file
37,176
LDU_FT/avalente/appmetrics/with_meter
LDU_FT
[ "<BEGIN>\n## `notify`", "Increment or decrement the value, according to the given value's sign", " The value should be an integer, an attempt to cast it to integer will be made\n<END>", "<BEGIN>\n## `new_metric`", "Create a new metric of the given class.", " Raise DuplicateMetricError if the giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_meter API. 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 with_meter API. 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...
Call-counting decorator: each time the wrapped function is called the named meter is incremented by one. metric_args and metric_kwargs are passed to new_meter()
"Call-counting decorator: each time the wrapped function is called\n the named meter is incremented by one.\n metric_args and metric_kwargs are passed to new_meter()"
120
false
avalente/appmetrics
with_meter
37,177
LDU_FT/SylvanasSun/python-common-cache/acquire_writer
LDU_FT
[ "<BEGIN>\n## `_enable_lock`", "The decorator for ensuring thread-safe when current cache instance is concurrent status.\n<END>", "<BEGIN>\n## `_enable_cleanup`", "Execute cleanup operation when the decorated function completed.\n<END>", "<BEGIN>\n## `_enable_thread_pool`", "Use thread pool for executing a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acquire_writer API. 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 acquire_writer API. 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...
Acquire a write lock, only one thread can hold this lock and only when no read locks are also held.
"Acquire a write lock, only one thread can hold this lock\n and only when no read locks are also held."
71
false
SylvanasSun/python-common-cache
acquire_writer
37,178
LDU_FT/alvinwan/tex2py/findHierarchy
LDU_FT
[ "<BEGIN>\n## `findHierarchy`", "Find hierarchy for the LaTeX source.", " >>> TOC.fromLatex(r'\\subsection{yo}\\section{hello}').findHierarchy()\n ('section', 'subsection')\n >>> TOC.fromLatex(\n ... r'\\subsubsubsection{huh}\\subsubsection{hah}').findHierarchy()\n ('subsubsect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findHierarchy API. 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 findHierarchy API. 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...
Find hierarchy for the LaTeX source. >>> TOC.fromLatex(r'\subsection{yo}\section{hello}').findHierarchy() ('section', 'subsection') >>> TOC.fromLatex( ... r'\subsubsubsection{huh}\subsubsection{hah}').findHierarchy() ('subsubsection', 'subsubsubsection') >>> TOC.fromLate...
"Find hierarchy for the LaTeX source.\n\n >>> TOC.fromLatex(r'\\subsection{yo}\\section{hello}').findHierarchy()\n ('section', 'subsection')\n >>> TOC.fromLatex(\n ... r'\\subsubsubsection{huh}\\subsubsection{hah}').findHierarchy()\n ('subsubsection', 'subsubsubsection')\n >>> ...
18
false
alvinwan/tex2py
findHierarchy
37,179
LDU_FT/tyiannak/pyAudioAnalysis/dirsWavFeatureExtraction
LDU_FT
[ "<BEGIN>\n## `recordAnalyzeAudio`", "recordAnalyzeAudio(duration, outputWavFile, midTermBufferSizeSec, modelName, modelType)", "\tThis function is used to record and analyze audio segments, in a fix window basis.", "\tARGUMENTS: \n\t- duration\t\t\ttotal recording duration\n\t- outputWavFile\t\t\tpath of the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dirsWavFeatureExtraction 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 dirsWavFeatureExtraction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Same as dirWavFeatureExtraction, but instead of a single dir it takes a list of paths as input and returns a list of feature matrices. EXAMPLE: [features, classNames] = a.dirsWavFeatureExtraction(['audioData/classSegmentsRec/noise','audioData/classSegmentsRec/speech', ...
"Same as dirWavFeatureExtraction, but instead of a single dir it\n takes a list of paths as input and returns a list of feature matrices.\n EXAMPLE:\n [features, classNames] =\n a.dirsWavFeatureExtraction(['audioData/classSegmentsRec/noise','audioData/classSegmentsRec/speech',\n ...
99
false
tyiannak/pyAudioAnalysis
dirsWavFeatureExtraction
37,180
LDU_FT/CartoDB/cartoframes/_retrieve
LDU_FT
[ "<BEGIN>\n## `get_scheme_cartocss`", "Get TurboCARTO CartoCSS based on input parameters\n<END>", "<BEGIN>\n## `custom`", "Create a custom scheme.", " Args:\n colors (list of str): List of hex values for styling data\n bins (int, optional): Number of bins to style by. If not given, the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _retrieve API. 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 _retrieve API. 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...
Retrives credentials from a file. Defaults to the user config directory
"Retrives credentials from a file. Defaults to the user config\n directory"
217
false
CartoDB/cartoframes
_retrieve
37,181
LDU_FT/binux/pyspider/decode_unicode_string
LDU_FT
[ "<BEGIN>\n## `get_encoding`", "Get encoding from request headers or page head.\n<END>", "<BEGIN>\n## `encoding`", "encoding of Response.content.", " if Response.encoding is None, encoding will be guessed\n by header or content or chardet if available.\n<END>", "<BEGIN>\n## `text`", "Conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_unicode_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_unicode_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Decode string encoded by `unicode_string`
"Decode string encoded by `unicode_string`"
126
false
binux/pyspider
decode_unicode_string
37,182
LDU_FT/Kane610/axis/_prepare_event
LDU_FT
[ "<BEGIN>\n## `session_request`", "Do HTTP/S request and return response as a string.\n<END>", "<BEGIN>\n## `get_event_list`", "Get a dict of supported events from device.\n<END>", "<BEGIN>\n## `_prepare_event`", "Converts event instances to a relevant dictionary.\n<END>", "<BEGIN>\n## `process_raw`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Converts event instances to a relevant dictionary.
"Converts event instances to a relevant dictionary."
55
false
Kane610/axis
_prepare_event
37,183
LDU_FT/silver-castle/mach9/is_stream_handler
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 is_stream_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_stream_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Handler for request is stream or not. :param request: Request object :return: bool
"Handler for request is stream or not.\n :param request: Request object\n :return: bool"
78
false
silver-castle/mach9
is_stream_handler
37,184
LDU_FT/jmoiron/speedparser/_parse_date_iso8601
LDU_FT
[ "<BEGIN>\n## `strip_outer_tag`", "Strips the outer tag, if text starts with a tag. Not entity aware;\n designed to quickly strip outer tags from lxml cleaner output. Only\n checks for <p> and <div> outer tags.\n<END>", "<BEGIN>\n## `munge_author`", "If an author contains an email and a name in it, mak...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_date_iso8601 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 _parse_date_iso8601 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...
Parse a variety of ISO-8601-compatible formats like 20040105
"Parse a variety of ISO-8601-compatible formats like 20040105"
32
false
jmoiron/speedparser
_parse_date_iso8601
37,185
LDU_FT/progrium/skypipe/setup_dotcloud_account
LDU_FT
[ "<BEGIN>\n## `sp_msg`", "Produces skypipe protocol multipart message\n<END>", "<BEGIN>\n## `check_skypipe_endpoint`", "Skypipe endpoint checker -- pings endpoint", " Returns True if endpoint replies with valid header,\n Returns False if endpoint replies with invalid header,\n Returns None if endpoi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_dotcloud_account 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 setup_dotcloud_account API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Gets user/pass for dotcloud, performs auth, and stores keys
"Gets user/pass for dotcloud, performs auth, and stores keys"
22
false
progrium/skypipe
setup_dotcloud_account
37,186
LDU_FT/JohnVinyard/zounds/synthesize
LDU_FT
[ "<BEGIN>\n## `validate`", "Ensure that the size of the dimension matches the number of bands in the\n scale", " Raises:\n ValueError: when the dimension size and number of bands don't match\n<END>", "<BEGIN>\n## `resampled`", "Create a basic processing pipeline that can resample al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the synthesize API. 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 synthesize API. 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...
Synthesize white noise Args: duration (numpy.timedelta64): The duration of the synthesized sound
"Synthesize white noise\n\n Args:\n duration (numpy.timedelta64): The duration of the synthesized sound"
97
false
JohnVinyard/zounds
synthesize
37,187
LDU_FT/nion-software/nionswift-instrumentation-kit/apply_metadata_groups
LDU_FT
[ "<BEGIN>\n## `initialize_state`", "Call this to initialize the state of the UI after everything has been connected.\n<END>", "<BEGIN>\n## `handle_play_clicked`", "Call this when the user clicks the play/pause button.\n<END>", "<BEGIN>\n## `set_probe_position`", "Set the probe position, in normalized coord...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_metadata_groups 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 apply_metadata_groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Apply metadata groups to properties. Metadata groups is a tuple with two elements. The first is a list of strings representing a dict-path in which to add the controls. The second is a control group from which to read a list of controls to be added as name value pairs to the dict-path.
"Apply metadata groups to properties.\n\n Metadata groups is a tuple with two elements. The first is a list of strings representing a dict-path in which\n to add the controls. The second is a control group from which to read a list of controls to be added as name\n value pairs to the dict-path."
37
false
nion-software/nionswift-instrumentation-kit
apply_metadata_groups
37,188
LDU_FT/swimlane/swimlane-python/record_factory
LDU_FT
[ "<BEGIN>\n## `add_record_references`", "Bulk operation to directly add record references without making any additional requests", " Warnings:\n Does not perform any app, record, or target app/record validation", " Args:\n app_id (str): Full App ID string\n record...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record_factory API. 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 record_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a temporary Record instance to be used for field validation and value parsing Args: app (App): Target App to create a transient Record instance for fields (dict): Optional dict of fields and values to set on new Record instance before returning Returns: Record: Unsaved Record in...
"Return a temporary Record instance to be used for field validation and value parsing\n\n Args:\n app (App): Target App to create a transient Record instance for\n fields (dict): Optional dict of fields and values to set on new Record instance before returning\n\n Returns:\n Record: Unsaved R...
273
false
swimlane/swimlane-python
record_factory
37,189
LDU_FT/celiao/rtsimple/dvds_top_rentals
LDU_FT
[ "<BEGIN>\n## `search`", "Get movies that match the search query string from the API.", " Args:\n q (optional): plain text search query; remember to URI encode\n page_limit (optional): number of search results to show per page, \n default=30\n pag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dvds_top_rentals API. 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 dvds_top_rentals API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Gets the current opening movies from the API. Args: limit (optional): limits the number of movies returned, default=10 country (optional): localized data for selected country, default="us" Returns: A dict respresentation of the JSON returned from the API.
"Gets the current opening movies from the API.\n\n Args:\n limit (optional): limits the number of movies returned, default=10\n country (optional): localized data for selected country, default=\"us\"\n\n Returns:\n A dict respresentation of the JSON returned from the API."
51
false
celiao/rtsimple
dvds_top_rentals
37,190
LDU_FT/heikomuller/sco-client/run
LDU_FT
[ "<BEGIN>\n## `download_file`", "Download attached file as temporary file.", " Parameters\n ----------\n url : string\n SCO-API download Url\n suffix : string, optional\n If suffix is specified, the name of the downloaded file will end with\n that suffix, otherwise there will be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Create a new model run with given name, arguments, and properties. Parameters ---------- model_id : string Unique model identifier name : string User-defined name for experiment arguments : Dictionary Dictionary of arguments for model run ...
"Create a new model run with given name, arguments, and properties.\n Parameters\n ----------\n model_id : string\n Unique model identifier\n name : string\n User-defined name for experiment\n arguments : Dictionary\n Dictionary of arguments for model ...
164
false
heikomuller/sco-client
run
37,191
LDU_FT/Genida/django-appsettings/get_value
LDU_FT
[ "<BEGIN>\n## `check`", "Class method to check every settings.", " Will raise an ``ImproperlyConfigured`` exception with explanation.\n<END>", "<BEGIN>\n## `default_value`", "Property to return the default value.", " If the default value is callable and call_default is True, return\n t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return dictionary with values of subsettings. Returns: dict: values of subsettings.
"Return dictionary with values of subsettings.\n\n Returns:\n dict: values of subsettings."
31
false
Genida/django-appsettings
get_value
37,192
LDU_FT/pip-services3-python/pip-services3-commons-python/get_optional
LDU_FT
[ "<BEGIN>\n## `equals_as`", "Compares this object value to specified specified value.\n When direct comparison gives negative results it converts\n values to type specified by type code and compare them again.", " :param value_type: the Typecode type that defined the type of the result", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_optional API. 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_optional API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Gets all optional dependencies by their name. :param name: the dependency name to locate. :return: a list with found dependencies or empty list of no dependencies was found.
"Gets all optional dependencies by their name.\n\n :param name: the dependency name to locate.\n\n :return: a list with found dependencies or empty list of no dependencies was found."
811
false
pip-services3-python/pip-services3-commons-python
get_optional
37,193
LDU_FT/sacherjj/array_devices/__set_buffer_start
LDU_FT
[ "<BEGIN>\n## `setting`", "Load setting (Amps, Watts, or Ohms depending on program mode)\n<END>", "<BEGIN>\n## `partial_steps_data`", "Iterates 5 steps from start position and\n provides tuple for packing into buffer.", " returns (0, 0) if stpe doesn't exist.", " :param start: Position...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __set_buffer_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __set_buffer_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
This sets the first three bytes and clears the other 23 bytes. :param command: Command Code to set :return: None
"This sets the first three bytes and clears the other 23 bytes.\n :param command: Command Code to set\n :return: None"
44
false
sacherjj/array_devices
__set_buffer_start
37,194
LDU_FT/jahuth/litus/label_by_time
LDU_FT
[ "<BEGIN>\n## `create_timing_signals`", "Creates a linear list/np.array of timestamps and a list of integers, specifying the sequence \n and number of levels.", " The levels are first rotated on the first dimension, then the second and so on. If the \n last dimension is -1, the number of lev...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the label_by_time API. 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 label_by_time API. 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 labeled spike data structure time_label_array is list of lists (or matrix), containing a timestamp in the first column (or first element of each element) and indizes that are to be applied to the data in the remaining columns / elements. This fun...
"creates a labeled spike data structure\n\n time_label_array is list of lists (or matrix), containing a timestamp in the \n first column (or first element of each element) and indizes that are to be \n applied to the data in the remaining columns / elements.\n\n T...
190
false
jahuth/litus
label_by_time
37,195
LDU_FT/pystorm/pystorm/raise_exception
LDU_FT
[ "<BEGIN>\n## `emit`", "Emit a spout Tuple message.", " :param tup: the Tuple to send to Storm, should contain only\n JSON-serializable data.\n :type tup: list or tuple\n :param tup_id: the ID for the Tuple. Leave this blank for an\n unreliable emit.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raise_exception API. 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 raise_exception API. 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...
Report an exception back to Storm via logging. :param exception: a Python exception. :param tup: a :class:`Tuple` object.
"Report an exception back to Storm via logging.\n\n :param exception: a Python exception.\n :param tup: a :class:`Tuple` object."
103
false
pystorm/pystorm
raise_exception
37,196
LDU_FT/DistrictDataLabs/yellowbrick/_draw_pr_curve
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 _draw_pr_curve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _draw_pr_curve API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Helper function to draw a precision-recall curve with specified settings
"Helper function to draw a precision-recall curve with specified settings"
1,283
true
DistrictDataLabs/yellowbrick
_draw_pr_curve
37,197
LDU_FT/theonion/django-bulbs/preview
LDU_FT
[ "<BEGIN>\n## `save`", "Kicks off celery task to re-save associated special coverages to percolator", " :param args: inline arguments (optional)\n :param kwargs: keyword arguments\n :return: `bulbs.campaigns.Campaign`\n<END>", "<BEGIN>\n## `get_field_info`", "This method is basically a m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preview API. 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 preview API. 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...
Preview transactions, but don't actually save changes to list.
"Preview transactions, but don't actually save changes to list."
277
false
theonion/django-bulbs
preview
37,198
LDU_FT/fedora-infra/fedmsg-atomic-composer/sync_in
LDU_FT
[ "<BEGIN>\n## `consume`", "Called with each incoming fedmsg.", " From here we trigger an rpm-ostree compose by touching a specific file\n under the `touch_dir`. Then our `doRead` method is called with the\n output of the rpm-ostree-toolbox treecompose, which we monitor to\n determine ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync_in API. 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 sync_in API. 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...
Sync the canonical repo to our local working directory
"Sync the canonical repo to our local working directory"
22
false
fedora-infra/fedmsg-atomic-composer
sync_in
37,199
LDU_FT/petl-developers/petl/toarray
LDU_FT
[ "<BEGIN>\n## `look`", "Format a portion of the table as text for inspection in an interactive\n session. E.g.::", " >>> import petl as etl\n >>> table1 = [['foo', 'bar'],\n ... ['a', 1],\n ... ['b', 2]]\n >>> etl.look(table1)\n +-----+-----+\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toarray API. 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 toarray API. 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...
Load data from the given `table` into a `numpy <http://www.numpy.org/>`_ structured array. E.g.:: >>> import petl as etl >>> table = [('foo', 'bar', 'baz'), ... ('apples', 1, 2.5), ... ('oranges', 3, 4.4), ... ('pears', 7, .1)] >>> a = etl....
"Load data from the given `table` into a\n `numpy <http://www.numpy.org/>`_ structured array. E.g.::\n\n >>> import petl as etl\n >>> table = [('foo', 'bar', 'baz'),\n ... ('apples', 1, 2.5),\n ... ('oranges', 3, 4.4),\n ... ('pears', 7, .1)]\n >>>...
789
false
petl-developers/petl
toarray
37,200
LDU_FT/edeposit/edeposit.amqp.storage/_remove_from
LDU_FT
[ "<BEGIN>\n## `render_trees`", "Render list of `trees` to HTML.", " Args:\n trees (list): List of :class:`.Tree`.\n path_composer (fn reference): Function used to compose paths from UUID.\n Look at :func:`.compose_tree_path` from :mod:`.web_tools`.", " Returns:\n str: HTML...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_from API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_from API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Remove `item` from `db` at `index`. Note: This function is inverse to :meth:`._add_to`. Args: db (dict-obj): Dict-like object used to connect to database. index (str): Index used to look in `db`. item (obj): Persistent object, which may be stored in DB.
"Remove `item` from `db` at `index`.\n\n Note:\n This function is inverse to :meth:`._add_to`.\n\n Args:\n db (dict-obj): Dict-like object used to connect to database.\n index (str): Index used to look in `db`.\n item (obj): Persistent object, which may be store...
140
false
edeposit/edeposit.amqp.storage
_remove_from
37,201
LDU_FT/ronhanson/python-tbx/update
LDU_FT
[ "<BEGIN>\n## `static_singleton`", "STATIC Singleton Design Pattern Decorator\n Class is initialized with arguments passed into the decorator.", " :Usage: \n >>> @static_singleton('yop')\n class Bob(Person):\n def __init__(arg1):\n self.info = arg1\n def says...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update virtual env with requirements packages.
"Update virtual env with requirements packages."
85
false
ronhanson/python-tbx
update
37,202
LDU_FT/ericsomdahl/python-bittrex/get_orderbook
LDU_FT
[ "<BEGIN>\n## `_api_query`", "Queries Bittrex", " :param request_url: fully-formed URL to request\n :type options: dict\n :return: JSON response from Bittrex\n :rtype : dict\n<END>", "<BEGIN>\n## `get_market_summary`", "Used to get the last 24 hour summary of all active\n e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_orderbook API. 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_orderbook API. 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...
Used to get retrieve the orderbook for a given market. The depth_type parameter is IGNORED under v2.0 and both orderbooks are always returned Endpoint: 1.1 /public/getorderbook 2.0 /pub/Market/GetMarketOrderBook :param market: String literal for the market (ex: BTC-LTC) ...
"Used to get retrieve the orderbook for a given market.\n\n The depth_type parameter is IGNORED under v2.0 and both orderbooks are always returned\n\n Endpoint:\n 1.1 /public/getorderbook\n 2.0 /pub/Market/GetMarketOrderBook\n\n :param market: String literal for the market (ex: BTC-LT...
58
false
ericsomdahl/python-bittrex
get_orderbook
37,203
LDU_FT/fmd/lazyconf/set
LDU_FT
[ "<BEGIN>\n## `data_file`", "Gets the full path to the file in which to save/load configured data.\n<END>", "<BEGIN>\n## `schema_file`", "Gets the full path to the file in which to load configuration schema.\n<END>", "<BEGIN>\n## `add_ignore`", "Writes a .gitignore file to ignore the generated data file.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. 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 set API. 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...
Sets a single value in a preconfigured data file. Arguments: key -- The full dot-notated key to set the value for. value -- The value to set.
"Sets a single value in a preconfigured data file.\n\n Arguments:\n key -- The full dot-notated key to set the value for.\n value -- The value to set."
25
false
fmd/lazyconf
set
37,204
LDU_FT/pypa/pipenv/extract_zipped_paths
LDU_FT
[ "<BEGIN>\n## `site_data_dir`", "r\"\"\"Return full path to the user-shared data dir for this application.", " \"appname\" is the name of application.\n If None, just the system directory is returned.\n \"appauthor\" (only used on Windows) is the name of the\n appauthor or dis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_zipped_paths 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 extract_zipped_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Replace nonexistent paths that look like they refer to a member of a zip archive with the location of an extracted copy of the target, or else just return the provided path unchanged.
"Replace nonexistent paths that look like they refer to a member of a zip\n archive with the location of an extracted copy of the target, or else\n just return the provided path unchanged."
4,833
true
pypa/pipenv
extract_zipped_paths
37,205
LDU_FT/alvinwan/TexSoup/num_forward_until
LDU_FT
[ "<BEGIN>\n## `all`", "r\"\"\"Returns all content in this node, regardless of whitespace or\n not. This includes all LaTeX needed to reconstruct the original source.", " >>> from TexSoup import TexSoup\n >>> soup = TexSoup(r'''\n ... \\newcommand{reverseconcat}[3]{#3#2#1}\n ......
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the num_forward_until API. 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 num_forward_until API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Forward until one of the provided matches is found. :param condition: set of valid strings
"Forward until one of the provided matches is found.\n\n :param condition: set of valid strings"
166
false
alvinwan/TexSoup
num_forward_until
37,206
LDU_FT/git-afsantos/bonsai/get_branches
LDU_FT
[ "<BEGIN>\n## `_build_for_statement`", "NOTE: this is not a complete implementation of for loop parsing.\n Turns out for loops allow a number of wacky things going on,\n such as declaring a variable in place of a condition.\n These more peculiar cases are not covered. See\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_branches API. 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_branches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return a list with the conditional branch and the default branch.
"Return a list with the conditional branch and the default branch."
111
false
git-afsantos/bonsai
get_branches
37,207
LDU_FT/delfick/gitmit/remove
LDU_FT
[ "<BEGIN>\n## `relpath_for`", "Find the relative path from here from the parent_dir\n<END>", "<BEGIN>\n## `find`", "Find all the files we want to find commit times for, and any extra files\n under symlinks.", " Then find the commit times for those files and return a dictionary of\n {rela...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Remove a path from the tree prefix is a tuple of the parts in the dirpath name is a string representing the name of the file itself. Any empty folders from the point of the file backwards to the root of the tree is removed.
"Remove a path from the tree\n\n prefix is a tuple of the parts in the dirpath\n\n name is a string representing the name of the file itself.\n\n Any empty folders from the point of the file backwards to the root of\n the tree is removed."
57
false
delfick/gitmit
remove
37,208
LDU_FT/mdavidsaver/p4p/rpc
LDU_FT
[ "<BEGIN>\n## `_sync`", "I will wait until all pending handlers cothreads have completed\n<END>", "<BEGIN>\n## `close`", "Close PV, disconnecting any clients.", " :param bool destroy: Indicate \"permanent\" closure. Current clients will not see subsequent open().\n :param bool sync: When block...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rpc API. 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 rpc API. 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...
Perform RPC operation on PV :param name: A single name string or list of name strings :param callable handler: Completion notification. Called with a Value, RemoteError, or Cancelled :param request: A :py:class:`p4p.Value` or string to qualify this request, or None to use a default. :...
"Perform RPC operation on PV\n\n :param name: A single name string or list of name strings\n :param callable handler: Completion notification. Called with a Value, RemoteError, or Cancelled\n :param request: A :py:class:`p4p.Value` or string to qualify this request, or None to use a default.\n\n ...
201
false
mdavidsaver/p4p
rpc
37,209
LDU_FT/ambitioninc/newrelic-api/create
LDU_FT
[ "<BEGIN>\n## `update`", "Updates any of the optional parameters of the alert condition nrql", " :type alert_condition_nrql_id: int\n :param alert_condition_nrql_id: Alerts condition NRQL id to update", " :type policy_id: int\n :param policy_id: Alert policy id where target alert co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This API endpoint creates a dashboard and all defined widgets. :type dashboard: dict :param dashboard: Dashboard Dictionary :rtype dict :return: The JSON response of the API :: { "dashboard": { "id": "integer", ...
"This API endpoint creates a dashboard and all defined widgets.\n\n :type dashboard: dict\n :param dashboard: Dashboard Dictionary\n\n :rtype dict\n :return: The JSON response of the API\n\n ::\n {\n \"dashboard\": {\n \"id\": \"integer\",\...
299
false
ambitioninc/newrelic-api
create
37,210
LDU_FT/WhyNotHugo/django-afip/validate
LDU_FT
[ "<BEGIN>\n## `catch_errors`", "Catches specific errors in admin actions and shows a friendly error.\n<END>", "<BEGIN>\n## `numbers`", "Returns the barcode's number without the verification digit.", " :return: list(int)\n<END>", "<BEGIN>\n## `verification_digit`", "Returns the verification digit f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Validates all receipts matching this queryset. Note that, due to how AFIP implements its numbering, this method is not thread-safe, or even multiprocess-safe. Because of this, it is possible that not all instances matching this queryset are validated properly. Obviously, only successfu...
"Validates all receipts matching this queryset.\n\n Note that, due to how AFIP implements its numbering, this method is not\n thread-safe, or even multiprocess-safe.\n\n Because of this, it is possible that not all instances matching this\n queryset are validated properly. Obviously, only su...
96
false
WhyNotHugo/django-afip
validate
37,211
LDU_FT/angr/angr/_get_finished_functions
LDU_FT
[ "<BEGIN>\n## `_alias_analysis`", "Perform a forward execution and perform alias analysis. Note that this analysis is fast, light-weight, and by no\n means complete. For instance, most arithmetic operations are not supported.", " - Depending on user settings, stack pointer and stack base pointer wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_finished_functions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_finished_functions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Obtain all functions of which we have finished analyzing. As _jobs_to_analyze_per_function is a defaultdict(), if a function address shows up in it with an empty job list, we consider we have exhausted all jobs of this function (both current jobs and pending jobs), thus the analysis of this function is ...
"Obtain all functions of which we have finished analyzing. As _jobs_to_analyze_per_function is a defaultdict(),\n if a function address shows up in it with an empty job list, we consider we have exhausted all jobs of this\n function (both current jobs and pending jobs), thus the analysis of this function ...
2,448
true
angr/angr
_get_finished_functions
37,212
LDU_FT/xtream1101/web-wrapper/_proxy_extension
LDU_FT
[ "<BEGIN>\n## `get_image_dimension`", "Return a tuple that contains (width, height)\n Pass in a url to an image and find out its size without loading the whole file\n If the image wxh could not be found, the tuple will contain `None` values\n<END>", "<BEGIN>\n## `screenshot`", "This can be used n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _proxy_extension API. 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 _proxy_extension API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Creates a chrome extension for the proxy Only need to be done this way when using a proxy with auth
"Creates a chrome extension for the proxy\n Only need to be done this way when using a proxy with auth"
39
false
xtream1101/web-wrapper
_proxy_extension
37,213
LDU_FT/mozilla/socorrolib/action
LDU_FT
[ "<BEGIN>\n## `klass_to_pypath`", "when a class is defined within the module that is being executed as\n main, the module name will be specified as '__main__' even though the\n module actually had its own real name. This ends up being very confusing\n to Configman as it tries to refer to a class by its p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the action API. 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 action API. 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 default action for Support Classifiers invokes any derivied _action function, trapping any exceptions raised in the process. We are obligated to catch these exceptions to give subsequent rules the opportunity to act and perhaps mitigate the error. An error during the action applica...
"the default action for Support Classifiers invokes any derivied\n _action function, trapping any exceptions raised in the process. We\n are obligated to catch these exceptions to give subsequent rules the\n opportunity to act and perhaps mitigate the error. An error during the\n action ap...
155
false
mozilla/socorrolib
action
37,214
LDU_FT/JarryShaw/DictDumper/_append_integer
LDU_FT
[ "<BEGIN>\n## `_append_value`", "Call this function to write contents.", " Keyword arguments:\n * value - dict, content to be dumped\n * _file - FileIO, output file\n * _name - str, name of current content dict\n<END>", "<BEGIN>\n## `_append_array`", "Call this functio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _append_integer API. 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_integer API. 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...
Call this function to write integer contents. Keyword arguments: * value - dict, content to be dumped * _file - FileIO, output file
"Call this function to write integer contents.\n\n Keyword arguments:\n * value - dict, content to be dumped\n * _file - FileIO, output file"
51
false
JarryShaw/DictDumper
_append_integer
37,215
LDU_FT/PMEAL/porespy/extract_subsection
LDU_FT
[ "<BEGIN>\n## `show_mesh`", "r\"\"\"\n Visualizes the mesh of a region as obtained by ``get_mesh`` function in\n the ``metrics`` submodule.", " Parameters\n ----------\n mesh : tuple\n A mesh returned by ``skimage.measure.marching_cubes``", " Returns\n -------\n fig : Matplotlib ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_subsection 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 extract_subsection 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...
r""" Extracts the middle section of a image Parameters ---------- im : ND-array Image from which to extract the subsection shape : array_like Can either specify the size of the extracted section or the fractional size of the image to extact. Returns ------- ima...
"r\"\"\"\n Extracts the middle section of a image\n\n Parameters\n ----------\n im : ND-array\n Image from which to extract the subsection\n\n shape : array_like\n Can either specify the size of the extracted section or the fractional\n size of the image to extact.\n\n Returns\n ...
688
false
PMEAL/porespy
extract_subsection
37,216
LDU_FT/Metatab/metatab/find
LDU_FT
[ "<BEGIN>\n## `split_term`", "Split a term in to parent and record term components\n :param term: combined term text\n :return: Tuple of parent and record term\n<END>", "<BEGIN>\n## `split_term_lower`", "Like split_term, but also lowercases both parent and record term\n :param term: combin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a list of terms, possibly in a particular section. Use joined term notation, such as 'Root.Name' The kwargs arg is used to set term properties, all of which match returned terms, so ``name='foobar'`` will match terms that have a ``name`` property of ``foobar`` :param term: The type of term to find, in f...
"Return a list of terms, possibly in a particular section. Use joined term notation, such as 'Root.Name' The kwargs arg is used to set term properties, all of which match returned terms, so ``name='foobar'`` will match terms that have a ``name`` property of ``foobar``\n\n :param term: The type of term to find, i...
102
false
Metatab/metatab
find
37,217
LDU_FT/JawboneHealth/jhhalchemy/read_time_range
LDU_FT
[ "<BEGIN>\n## `read_by`", "filter_by query helper that handles soft delete logic. If your query conditions require expressions, use read.", " :param removed: whether to include soft-deleted rows\n :param kwargs: where clause mappings to pass to filter_by\n :return: row object generator\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_time_range API. 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 read_time_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get all timezones set within a given time. Uses time_dsc_index SELECT * FROM <table> WHERE time_order <= -<start_timestamp> AND time_order >= -<end_timestamp> :param args: SQLAlchemy filter criteria, (e.g., uid == uid, type == 1) :param kwargs: start_timestamp and end_t...
"Get all timezones set within a given time. Uses time_dsc_index\n\n SELECT *\n FROM <table>\n WHERE time_order <= -<start_timestamp>\n AND time_order >= -<end_timestamp>\n\n :param args: SQLAlchemy filter criteria, (e.g., uid == uid, type == 1)\n :param kwargs: start_timestamp ...
23
false
JawboneHealth/jhhalchemy
read_time_range
37,218
LDU_FT/ska-sa/hypercube/array_slice_index
LDU_FT
[ "<BEGIN>\n## `bytes_required`", "Returns\n -------\n int\n Estimated number of bytes required by arrays registered\n on the cube, taking their extents into account.\n<END>", "<BEGIN>\n## `register_dimension`", "Registers a dimension on this cube.", " .. code-block:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the array_slice_index API. 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 array_slice_index API. 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 tuple of slices, each slice equal to the slice(lower_extent, upper_extent, 1) of the dimensions of array_name. .. code-block:: python cube.register("uvw", ("ntime", "na", 3), np.float64) idx = cube.array_slice_index("uvw") uvw[idx].sum() ...
"Returns a tuple of slices, each slice equal to the\n slice(lower_extent, upper_extent, 1) of the dimensions\n of array_name.\n\n .. code-block:: python\n\n cube.register(\"uvw\", (\"ntime\", \"na\", 3), np.float64)\n\n idx = cube.array_slice_index(\"uvw\")\n uvw[id...
163
false
ska-sa/hypercube
array_slice_index
37,219
LDU_FT/IrvKalb/pygwidgets/handleEvent
LDU_FT
[ "<BEGIN>\n## `setLoc`", "Sets a new location (and changes the rect loc) for this widget.\n<END>", "<BEGIN>\n## `handleEvent`", "This method should be called every time through the main loop.\r", " It handles showing the up, over, and down states of the button.\r", " Parameters:\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handleEvent API. 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 handleEvent API. 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...
This method should be called every time through the main loop. It handles all of the keyboard key actions Parameters: | eventObj - the event object obtained by calling pygame.event.get() Returns: | False most of the time | True when the user clicks...
"This method should be called every time through the main loop.\r\n\r\n It handles all of the keyboard key actions\r\n\r\n Parameters:\r\n | eventObj - the event object obtained by calling pygame.event.get()\r\n\r\n Returns:\r\n | False most of the time\r\n | True w...
70
false
IrvKalb/pygwidgets
handleEvent
37,220
LDU_FT/zeaphoo/reston/save
LDU_FT
[ "<BEGIN>\n## `get_access_flags_string`", "Transform an access flags to the corresponding string", " :param value: the value of the access flags\n :type value: int", " :rtype: string\n<END>", "<BEGIN>\n## `get_shorty_idx_value`", "Return the string associated to the shorty_idx", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return the dex (with the modifications) into raw format (fix checksums) (beta: do not use !) :rtype: string
"Return the dex (with the modifications) into raw format (fix checksums)\n (beta: do not use !)\n\n :rtype: string"
152
false
zeaphoo/reston
save
37,221
LDU_FT/Alveo/pyalveo/add_primary_text
LDU_FT
[ "<BEGIN>\n## `get_all`", "Retrieve the metadata for all items in this list from the server,\n as Item objects", " :rtype: List\n :returns: a List of the corresponding Item objects\n :type force_download: Boolean\n :param force_download: True to download from the server\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_primary_text API. 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_primary_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Add the given primary text to the cache database, updating the existing record if the primary text is already present :type item_url: String or Item :param item_url: the URL of the corresponding item, or an Item object :type primary_text: String :param primary_text: the item's p...
"Add the given primary text to the cache database, updating\n the existing record if the primary text is already present\n\n :type item_url: String or Item\n :param item_url: the URL of the corresponding item, or an Item object\n :type primary_text: String\n :param primary_text: the i...
268
false
Alveo/pyalveo
add_primary_text
37,222
LDU_FT/bububa/pyTOP/fullinfo_get
LDU_FT
[ "<BEGIN>\n## `ordersku_update`", "taobao.trade.ordersku.update 更新交易订单的销售属性", " 需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能\n<END>", "<BEGIN>\n## `get`", "taobao.topats.result.get 获取异步任务结果", " 使用指南:http://open.taobao.com/doc/detail.htm?id=30 ", " - 1.此接口用于获取异步任务处理的结果,传入的task_id必需属...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fullinfo_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fullinfo_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
taobao.trade.fullinfo.get 获取单笔交易的详细信息 获取单笔交易的详细信息 - 1.只有在交易成功的状态下才能取到交易佣金,其它状态下取到的都是零或空值 - 2.只有单笔订单的情况下Trade数据结构中才包含商品相关的信息 - 3.获取到的Order中的payment字段在单笔子订单时包含物流费用,多笔子订单时不包含物流费用 注:包含以下字段的返回会增加TOP的后台压力,请仅在确实需要的情况下才去获取:commission_fee, buyer_alipay_no, seller_alipay_no, b...
"taobao.trade.fullinfo.get 获取单笔交易的详细信息\n \n 获取单笔交易的详细信息 \n \n - 1.只有在交易成功的状态下才能取到交易佣金,其它状态下取到的都是零或空值 \n - 2.只有单笔订单的情况下Trade数据结构中才包含商品相关的信息 \n - 3.获取到的Order中的payment字段在单笔子订单时包含物流费用,多笔子订单时不包含物流费用 注:包含以下字段的返回会增加TOP的后台压力,请仅在确实需要的情况下才去获取:commission_fee, buyer_alipay_no, seller_alipa...
619
false
bububa/pyTOP
fullinfo_get
37,223
LDU_FT/mardix/Mocha/unsign_data
LDU_FT
[ "<BEGIN>\n## `_normalize_response_tuple`", "Helper function to normalize view return values .\n It always returns (dict, status, headers). Missing values will be None.\n For example in such cases when tuple_ is\n (dict, status), (dict, headers), (dict, status, headers),\n (dict, headers, status)",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsign_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsign_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 extra...
Retrieve the signed data. If it is expired, it will throw an exception :param data: token/signed data :param url_safe: bool. If true it will allow it to be passed in URL :return: mixed, the data in its original form
"Retrieve the signed data. If it is expired, it will throw an exception\n :param data: token/signed data\n :param url_safe: bool. If true it will allow it to be passed in URL\n :return: mixed, the data in its original form"
276
false
mardix/Mocha
unsign_data
37,224
LDU_FT/idlesign/steampak/unlocked
LDU_FT
[ "<BEGIN>\n## `get_filter_cardborder`", "Returns game cards URL filter for a given cardborder\n type (TAG_CARDBORDER_NORMAL / TAG_CARDBORDER_FOIL).", " To be used in URL_GAMECARDS.", " :param str|unicode cardborder_type:\n :rtype: str|unicode\n<END>", "<BEGIN>\n## `install_dir`", "Returns appli...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unlocked API. 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 unlocked API. 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...
``True`` if achievement is unlocked. :rtype: bool
"``True`` if achievement is unlocked.\n\n :rtype: bool"
72
false
idlesign/steampak
unlocked
37,225
LDU_FT/trac-hacks/trac-github/teams
LDU_FT
[ "<BEGIN>\n## `update`", "Connect to GitHub API endpoint specified by `_apicall_parameters()`,\n postprocess the result using `_apiresult_postprocess()` and trigger\n a cache update if the API call was successful.", " If an error occurs, cache the empty result generated by\n `_apiresu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the teams API. 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 teams API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return a sequence of `GitHubTeam` objects, one for each team in this org.
"Return a sequence of `GitHubTeam` objects, one for each team in this\n org."
30
false
trac-hacks/trac-github
teams
37,226
LDU_FT/darkfeline/mir.sqlite3m/_migrate_single
LDU_FT
[ "<BEGIN>\n## `CheckForeignKeysWrapper`", "Migration wrapper that checks foreign keys.", " Note that this may raise different exceptions depending on the\n underlying database API.\n<END>", "<BEGIN>\n## `register_migration`", "Register a migration.", " You can only register migrations in order...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _migrate_single API. 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 _migrate_single API. 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...
Perform a single migration starting from the given version.
"Perform a single migration starting from the given version."
15
false
darkfeline/mir.sqlite3m
_migrate_single
37,227
LDU_FT/mdredze/carmen-python/register
LDU_FT
[ "<BEGIN>\n## `normalize`", "Normalize *location_name* by stripping punctuation and collapsing\n runs of whitespace, and return the normalized name.\n<END>", "<BEGIN>\n## `register`", "Return a decorator that registers the decorated class as a\n resolver with the given *name*.\n<END>", "<BEGIN>\n## `ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return a decorator that registers the decorated class as a resolver with the given *name*.
"Return a decorator that registers the decorated class as a\n resolver with the given *name*."
16
false
mdredze/carmen-python
register
37,228
LDU_FT/yuma-m/pychord/as_chord
LDU_FT
[ "<BEGIN>\n## `get_components`", "Get components of chord quality", " :param str root: the root note of the chord\n :param bool visible: returns the name of notes if True\n :rtype: list[str|int]\n :return: components of chord quality\n<END>", "<BEGIN>\n## `append_on_chord`", "Appe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_chord API. 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 as_chord API. 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...
convert from str to Chord instance if input is str :type chord: str|pychord.Chord :param chord: Chord name or Chord instance :rtype: pychord.Chord :return: Chord instance
"convert from str to Chord instance if input is str\n\n :type chord: str|pychord.Chord\n :param chord: Chord name or Chord instance\n :rtype: pychord.Chord\n :return: Chord instance"
51
false
yuma-m/pychord
as_chord
37,229
LDU_FT/jic-dtool/dtool-irods/_put_obj
LDU_FT
[ "<BEGIN>\n## `_put_obj`", "Put python object into iRODS as JSON text.\n<END>", "<BEGIN>\n## `list_dataset_uris`", "Return list containing URIs in base_uri.\n<END>", "<BEGIN>\n## `get_item_abspath`", "Return absolute path at which item content can be accessed.", " :param identifier: item identifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _put_obj API. 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 _put_obj API. 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...
Put python object into iRODS as JSON text.
"Put python object into iRODS as JSON text."
23
false
jic-dtool/dtool-irods
_put_obj
37,230
LDU_FT/stephrdev/django-tapeforms/get_field_label_css_class
LDU_FT
[ "<BEGIN>\n## `join_css_class`", "Returns the union of one or more CSS classes as a space-separated string.\n Note that the order will not be preserved.\n<END>", "<BEGIN>\n## `visible_fields`", "Returns the reduced set of visible fields to output from the form.", " This method respects the provided...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_label_css_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field_label_css_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Returns 'form-check-label' if widget is CheckboxInput. For all other fields, no css class is added.
"Returns 'form-check-label' if widget is CheckboxInput. For all other fields,\n no css class is added."
79
false
stephrdev/django-tapeforms
get_field_label_css_class
37,231
LDU_FT/blacktop/virustotal-api/scan_file
LDU_FT
[ "<BEGIN>\n## `_return_response_and_status_code`", "Output the requests response content or content as json and status code", " :rtype : dict\n :param response: requests response object\n :param json_results: Should return JSON or raw content\n :return: dict containing the response content and/or the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Submit a file to be scanned by VirusTotal. Allows you to send a file for scanning with VirusTotal. Before performing your submissions we encourage you to retrieve the latest report on the files, if it is recent enough you might want to save time and bandwidth by making use of it. File size limi...
"Submit a file to be scanned by VirusTotal.\n\n Allows you to send a file for scanning with VirusTotal. Before performing your submissions we encourage you to\n retrieve the latest report on the files, if it is recent enough you might want to save time and bandwidth by\n making use of it. File size...
89
false
blacktop/virustotal-api
scan_file
37,232
LDU_FT/kivy/python-for-android/unescape
LDU_FT
[ "<BEGIN>\n## `dist_dir`", "The dist dir at which to place the finished distribution.\n<END>", "<BEGIN>\n## `check_recipe_choices`", "Checks what recipes are being built to see which of the alternative\n and optional dependencies are being used,\n and returns a list of these.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unescape API. 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 unescape API. 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...
r"""Unescape markup again into an unicode string. This also resolves known HTML4 and XHTML entities: >>> Markup("Main &raquo; <em>About</em>").unescape() u'Main \xbb <em>About</em>'
"r\"\"\"Unescape markup again into an unicode string. This also resolves\n known HTML4 and XHTML entities:\n\n >>> Markup(\"Main &raquo; <em>About</em>\").unescape()\n u'Main \\xbb <em>About</em>'"
404
false
kivy/python-for-android
unescape
37,233
LDU_FT/Titan-C/slaveparticles/spin_gen
LDU_FT
[ "<BEGIN>\n## `destruct`", "Fermion annihilation operator in matrix representation for a indexed\n particle in a bounded N-particles fermion fock space\n<END>", "<BEGIN>\n## `plot_degbandshalffill`", "Plot of Quasiparticle weight for degenerate\n half-filled bands, showing the Mott transition\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spin_gen API. 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 spin_gen API. 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...
Generates the generic spin operator in z basis for a system of N=particles and for the selected spin index name. where index=0..N-1 The gauge term sets the behavoir for a system away from half-filling
"Generates the generic spin operator in z basis for a system of\n N=particles and for the selected spin index name. where index=0..N-1\n The gauge term sets the behavoir for a system away from half-filling"
78
false
Titan-C/slaveparticles
spin_gen
37,234
LDU_FT/pneff/wsgiservice/get_app
LDU_FT
[ "<BEGIN>\n## `raise_201`", "Abort the current request with a 201 (Created) response code. Sets the\n Location header correctly. If the location does not start with a slash,\n the path of the current request is prepended.", " :param instance: Resource instance (used to access the response)\n :type in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Small wrapper function to returns an instance of :class:`Application` which serves the objects in the defs. Usually this is called with return value globals() from the module where the resources are defined. The returned WSGI application will serve all subclasses of :class:`wsgiservice.Resource` found i...
"Small wrapper function to returns an instance of :class:`Application`\n which serves the objects in the defs. Usually this is called with return\n value globals() from the module where the resources are defined. The\n returned WSGI application will serve all subclasses of\n :class:`wsgiservice.Resource` fo...
156
false
pneff/wsgiservice
get_app
37,235
LDU_FT/DocNow/twarc/parse_binlinks_from_tweet
LDU_FT
[ "<BEGIN>\n## `rate_limit`", "A decorator to handle rate limiting from the Twitter API. If\n a rate limit error is encountered we will sleep until we can\n issue the API call again.\n<END>", "<BEGIN>\n## `catch_conn_reset`", "A decorator to handle connection reset errors even ones from pyOpenSSL\n unt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_binlinks_from_tweet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_binlinks_from_tweet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Parse binary file url:s from a single tweet. :tweetdict: json data dict for tweet :returns: list of urls for media files
"Parse binary file url:s from a single tweet.\n\n :tweetdict: json data dict for tweet\n :returns: list of urls for media files"
58
false
DocNow/twarc
parse_binlinks_from_tweet
37,236
LDU_FT/cmbruns/pyopenvr/freeRenderModel
LDU_FT
[ "<BEGIN>\n## `key_press`", "Close the application when the player presses ESCAPE\n<END>", "<BEGIN>\n## `scale`", "Uniform scale, if only sx argument is specified\n<END>", "<BEGIN>\n## `bInit`", "Purpose: Allocates and populates the GL resources for a render model\n<END>", "<BEGIN>\n## `cleanup`", "Pur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the freeRenderModel API. 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 freeRenderModel API. 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...
Frees a previously returned render model It is safe to call this on a null ptr.
"Frees a previously returned render model\n It is safe to call this on a null ptr."
475
false
cmbruns/pyopenvr
freeRenderModel
37,237
LDU_FT/martinblech/xmltodict/parse
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse the given XML input and convert it into a dictionary.", " `xml_input` can either be a `string`, a file-like object, or a generator of strings.", " If `xml_attribs` is `True`, element attributes are put in the dictionary\n among regular child elements, using `@` as a pref...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse the given XML input and convert it into a dictionary. `xml_input` can either be a `string`, a file-like object, or a generator of strings. If `xml_attribs` is `True`, element attributes are put in the dictionary among regular child elements, using `@` as a prefix to avoid collisions. If set to `...
"Parse the given XML input and convert it into a dictionary.\n\n `xml_input` can either be a `string`, a file-like object, or a generator of strings.\n\n If `xml_attribs` is `True`, element attributes are put in the dictionary\n among regular child elements, using `@` as a prefix to avoid collisions. If\n s...
37
false
martinblech/xmltodict
parse
37,238
LDU_FT/rasguanabana/ytfs/mkdir
LDU_FT
[ "<BEGIN>\n## `__getChannelId`", "Obtain channel id for channel name, if present in ``self.search_params``.\n<END>", "<BEGIN>\n## `__searchParser`", "Parse `query` for advanced search options.", " Parameters\n ----------\n query : str\n Search query to parse. Besides a search ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mkdir API. 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 mkdir API. 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...
Directory creation. Search is performed. Parameters ---------- tid : str Path to file. Original `path` argument is converted to tuple identifier by ``_pathdec`` decorator. mode : int Ignored.
"Directory creation. Search is performed.\n\n Parameters\n ----------\n tid : str\n Path to file. Original `path` argument is converted to tuple identifier by ``_pathdec`` decorator.\n mode : int\n Ignored."
109
false
rasguanabana/ytfs
mkdir
37,239
LDU_FT/hardbyte/python-can/detect_available_configs
LDU_FT
[ "<BEGIN>\n## `open`", "Opens a CAN connection using `CanalOpen()`.", " :param str configuration: the configuration: \"device_id; baudrate\"\n :param int flags: the flags to be set", " :raises can.CanError: if any error occurred\n :returns: Valid handle for CANAL API functions on su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_available_configs 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 detect_available_configs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Detect all configurations/channels that the interfaces could currently connect with. This might be quite time consuming. Automated configuration detection may not be implemented by every interface on every platform. This method will not raise an error in that case, but with rather return an empty ...
"Detect all configurations/channels that the interfaces could\n currently connect with.\n\n This might be quite time consuming.\n\n Automated configuration detection may not be implemented by\n every interface on every platform. This method will not raise\n an error in that case, but with rather return a...
417
false
hardbyte/python-can
detect_available_configs
37,240
LDU_FT/sci-bots/dmf-device-ui/on_widget__button_release_event
LDU_FT
[ "<BEGIN>\n## `register_shortcuts`", ".. versionchanged:: 0.14\n Add keyboard shortcuts to set neighbouring electrode states based\n on directional input using ``<Control>`` key plus the corresponding\n direction (e.g., ``<Control>Up``)\n<END>", "<BEGIN>\n## `cleanup_video`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_widget__button_release_event 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 on_widget__button_release_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Called when any mouse button is released. .. versionchanged:: 0.11.3 Always reset pending route, regardless of whether a route was completed. This includes a) removing temporary routes from routes table, and b) resetting the state of the current route electrode ...
"Called when any mouse button is released.\n\n\n .. versionchanged:: 0.11.3\n Always reset pending route, regardless of whether a route was\n completed. This includes a) removing temporary routes from routes\n table, and b) resetting the state of the current route electrode\n ...
124
false
sci-bots/dmf-device-ui
on_widget__button_release_event
37,241
LDU_FT/SoftwareDefinedBuildings/XBOS/get_occupancy
LDU_FT
[ "<BEGIN>\n## `fillPelicanHole`", "Fill a hole in a Pelican thermostat's data stream.", " Arguments:\n site -- The thermostat's Pelican site name\n username -- The Pelican username for the site\n password -- The Pelican password for the site\n tstat_name -- The name of the thermost...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_occupancy API. 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_occupancy API. 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...
We deliver historical occupancy up until "now". If the building has occupancy sensors, we pull that data and aggregate it by zone. Take mean occupancy per zone (across all sensors). If building does *not* have occupancy sensors, then we need to read the results from some occupancy file.
"We deliver historical occupancy up until \"now\". If the building has occupancy sensors, we pull that data\n and aggregate it by zone. Take mean occupancy per zone (across all sensors). \n\n If building does *not* have occupancy sensors, then we need to read the results from some occupancy file."
305
false
SoftwareDefinedBuildings/XBOS
get_occupancy
37,242
LDU_FT/ranaroussi/ezibpy/requestMarketDepth
LDU_FT
[ "<BEGIN>\n## `registerContract`", "used for when callback receives a contract\n that isn't found in local database\n<END>", "<BEGIN>\n## `handleConnectionState`", ":Return: True if IBPy message `msg` indicates the connection is unavailable for any reason, else False.\n<END>", "<BEGIN>\n## `handleCont...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requestMarketDepth 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 requestMarketDepth 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...
Register to streaming market data updates https://www.interactivebrokers.com/en/software/api/apiguide/java/reqmktdepth.htm
"Register to streaming market data updates\n https://www.interactivebrokers.com/en/software/api/apiguide/java/reqmktdepth.htm"
58
false
ranaroussi/ezibpy
requestMarketDepth
37,243
LDU_FT/CentOS/python-cicoclient/node_get
LDU_FT
[ "<BEGIN>\n## `full_inventory`", "Returns a full inventory\n Some additional work required to provide consistent and consumable\n output.\n Inventory output only contains values, no keys - Add the keys to\n the output so that it can be consumed more easily.\n<END>", "<BEGIN>\n## `self...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Requests specified number of nodes with the provided parameters. :param arch: Server architecture (ex: x86_64) :param ver: CentOS version (ex: 7) :param count: Number of servers (ex: 2) :parma flavor: The flavor of machine to use (multi-arch only) :param retry_count: Number of t...
"Requests specified number of nodes with the provided parameters.\n\n :param arch: Server architecture (ex: x86_64)\n :param ver: CentOS version (ex: 7)\n :param count: Number of servers (ex: 2)\n :parma flavor: The flavor of machine to use (multi-arch only)\n :param retry_count: Numb...
19
false
CentOS/python-cicoclient
node_get
37,244
LDU_FT/objectrocket/python-client/shards
LDU_FT
[ "<BEGIN>\n## `register_extension_class`", "Instantiate the given extension class and register as a public attribute of the given base.", " README: The expected protocol here is to instantiate the given extension and pass the base\n object as the first positional argument, then unpack args and kwargs as ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shards API. 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 shards API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Get a list of shards belonging to this instance. :param bool add_shard: A boolean indicating whether to add a new shard to the specified instance.
"Get a list of shards belonging to this instance.\n\n :param bool add_shard: A boolean indicating whether to add a new shard to the specified\n instance."
118
false
objectrocket/python-client
shards
37,245
LDU_FT/dropbox/stone/_filter_namespaces_by_route_whitelist
LDU_FT
[ "<BEGIN>\n## `generic_type_name`", "Return a descriptive type name that isn't Python specific. For example, an\n int type will return 'integer' rather than 'int'.\n<END>", "<BEGIN>\n## `doc_unwrap`", "Applies two transformations to raw_doc:\n 1. N consecutive newlines are converted into N-1 newlines.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filter_namespaces_by_route_whitelist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filter_namespaces_by_route_whitelist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Given a parsed API in IR form, filter the user-defined datatypes so that they include only the route datatypes and their direct dependencies.
"Given a parsed API in IR form, filter the user-defined datatypes\n so that they include only the route datatypes and their direct dependencies."
613
false
dropbox/stone
_filter_namespaces_by_route_whitelist
37,246
LDU_FT/AaronWatters/jp_proxy_widget/load_if_not_loaded
LDU_FT
[ "<BEGIN>\n## `get_file_path`", "Look for an existing path matching filename.\n Try to resolve relative to the module location if the path cannot by found\n using \"normal\" resolution.\n<END>", "<BEGIN>\n## `load_if_not_loaded`", "Load a javascript file to the Jupyter notebook context,\n unless it wa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_if_not_loaded 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 load_if_not_loaded 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...
Load a javascript file to the Jupyter notebook context, unless it was already loaded.
"Load a javascript file to the Jupyter notebook context,\n unless it was already loaded."
12
false
AaronWatters/jp_proxy_widget
load_if_not_loaded
37,247
LDU_FT/getsentry/rb/_get_command_buffer
LDU_FT
[ "<BEGIN>\n## `add_host`", "Adds a new host to the cluster. This is only really useful for\n unittests as normally hosts are added through the constructor and\n changes after the cluster has been used for the first time are\n unlikely to make sense.\n<END>", "<BEGIN>\n## `remove_host`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_command_buffer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_command_buffer 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 the command buffer for the given command and arguments.
"Returns the command buffer for the given command and arguments."
87
false
getsentry/rb
_get_command_buffer
37,248
LDU_FT/senaite/senaite.lims/getViewletByName
LDU_FT
[ "<BEGIN>\n## `getViewletByName`", "Viewlets allow through-the-web customizations.", " Through-the-web customization magic is managed by five.customerize.\n We need to think of this when looking up viewlets.", " @return: Viewlet registration object\n<END>", "<BEGIN>\n## `setupViewletByNa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getViewletByName API. 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 getViewletByName API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Viewlets allow through-the-web customizations. Through-the-web customization magic is managed by five.customerize. We need to think of this when looking up viewlets. @return: Viewlet registration object
"Viewlets allow through-the-web customizations.\n\n Through-the-web customization magic is managed by five.customerize.\n We need to think of this when looking up viewlets.\n\n @return: Viewlet registration object"
32
false
senaite/senaite.lims
getViewletByName
37,249
LDU_FT/NetEaseGame/ATX/start_app
LDU_FT
[ "<BEGIN>\n## `main`", "Args:\n - forward(int): local forward port\n - host(string): local forward host\n - listen(int): listen port\n<END>", "<BEGIN>\n## `_init_items`", ".---------------.\n | Ctrl | Screen |\n |------| |\n | Code | |\n | | ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Start an application Args: - bundle_id: (string) apk bundle ID Returns: WDA session object
"Start an application\n Args:\n - bundle_id: (string) apk bundle ID\n\n Returns:\n WDA session object"
230
false
NetEaseGame/ATX
start_app
37,250
LDU_FT/inspirehep/plotextractor/get_image_location
LDU_FT
[ "<BEGIN>\n## `get_context`", "Get context.", " Given a relevant string from a TeX file, this function will extract text\n from it as far as it is deemed contextually relevant, either backwards or\n forwards in the text.\n The level of relevance allowed is configurable. When it reaches some\n poin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_image_location 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_image_location 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...
Take a raw image name + directory and return the location of image. :param: image (string): the name of the raw image from the TeX :param: sdir (string): the directory where everything was unzipped to :param: image_list ([string, string, ...]): the list of images that were extracted from the tarbal...
"Take a raw image name + directory and return the location of image.\n\n :param: image (string): the name of the raw image from the TeX\n :param: sdir (string): the directory where everything was unzipped to\n :param: image_list ([string, string, ...]): the list of images that\n were extracted from the ...
80
false
inspirehep/plotextractor
get_image_location
37,251
LDU_FT/edx/completion/blocks_to_mark_complete_on_view
LDU_FT
[ "<BEGIN>\n## `has_permission`", "Returns true if the current request is by the user themselves.", " Note: a 404 is returned for non-staff instead of a 403. This is to prevent\n users from being able to detect the existence of accounts.\n<END>", "<BEGIN>\n## `db_type`", "The type of the field t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blocks_to_mark_complete_on_view 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 blocks_to_mark_complete_on_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Returns a set of blocks which should be marked complete on view and haven't been yet.
"Returns a set of blocks which should be marked complete on view and haven't been yet."
76
false
edx/completion
blocks_to_mark_complete_on_view
37,252
LDU_FT/ArabellaTech/aa-intercom/get_intercom_data
LDU_FT
[ "<BEGIN>\n## `get_intercom_data`", "Specify the data sent to Intercom API according to event type\n<END>", "<BEGIN>\n## `get_intercom_data`", "Specify the user data sent to Intercom API\n<END>", "<BEGIN>\n## `upload_intercom_user`", "Creates or updates single user account on intercom\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_intercom_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 get_intercom_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...
Specify the user data sent to Intercom API
"Specify the user data sent to Intercom API"
16
false
ArabellaTech/aa-intercom
get_intercom_data
37,253
LDU_FT/underworldcode/stripy/property_on_depth_profile
LDU_FT
[ "<BEGIN>\n## `install_documentation`", "Install the example notebooks for litho1pt0 in the given location", " WARNING: If the path exists, the Notebook files will be written into the path\n and will overwrite any existing files with which they collide. The default\n path (\"./Litho1pt0-Notebooks\") is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the property_on_depth_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the property_on_depth_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Lat / Lon are in degrees Depth in km quantity_ID needs to match those in the litho1 model Points that are not found are given the out-of-range value of -99999
"Lat / Lon are in degrees\n Depth in km\n quantity_ID needs to match those in the litho1 model\n\n Points that are not found are given the out-of-range value of -99999"
224
false
underworldcode/stripy
property_on_depth_profile
37,254
LDU_FT/Archived-Object/ligament/register_dependency
LDU_FT
[ "<BEGIN>\n## `register_dependency`", "registers a dependency of data_src -> data_sink\n by placing appropriate entries in provides_for and depends_on\n<END>", "<BEGIN>\n## `build_task`", "Builds a task by name, resolving any dependencies on the way\n<END>", "<BEGIN>\n## `is_build_needed`", "ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_dependency 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 register_dependency 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...
registers a dependency of data_src -> data_sink by placing appropriate entries in provides_for and depends_on
"registers a dependency of data_src -> data_sink\n by placing appropriate entries in provides_for and depends_on"
66
false
Archived-Object/ligament
register_dependency
37,255
LDU_FT/volfpeter/graphscraper/similar_artists
LDU_FT
[ "<BEGIN>\n## `add_neighbor`", "Adds a new neighbor to the node.\r", " Arguments:\r\n edge (Edge): The edge that would connect this node with its neighbor.\n<END>", "<BEGIN>\n## `_load_neighbors`", "Loads all neighbors of the node from the local database and\r\n from the external dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the similar_artists API. 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 similar_artists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns zero or more similar artists (in the form of artist name - external ID pairs) to the one corresponding to the given artist ID. Arguments: artist_id ([str]): The Spotify ID of the artist for whom similar artists are requested. Returns: Zero or more artist name - ...
"Returns zero or more similar artists (in the form of artist name - external ID pairs)\n to the one corresponding to the given artist ID.\n\n Arguments:\n artist_id ([str]): The Spotify ID of the artist for whom similar artists are requested.\n\n Returns:\n Zero or more artist...
122
false
volfpeter/graphscraper
similar_artists
37,256
LDU_FT/iopipe/iopipe-python/wait_for_futures
LDU_FT
[ "<BEGIN>\n## `upload_profiler_report`", "Uploads a profiler report to IOpipe", " :param url: The signed URL\n :param filename: The profiler report file\n :param config: The IOpipe config\n<END>", "<BEGIN>\n## `read_pid_stat`", "Mocks read_pid_stat as this is a Linux-specific operation.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_futures API. 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 wait_for_futures API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Wait for all futures to complete. This should be done at the end of an an invocation.
"Wait for all futures to complete. This should be done at the end of an\n an invocation."
93
false
iopipe/iopipe-python
wait_for_futures
37,257
LDU_FT/pgmpy/pgmpy/factorset_product
LDU_FT
[ "<BEGIN>\n## `_initalize_tree`", "Initalizes root node of the tree, i.e depth = 0\n<END>", "<BEGIN>\n## `_build_tree`", "Recursively builds a tree for proposing new position and momentum\n<END>", "<BEGIN>\n## `_sample`", "Returns a sample using a single iteration of NUTS\n<END>", "<BEGIN>\n## `sample`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the factorset_product API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the factorset_product API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
r""" Base method used for product of factor sets. Suppose :math:`\vec\phi_1` and :math:`\vec\phi_2` are two factor sets then their product is a another factors set :math:`\vec\phi_3 = \vec\phi_1 \cup \vec\phi_2`. Parameters ---------- factorsets_list: FactorSet1, FactorSet2, ..., FactorSetn ...
"r\"\"\"\n Base method used for product of factor sets.\n\n Suppose :math:`\\vec\\phi_1` and :math:`\\vec\\phi_2` are two factor sets then their product is a another factors set\n :math:`\\vec\\phi_3 = \\vec\\phi_1 \\cup \\vec\\phi_2`.\n\n Parameters\n ----------\n factorsets_list: FactorSet1, FactorS...
1,557
true
pgmpy/pgmpy
factorset_product
37,258
LDU_FT/chriso/gauged/parse_query
LDU_FT
[ "<BEGIN>\n## `insert_keys`", "Insert keys into a table which assigns an ID\n<END>", "<BEGIN>\n## `replace_blocks`", "Replace multiple blocks. blocks must be a list of tuples where\n each tuple consists of (namespace, offset, key, data)\n<END>", "<BEGIN>\n## `remove_namespace`", "Remove all data ass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Parse a query string and return an iterator which yields (key, value)
"Parse a query string and return an iterator which yields\n (key, value)"
62
false
chriso/gauged
parse_query
37,259
LDU_FT/oasis-open/cti-stix-validator/timestamp
LDU_FT
[ "<BEGIN>\n## `pretty_error`", "Return an error message that is easier to read and more useful.\n May require updating if the schemas change significantly.\n<END>", "<BEGIN>\n## `_iter_errors_custom`", "Perform additional validation not possible merely with JSON schemas.", " Args:\n instance: Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timestamp API. 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 timestamp API. 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...
Ensure timestamps contain sane months, days, hours, minutes, seconds.
"Ensure timestamps contain sane months, days, hours, minutes, seconds."
220
false
oasis-open/cti-stix-validator
timestamp
37,260
LDU_FT/rytilahti/python-songpal/get_playback_settings
LDU_FT
[ "<BEGIN>\n## `make`", "Create a container.", " Reports extra keys as well as missing ones.\n Thanks to habnabit for the idea!\n<END>", "<BEGIN>\n## `create_post_request`", "Call the given method over POST.", " :param method: Name of the method\n :param params: dict of parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_playback_settings 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_playback_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get playback settings such as shuffle and repeat.
"Get playback settings such as shuffle and repeat."
86
false
rytilahti/python-songpal
get_playback_settings
37,261
LDU_FT/RLBot/RLBot/base_create_agent_configurations
LDU_FT
[ "<BEGIN>\n## `configure_processes`", "This will update the priority and CPU affinity of the processes owned by bots to try to achieve fairness and\n good performance.", " :param agent_metadata_map: A mapping of player index to agent metadata, including a list of owned process ids.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the base_create_agent_configurations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the base_create_agent_configurations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
This is used when initializing agent config via builder pattern. It also calls `create_agent_configurations` that can be used by BaseAgent subclasses for custom configs. :return: Returns an instance of a ConfigObject object.
"This is used when initializing agent config via builder pattern.\n It also calls `create_agent_configurations` that can be used by BaseAgent subclasses for custom configs.\n :return: Returns an instance of a ConfigObject object."
181
false
RLBot/RLBot
base_create_agent_configurations
37,262
LDU_FT/mulkieran/justbases/convert
LDU_FT
[ "<BEGIN>\n## `xform`", "Get a number as a string.", " :param number: a number\n :type number: list of int\n :param int base: the base in which this number is being represented\n :raises BasesValueError: if config is unsuitable for number\n<END>", "<BEGIN>\n## `_strip_trailing_zeros...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. 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 convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert value from a base to a base. :param value: the value to convert :type value: sequence of int :param int from_base: base of value :param int to_base: base of result :returns: the conversion result :rtype: list of int :raises ConvertError: if from_base is l...
"Convert value from a base to a base.\n\n :param value: the value to convert\n :type value: sequence of int\n :param int from_base: base of value\n :param int to_base: base of result\n :returns: the conversion result\n :rtype: list of int\n :raises ConvertError: if from_...
127
false
mulkieran/justbases
convert
37,263
LDU_FT/coreGreenberet/homematicip-rest-api/set_zones_device_assignment
LDU_FT
[ "<BEGIN>\n## `from_json`", "this function will load the functional channel object \r\n from a json object and the given groups \r", " Args:\r\n js(dict): the json object\r\n groups(Iterable[Group]): the groups for referencing\n<END>", "<BEGIN>\n## `download_configuration`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_zones_device_assignment 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 set_zones_device_assignment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
sets the devices for the security zones Args: internal_devices(List[Device]): the devices which should be used for the internal zone external_devices(List[Device]): the devices which should be used for the external(hull) zone Returns: the result of _re...
"sets the devices for the security zones\r\n Args:\r\n internal_devices(List[Device]): the devices which should be used for the internal zone\r\n external_devices(List[Device]): the devices which should be used for the external(hull) zone\r\n \r\n Returns:\r\n the ...
84
false
coreGreenberet/homematicip-rest-api
set_zones_device_assignment
37,264
LDU_FT/ABI-Software/MeshParser/getElements
LDU_FT
[ "<BEGIN>\n## `_remove_comment`", "Removes any comments from a line. A comment starts from a # symbol\n to the end of the line. But don't remove from # symbol that are embedded\n in strings.\n<END>", "<BEGIN>\n## `_check_index_within_index_pairs`", "Check that the index 'index' lies within the set of i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getElements API. 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 getElements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get the elements of the mesh as a list of point index list. :param zero_based: use zero based index of points if true otherwise use 1-based index of points. :param pared: use the pared down list of points :return: A list of point index lists
"Get the elements of the mesh as a list of point index list.\n :param zero_based: use zero based index of points if true otherwise use 1-based index of points.\n :param pared: use the pared down list of points\n :return: A list of point index lists"
16
false
ABI-Software/MeshParser
getElements
37,265
LDU_FT/nens/turn/draw
LDU_FT
[ "<BEGIN>\n## `draw`", "Return a Serial number for this resource queue, after bootstrapping.\n<END>", "<BEGIN>\n## `announce`", "Announce an indicator change on both channels.\n<END>", "<BEGIN>\n## `bump`", "Fix indicator in case of unnanounced departments.\n<END>", "<BEGIN>\n## `lock`", "Lock a resour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw API. 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 draw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a Serial number for this resource queue, after bootstrapping.
"Return a Serial number for this resource queue, after bootstrapping."
19
false
nens/turn
draw
37,266
LDU_FT/tchellomello/python-arlo/publish
LDU_FT
[ "<BEGIN>\n## `query`", "Return a JSON object or raw session.", " :param url: Arlo API URL\n :param method: Specify the method GET, POST or PUT. Default is GET.\n :param extra_params: Dictionary to be appended on request.body\n :param extra_headers: Dictionary to be apppended on requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publish API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publish API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Run action. :param method: Specify the method GET, POST or PUT. Default is GET. :param resource: Specify one of the resources to fetch from arlo. :param camera_id: Specify the camera ID involved with this action :param mode: Specify the mode to set, else None for GET operations ...
"Run action.\n\n :param method: Specify the method GET, POST or PUT. Default is GET.\n :param resource: Specify one of the resources to fetch from arlo.\n :param camera_id: Specify the camera ID involved with this action\n :param mode: Specify the mode to set, else None for GET operations\n ...
69
false
tchellomello/python-arlo
publish
37,267
LDU_FT/SBRG/ssbio/calculate_oobatake_dH
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 calculate_oobatake_dH 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 calculate_oobatake_dH API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get dH using Oobatake method in units cal/mol. Args: seq (str, Seq, SeqRecord): Amino acid sequence temp (float): Temperature in degrees C Returns: float: dH in units cal/mol
"Get dH using Oobatake method in units cal/mol.\n\n Args:\n seq (str, Seq, SeqRecord): Amino acid sequence\n temp (float): Temperature in degrees C\n\n Returns:\n float: dH in units cal/mol"
1,487
true
SBRG/ssbio
calculate_oobatake_dH
37,268
LDU_FT/fulfilio/python-magento/set
LDU_FT
[ "<BEGIN>\n## `info`", "Retrieve customer data", " :param id: ID of customer\n :param attributes: `List` of attributes needed\n<END>", "<BEGIN>\n## `search`", "Retrieve order list by options using search api. Using this result can\n be paginated", " :param options: Dictionary of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. 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 set API. 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 customer information into a shopping cart :param quote_id: Shopping cart ID (quote ID) :param customer_data, dict of customer details, example { 'firstname': 'testFirstname', 'lastname': 'testLastName', 'email': 'testEmail', ...
"Add customer information into a shopping cart\n\n :param quote_id: Shopping cart ID (quote ID)\n :param customer_data, dict of customer details, example\n {\n 'firstname': 'testFirstname',\n 'lastname': 'testLastName',\n 'email': 'testEmail',\n ...
143
false
fulfilio/python-magento
set
37,269
LDU_FT/Morrolan/surrealism/__replace_random
LDU_FT
[ "<BEGIN>\n## `show_faults`", "Return all valid/active faults ordered by ID to allow the user to pick and choose.", " :return: List of Tuples where the Tuple elements are: (fault id, fault template)\n<END>", "<BEGIN>\n## `show_sentences`", "Return all valid/active sentences ordered by ID to allow the us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __replace_random API. 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 __replace_random API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Lets find and replace all instances of #RANDOM :param _sentence:
"Lets find and replace all instances of #RANDOM\n :param _sentence:"
48
false
Morrolan/surrealism
__replace_random
37,270
LDU_FT/CI-WATER/gsshapy/download_hrrr_for_gssha
LDU_FT
[ "<BEGIN>\n## `_read`", "Generic Time Series Read from File Method\n<END>", "<BEGIN>\n## `_write`", "Generic Time Series Write to File Method\n<END>", "<BEGIN>\n## `_createTimeSeriesObjects`", "Create GSSHAPY TimeSeries and TimeSeriesValue Objects Method\n<END>", "<BEGIN>\n## `_read`", "Generic Output ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_hrrr_for_gssha 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 download_hrrr_for_gssha API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Function to download HRRR data for GSSHA URL: http://nomads.ncep.noaa.gov/cgi-bin/filter_hrrr_2d.pl Args: main_directory(str): Location of the output for the forecast data. forecast_start_date_string(str): String for day of forecast. Ex. '20160913' forecast_start_hour_string(st...
"Function to download HRRR data for GSSHA\n\n URL:\n http://nomads.ncep.noaa.gov/cgi-bin/filter_hrrr_2d.pl\n\n Args:\n main_directory(str): Location of the output for the forecast data.\n forecast_start_date_string(str): String for day of forecast. Ex. '20160913'\n forecast_start_hour_...
537
false
CI-WATER/gsshapy
download_hrrr_for_gssha
37,271
LDU_FT/albert12132/templar/hash_reference_links
LDU_FT
[ "<BEGIN>\n## `applies`", "Checks if this rule applies to the given src and dst paths, based on the src pattern and\n dst pattern given in the constructor.", " If src pattern was None, this rule will apply to any given src path (same for dst).\n<END>", "<BEGIN>\n## `link`", "Links the content f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_reference_links 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 hash_reference_links API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Hashes an <a> link or an <img> link. This function only converts reference link styles: [text here][ref id] ![alt text here][ref id] For inline style links, see hash_inline_links. Reference ids can be defined anywhere in the Markdown text. Reference ids can also be omitted, in which ...
"Hashes an <a> link or an <img> link.\n\n This function only converts reference link styles:\n\n [text here][ref id]\n ![alt text here][ref id]\n\n For inline style links, see hash_inline_links.\n\n Reference ids can be defined anywhere in the Markdown text.\n Reference ids can also be omitted...
130
false
albert12132/templar
hash_reference_links
37,272