code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ResourceViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Resource.objects.all() <NEW_LINE> serializer_class = ResourceSerializer | API endpoint that allows Resource to be viewed or edited. | 62598ef29c8ee8231303f567 |
class DjangoPlugin(Plugin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(DjangoPlugin, self).__init__('Django') <NEW_LINE> <DEDENT> def supports(self, config, context): <NEW_LINE> <INDENT> request = current_request() <NEW_LINE> return request is not None and re.match(r'^django\.', request.__module_... | Plugin for generating payload from Django requests. | 62598ef24527f215b58e8718 |
class MalariaTreatmentListView(ListView): <NEW_LINE> <INDENT> queryset = Research.objects.filter(keyword="malaria:treatment").annotate( research_count=Count("researches__recommends") ).order_by("-research_count") | Research.objects.filter( keyword="malaria:control" ).annotate( research_count=Count("researches__recommen... | List view of researches. | 62598ef267a9b606de5447e8 |
class Config(object): <NEW_LINE> <INDENT> SQLALCHEMY_TRACK_MODIFICATIONS = True <NEW_LINE> SECRET_KEY = 'www.jiar.vip|www.jiar.vip' | Base config class. | 62598ef24f6381625f1988c8 |
class Point(object): <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y | point géométrique | 62598ef21f5feb6acb16146d |
@e.decorate_methods(e.check_for_errors,e.not_excluded) <NEW_LINE> class Multilign_object(RNAstructure_wrap.Multilign_object): <NEW_LINE> <INDENT> @e.check_for_errors <NEW_LINE> def __init__(self,*args): <NEW_LINE> <INDENT> RNAstructure_wrap.Multilign_object.__init__(self,*args) <NEW_LINE> <DEDENT> @classmethod <NEW_LIN... | This class allows calculation of the common structure for two or more sequences
by repeated pairwise Dynalign calculations. | 62598ef22c8b7c6e89bd1fdc |
class Integral(Func): <NEW_LINE> <INDENT> def __init__(self, fprime, a=0.0, **kwargs): <NEW_LINE> <INDENT> self.fprime = fprime <NEW_LINE> self.kwargs = kwargs <NEW_LINE> self.__fs = {a: 0.0} <NEW_LINE> self.__xs = [a] <NEW_LINE> <DEDENT> def f(self, x): <NEW_LINE> <INDENT> fs = self.__fs <NEW_LINE> xs = self.__xs <NEW... | This is slightly more than a quadrature, because it
also saves and returns the exact derivative of the integral
>>> from numpy import cos, sin
>>> s = Integral(cos)
>>> s(0.0)
0.0
>>> s(1.0) - sin(1.0)
0.0
>>> s(-1.0) - sin(-1.0)
0.0 | 62598ef2442bda511e95ac7c |
class InputValueDefinition(base.Base): <NEW_LINE> <INDENT> __tablename__ = 'input_value_definition' <NEW_LINE> __reprattrs__ = ['name', 'type'] <NEW_LINE> id = base.id_builder.build() <NEW_LINE> form_id = Column(base.id_builder.type, ForeignKey('form.id'), nullable=False) <NEW_LINE> name: str = Column(String(64), nulla... | The InputFileDefinition object defines the properties of an input value. | 62598ef27d847024c075abe9 |
class IterationTimeoutTests(TestCase): <NEW_LINE> <INDENT> def _checkIterationTimeout(self, reactor): <NEW_LINE> <INDENT> timeout = [] <NEW_LINE> reactor.iterationTimeout.addCallback(timeout.append) <NEW_LINE> reactor.iterationTimeout.addCallback(lambda ignored: reactor.stop()) <NEW_LINE> reactor.run() <NEW_LINE> retur... | Tests for the timeout argument L{PosixReactorBase.run} calls
L{PosixReactorBase.doIteration} with in the presence of various delayed
calls. | 62598ef299fddb7c1ca62211 |
class LocationAwareAttention(BaseAttention): <NEW_LINE> <INDENT> def __init__(self, encoder_output_size, decoder_hidden_size, attention_dim, num_channels, filter_size): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.mlp_enc = torch.nn.Linear(encoder_output_size, attention_dim) <NEW_LINE> self.mlp_dec = torch.nn... | Reference: Attention-Based Models for Speech Recognition
(https://arxiv.org/pdf/1506.07503.pdf) | 62598ef27b25080760ed5cb6 |
class PrefixQueryTestCase(TestCase): <NEW_LINE> <INDENT> def testPrefixQuery(self): <NEW_LINE> <INDENT> directory = RAMDirectory() <NEW_LINE> categories = ["/Computers", "/Computers/Mac", "/Computers/Windows"] <NEW_LINE> writer = IndexWriter(directory, WhitespaceAnalyzer(), True, IndexWriter.MaxFieldLength.LIMITED) <NE... | Unit tests ported from Java Lucene | 62598ef2283ffb24f3cf20cc |
@register("!spec") <NEW_LINE> class ValueSpec(object): <NEW_LINE> <INDENT> def __init__(self, type, description=None, value=None, examples=None, deprecated=False, sensitive=False): <NEW_LINE> <INDENT> self.type = type <NEW_LINE> self.optional = isinstance(value, Optional) <NEW_LINE> self.value = None if self.optional e... | Declares and documents acceptable values for a setting. | 62598ef2377c676e912f616f |
class CachedTopDownPredictRule(TopDownPredictRule): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> TopDownPredictRule.__init__(self) <NEW_LINE> self._done = {} <NEW_LINE> <DEDENT> def apply_iter(self, chart, grammar, edge): <NEW_LINE> <INDENT> if edge.is_complete(): return <NEW_LINE> nextsym, index = edge.... | A cached version of ``TopDownPredictRule``. After the first time
this rule is applied to an edge with a given ``end`` and ``next``,
it will not generate any more edges for edges with that ``end`` and
``next``.
If ``chart`` or ``grammar`` are changed, then the cache is flushed. | 62598ef2009cb60464cffd6a |
class BaseXConverter(object): <NEW_LINE> <INDENT> def __init__(self, alphabet): <NEW_LINE> <INDENT> self.decimal_digits = '0123456789' <NEW_LINE> self.alphabet = list(alphabet) <NEW_LINE> self.base = len(alphabet) <NEW_LINE> self.alphabet_index = {} <NEW_LINE> <DEDENT> def convert(self, val): <NEW_LINE> <INDENT> x = 0 ... | Converts positive, base-10 numbers to base-X numbers using a custom alphabet.
The base is given by the length of the alphabet specified in the constructor.
The first character in the alphabet has a value of zero,
the second character a value of one, and so forth.
Examples:
Base2: BaseXConverter('01')
Base2: ... | 62598ef2097d151d1a2bf83b |
class UIDPlacer(Placer): <NEW_LINE> <INDENT> metadata_schema = 'uidupload.json' <NEW_LINE> create_hierarchy = staticmethod(hierarchy.upsert_top_down_hierarchy) <NEW_LINE> match_type = 'uid' <NEW_LINE> def __init__(self, container_type, container, id_, metadata, timestamp, origin, context): <NEW_LINE> <INDENT> super(UID... | A placer that can accept multiple files.
It uses the method upsert_top_down_hierarchy to create its project/session/acquisition hierarchy
Sessions and acquisitions are identified by UID. | 62598ef27b180e01f3e48453 |
class EntryList(object): <NEW_LINE> <INDENT> openapi_types = { 'data': 'list[EntryListData]', 'offset': 'int', 'limit': 'int', 'count': 'int' } <NEW_LINE> attribute_map = { 'data': 'data', 'offset': 'offset', 'limit': 'limit', 'count': 'count' } <NEW_LINE> def __init__(self, data=None, offset=None, limit=None, count=No... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62598ef2627d3e7fe0e056a6 |
class RunCommandResult(_RunCommandResult): <NEW_LINE> <INDENT> def __bool__(self): <NEW_LINE> <INDENT> return bool(self.success) | The 'result' of running a command - status, exit code and output.
@ivar success: whether the command succeeded or not
@type success: C{bool}
@ivar returncode: the command's exit code
@ivar returncode: C{int}
@ivar stdout: None or captured stdout
@ivar stdout: C{None} | C{str} | C{bytes}
@ivar stder... | 62598ef221bff66bcd721471 |
class FilePathAlign(FilePath): <NEW_LINE> <INDENT> def __init__(self, prefix): <NEW_LINE> <INDENT> super(FilePathAlign, self).__init__(prefix=prefix) <NEW_LINE> self.output_directory = prefix <NEW_LINE> self.stderr_txt = os.path.join(prefix, prefix + '_stderr.txt') <NEW_LINE> self.stdout_txt = os.path.join(prefix, pref... | The C{bsf.analyses.aligner.FilePathAlign} class models file paths at the alignment stage.
@ivar output_directory: Output directory
@type output_directory: str
@ivar stderr_txt: Text file to capture STDERR of the aligner
@type stderr_txt: str
@ivar stdout_txt: Text file to capture STDOUT of the aligner
@type stdout_txt... | 62598ef257b8e32f52507511 |
class InputBuffer: <NEW_LINE> <INDENT> def __init__(self, buffer: TextBuffer, tui: cobib.tui.TUI) -> None: <NEW_LINE> <INDENT> self.buffer = buffer <NEW_LINE> self.tui = tui <NEW_LINE> <DEDENT> def readline(self) -> str: <NEW_LINE> <INDENT> self.buffer.split() <NEW_LINE> LOGGER.debug("Create popup window.") <NEW_LINE> ... | An auxiliary output-buffer.
This class implements all necessary methods to make it a suitable replacement for `sys.stdin`.
This is used when a command-line implementation of a command queries a user for input on `stdin`
and allows the TUI to react accordingly. | 62598ef25fdd1c0f98e5c7bd |
class CipherUnsupportedError(LibError): <NEW_LINE> <INDENT> pass | Connection related errors. | 62598ef24f88993c371ef8f7 |
class FindDegenerateFaces(bpy.types.Operator): <NEW_LINE> <INDENT> bl_label = "Find Degenerate Faces" <NEW_LINE> bl_idname = "object.find_degenerate_faces" <NEW_LINE> area_epsilon = 0.000001 <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> saved_mode = bpy.context.object.mode <NEW_LINE> bpy.ops.object.mode_se... | Select the object to test in object mode with nothing selected in it's mesh before running this. | 62598ef263d6d428bbee0fea |
class Screenshot(QWebView): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.app = QApplication([__file__]) <NEW_LINE> super(Screenshot, self).__init__() <NEW_LINE> self._loaded = False <NEW_LINE> self.loadFinished.connect(self._load_finished) <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> s... | Class to grab a screenshot of a web page.
Adapted from: http://webscraping.com/blog/Webpage-screenshots-with-webkit/ | 62598ef2d7e4931a7ef3a8b6 |
class ClusterSequencePassiveArea(ClusterSequence1GhostPassiveArea): <NEW_LINE> <INDENT> __swig_setmethods__ = {} <NEW_LINE> for _s in [ClusterSequence1GhostPassiveArea]: <NEW_LINE> <INDENT> __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) <NEW_LINE> <DEDENT> __setattr__ = lambda self, name, value: _sw... | Like ClusterSequence with computation of the passive jet area.
Class that behaves essentially like ClusterSequence except that it also provides
access to the area of a jet (which will be a random quantity... Figure out what
to do about seeds later...)
This class should not be used directly. Rather use ClusterSequ... | 62598ef2cc40096d616195e6 |
class GoalViewSet(viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> queryset = Goal.objects.all() <NEW_LINE> serializer_class = serializers.GoalSerializer | Returns a list of all goals in all games. | 62598ef2236d856c2adc8824 |
class OrderDetailsView(FormView): <NEW_LINE> <INDENT> template_name = 'order_details.html' <NEW_LINE> form_class = OrderDetailsForm <NEW_LINE> def dispatch(self, request, *arg, **kwarg): <NEW_LINE> <INDENT> if self.request.cart.number_of_items < 1: <NEW_LINE> <INDENT> logging.debug('Accessing checkout without products'... | The order details form where user enters final details. Form needs to be
valid to leave this view | 62598ef23539df3088ecaacb |
class TriNet(ResNet): <NEW_LINE> <INDENT> def __init__(self, block, layers, dim=128, **kwargs): <NEW_LINE> <INDENT> super(TriNet, self).__init__(block, layers, 1) <NEW_LINE> batch_norm = nn.BatchNorm1d(1024) <NEW_LINE> self.avgpool = nn.AvgPool2d((8,4)) <NEW_LINE> self.fc = nn.Sequential( nn.Linear(512 * block.expansio... | TriNet implementation.
Replaces the last layer of ResNet50 with two fully connected layers.
First: 1024 units with batch normalization and ReLU
Second: 128 units, final embedding. | 62598ef256ac1b37e6300a08 |
class _MapAndBatchDataset(dataset_ops.MapDataset): <NEW_LINE> <INDENT> def __init__(self, input_dataset, map_func, batch_size, num_parallel_batches): <NEW_LINE> <INDENT> super(_MapAndBatchDataset, self).__init__(input_dataset, map_func) <NEW_LINE> self._batch_size = ops.convert_to_tensor( batch_size, dtype=dtypes.int64... | A `Dataset` that maps a function over a batch of elements. | 62598ef21b99ca400228e91c |
class Tenant: <NEW_LINE> <INDENT> def __init__(self, tenant_id, tenant_domain): <NEW_LINE> <INDENT> self.tenant_id = tenant_id <NEW_LINE> self.tenant_domain = tenant_domain <NEW_LINE> self.service_name_subscription_map = {} <NEW_LINE> <DEDENT> def get_subscription(self, service_name): <NEW_LINE> <INDENT> if service_nam... | Object type representing the tenant details of a single tenant | 62598ef24527f215b58e871a |
class ListMEA(apmecV10.ListCommand): <NEW_LINE> <INDENT> resource = _MEA <NEW_LINE> list_columns = ['id', 'name', 'mgmt_url', 'status', 'vim_id', 'mead_id'] | List MEA that belong to a given tenant. | 62598ef267a9b606de5447ea |
class TestFoodFluidIds(TransactionCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(TestFoodFluidIds, self).setUp() <NEW_LINE> self.test_utils = self.env['nh.clinical.test_utils'] <NEW_LINE> self.wardboard_model = self.env['nh.clinical.wardboard'] <NEW_LINE> self.test_utils.admit_and_place_patient()... | Test `food_fluid_ids` field on `nh.clinical.wardboard`. | 62598ef23d592f4c4edb9707 |
class PaintingRobot(): <NEW_LINE> <INDENT> def __init__(self, posx=0, posy=0, face='n', start='black'): <NEW_LINE> <INDENT> self.posx = posx <NEW_LINE> self.posy = posy <NEW_LINE> self.face = face <NEW_LINE> if start == 'black': <NEW_LINE> <INDENT> self.panels = {(self.posx, self.posy): 0} <NEW_LINE> <DEDENT> elif star... | Emergency hull painting robot class. | 62598ef21f5feb6acb16146f |
class TimeoutException(Exception): <NEW_LINE> <INDENT> pass | Custom exception in case of timeout. | 62598ef2a17c0f6771d5aa70 |
class ItemList(ListView): <NEW_LINE> <INDENT> model = Item <NEW_LINE> context_object_name = "item_list" <NEW_LINE> paginate_by = FEEDAGGREGATOR_PAGE_SIZE <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> return Item.active.all() | List of all the active items | 62598ef2442bda511e95ac7e |
class AuthError(Error): <NEW_LINE> <INDENT> def __init__(self, status_code, message): <NEW_LINE> <INDENT> self.expression = status_code <NEW_LINE> self.message = message <NEW_LINE> log.error(message.__dict__) | Exception raised for errors when trying to Auth to Dexcome share
| 62598ef2a219f33f346c504f |
class Board(object): <NEW_LINE> <INDENT> def __init__(self, karel, karel_map): <NEW_LINE> <INDENT> self.karel = karel <NEW_LINE> self.map = karel_map <NEW_LINE> <DEDENT> @property <NEW_LINE> def width(self): <NEW_LINE> <INDENT> return len(self.map[0]) <NEW_LINE> <DEDENT> @property <NEW_LINE> def height(self): <NEW_LINE... | Example map of Karel world:
1..#...
#....^.
Legend:
- one beeper ('1') is on (0,0)
- robot Karel ('^') is on (5,1)
- two walls on (3,0) and (0,1) | 62598ef2ff9c53063f518e7c |
class APIEasypay(colony.System): <NEW_LINE> <INDENT> def create_client(self, api_attributes, open_client = True): <NEW_LINE> <INDENT> client_http_plugin = self.plugin.client_http_plugin <NEW_LINE> easypay_structure = api_attributes.get("easypay_structure", None) <NEW_LINE> test_mode = api_attributes.get("test_mode", Fa... | The API Easypay class. | 62598ef263b5f9789fe8397a |
class FeaturedSpeakerForm(messages.Message): <NEW_LINE> <INDENT> name = messages.StringField(1) <NEW_LINE> conference = messages.StringField(2) <NEW_LINE> conference_location = messages.StringField(3) <NEW_LINE> sessions = messages.StringField(4, repeated=True) | ConferenceQueryForms -- multiple ConferenceQueryForm inbound form message | 62598ef244b2445a339b5d7a |
class Player(TypedDict): <NEW_LINE> <INDENT> Id: Optional[str] <NEW_LINE> Username: Optional[str] <NEW_LINE> Thumbnail: Thumbnail | Player object, member of game instances. When returned from Roblox, types will be ignored and defaults to `str` | 62598ef2377c676e912f6170 |
class LookupdClient(HTTPClient): <NEW_LINE> <INDENT> def __init__(self, host='localhost', port=4161, **kwargs): <NEW_LINE> <INDENT> super(LookupdClient, self).__init__(host, port, **kwargs) <NEW_LINE> <DEDENT> def lookup(self, topic): <NEW_LINE> <INDENT> nsq.assert_valid_topic_name(topic) <NEW_LINE> return self._reques... | Low level http client for nsqlookupd.
:param host: nsqlookupd host address (default: localhost)
:param port: nsqlookupd http port (default: 4161)
:param useragent: useragent sent to nsqlookupd (default:
``<client_library_name>/<version>``)
:param connection_class: override the http connection class | 62598ef2b7558d5895461e63 |
class Container(object): <NEW_LINE> <INDENT> def __init__(self, pid, process_namespace=None): <NEW_LINE> <INDENT> self.pid = str(pid) <NEW_LINE> self.short_id = str(hash(pid)) <NEW_LINE> self.long_id = str(hash(pid)) <NEW_LINE> self.name = str(pid) <NEW_LINE> self.namespace = str(pid) <NEW_LINE> self.image = None <NEW_... | This class abstracts a running Linux container. | 62598ef2bf627c535bcafc8d |
class ExtremeLBDistribution(Distribution): <NEW_LINE> <INDENT> def inverseCDF(self, probability, start=0.0, step=0.01): <NEW_LINE> <INDENT> cprob = self.CDF(start) <NEW_LINE> if probability < cprob: return (start, cprob) <NEW_LINE> while (probability > cprob): <NEW_LINE> <INDENT> start = start + step <NEW_LINE> cprob =... | Class for Extreme LB distribution. | 62598ef266673b3332c2ebc7 |
class BaseSchema(Schema): <NEW_LINE> <INDENT> def _to_python(self, value_dict, state): <NEW_LINE> <INDENT> value_dict = super(BaseSchema, self)._to_python(value_dict, state) <NEW_LINE> for k, v in value_dict.items(): <NEW_LINE> <INDENT> if v == IgnoreKeyMissed: <NEW_LINE> <INDENT> value_dict.pop(k) <NEW_LINE> <DEDENT> ... | new Implementation of formencode Schema to cover some deficits | 62598ef2091ae35668703436 |
class addFilterDeToClass_IDL_result(object): <NEW_LINE> <INDENT> thrift_spec = ((0, TType.I32, 'success', None, None), (1, TType.STRUCT, 'e', (Shared.ttypes.ExceptionIDL, Shared.ttypes.ExceptionIDL.thrift_spec), None)) <NEW_LINE> def __init__(self, success = None, e = None): <NEW_LINE> <INDENT> self.success = success <... | Attributes:
- success
- e | 62598ef2f548e778e5969da9 |
class BusinessUnitReference(object): <NEW_LINE> <INDENT> swagger_types = { 'name': 'str', 'id': 'str' } <NEW_LINE> attribute_map = { 'name': 'name', 'id': 'id' } <NEW_LINE> def __init__(self, name=None, id=None): <NEW_LINE> <INDENT> self._name = None <NEW_LINE> self._id = None <NEW_LINE> self.discriminator = None <NEW_... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598ef25fdd1c0f98e5c7bf |
@disruptor(tactics, dtype="NEXT", weight=4, args={'path': ('Graph path regexp to select nodes on which ' 'the disruptor should apply.', None, str), 'recursive': ('Apply the disruptor recursively.', True, str), 'clone_node': ('If True the dmaker will always return a copy ' ... | Move to the next content of the nodes from input data or from only
a piece of it (if the parameter `path` is provided). Basically,
unfreeze the nodes then freeze them again, which will consequently
produce a new data. | 62598ef2d7e4931a7ef3a8b8 |
class TransformLogCompressC(Transform): <NEW_LINE> <INDENT> def __init__(self, base, aC, bC): <NEW_LINE> <INDENT> super(TransformLogCompressC, self).__init__(base) <NEW_LINE> self.aC = aC <NEW_LINE> self.bC = bC <NEW_LINE> <DEDENT> def from_base(self, ndata): <NEW_LINE> <INDENT> Lapbp = ndata.copy() <NEW_LINE> C = np.s... | Perform parametric logarithmic compression of chroma.
As in the DIN99x formulae. | 62598ef2be7bc26dc9251271 |
class ContextPlugin(object): <NEW_LINE> <INDENT> def preBuild(self, site): <NEW_LINE> <INDENT> self.context = site.config.get("context", {}, nested=True) <NEW_LINE> <DEDENT> def preBuildPage(self, page, context, data): <NEW_LINE> <INDENT> context.update(self.context) <NEW_LINE> return context, data | A plugin to manage custom context via config files.
The context can be made available via a "context" key in config files. | 62598ef267a9b606de5447eb |
class Button(AbstractSelector): <NEW_LINE> <INDENT> def __init__(self, search_text=None, text=None, name=None): <NEW_LINE> <INDENT> super(Button, self).__init__() <NEW_LINE> self._search_text = search_text <NEW_LINE> self._text = text <NEW_LINE> self._name = name <NEW_LINE> if self._search_text and self._text: <NEW_LIN... | Just a selector that finds a button by its label or name. | 62598ef21b99ca400228e91d |
class Graph: <NEW_LINE> <INDENT> def __init__(self, init,fin,graph_dict=None, directed=True): <NEW_LINE> <INDENT> self.init = init <NEW_LINE> self.fin = fin <NEW_LINE> self.graph_dict = graph_dict or {} <NEW_LINE> self.directed = directed <NEW_LINE> if not directed: <NEW_LINE> <INDENT> self.make_undirected() <NEW_LINE>... | A graph connects nodes (vertices) by edges (links). Each edge can also
have a length associated with it. The constructor call is something like:
g = Graph({'A': {'B': 1, 'C': 2})
this makes a graph with 3 nodes, A, B, and C, with an edge of length 1 from
A to B, and an edge of length 2 from A to C. You can also do... | 62598ef29c8ee8231303f569 |
class LifeCycleEnvironmentPaginationTestCase(CLITestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> super(LifeCycleEnvironmentPaginationTestCase, cls).setUpClass() <NEW_LINE> cls.lces_count = 25 <NEW_LINE> cls.org = make_org() <NEW_LINE> env_base_name = gen_string('alpha') <N... | Test class for LifeCycle Environment pagination tests | 62598ef2e5267d203ee6a126 |
class L2_interfacesArgs(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> argument_spec = { 'config': { 'elements': 'dict', 'options': { 'access': { 'options': { 'vlan': { 'type': 'int' } }, 'type': 'dict' }, 'mode': { 'type': 'str', 'choices': ['access', 'trunk'] }... | The arg spec for the nxos_l2_interfaces module
| 62598ef23d592f4c4edb9709 |
class Page(object): <NEW_LINE> <INDENT> def __init__(self, url, params=None, **kwargs): <NEW_LINE> <INDENT> self.__url = url <NEW_LINE> self.__params = params <NEW_LINE> self.__kwargs = kwargs <NEW_LINE> self.__response = None <NEW_LINE> <DEDENT> def __call__(self, refresh=False): <NEW_LINE> <INDENT> if refresh or self... | Веб страница | 62598ef2a17c0f6771d5aa72 |
@adapter(IMemberData) <NEW_LINE> class DefaultMemberDocPropertyProvider(DocPropertyProvider): <NEW_LINE> <INDENT> DEFAULT_PREFIX = ('user',) <NEW_LINE> ogds_user_attributes = ( 'firstname', 'lastname', 'directorate', 'directorate_abbr', 'department', 'department_abbr', 'email', 'email2', 'url', 'phone_office', 'phone_f... | Return the default user properties from LDAP/ogds. | 62598ef27d43ff248742680a |
class IntermediateOutput(Event): <NEW_LINE> <INDENT> def __init__(self, source, x): <NEW_LINE> <INDENT> super().__init__(source) <NEW_LINE> self.x = x | Used by the TransformerEncoder and the TransformerDecoder to provide the
intermediate outputs to interested callers.
Arguments
---------
source: torch.nn.Module instance that dispatched this event
x: torch.tensor containing the intermediate features in shape NLD | 62598ef2d486a94d0ba2a7e5 |
class ReadOnlyMetaClass(type): <NEW_LINE> <INDENT> def __setattr__(self, name, value): <NEW_LINE> <INDENT> raise NotImplementedError | This meta class implements a class where attributes are read only. | 62598ef27b25080760ed5cba |
class BaseProgressBar(object): <NEW_LINE> <INDENT> def __init__(self, iterable, epoch=None, prefix=None): <NEW_LINE> <INDENT> self.iterable = iterable <NEW_LINE> self.n = getattr(iterable, "n", 0) <NEW_LINE> self.epoch = epoch <NEW_LINE> self.prefix = "" <NEW_LINE> if epoch is not None: <NEW_LINE> <INDENT> self.prefix ... | Abstract class for progress bars. | 62598ef2bd1bec0571e144da |
@httpretty.activate <NEW_LINE> @disable_signal(api, 'thread_created') <NEW_LINE> @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) <NEW_LINE> class ThreadViewSetCreateTest(DiscussionAPIViewTestMixin, ModuleStoreTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> supe... | Tests for ThreadViewSet create | 62598ef260cbc95b06362b55 |
class PyFlaskRestful(PythonPackage): <NEW_LINE> <INDENT> homepage = "https://www.github.com/flask-restful/flask-restful/" <NEW_LINE> pypi = "Flask-RESTful/Flask-RESTful-0.3.8.tar.gz" <NEW_LINE> version('0.3.9', sha256='ccec650b835d48192138c85329ae03735e6ced58e9b2d9c2146d6c84c06fa53e') <NEW_LINE> depends_on('py-setu... | Simple framework for creating REST APIs | 62598ef2f548e778e5969dab |
class InvalidArticleError(Exception): <NEW_LINE> <INDENT> pass | Raised when a webpage is not an article | 62598ef24428ac0f6e656d6d |
class ShowBase(object): <NEW_LINE> <INDENT> def __call__(self, block=None): <NEW_LINE> <INDENT> managers = Gcf.get_all_fig_managers() <NEW_LINE> if not managers: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> for manager in managers: <NEW_LINE> <INDENT> manager.show() <NEW_LINE> <DEDENT> if block is not None: <NEW_LINE... | Simple base class to generate a show() callable in backends.
Subclass must override mainloop() method. | 62598ef25fcc89381b265538 |
class OperatorRunnable(Operator): <NEW_LINE> <INDENT> def __call__(self, **kwargs): <NEW_LINE> <INDENT> self.apply(**kwargs) <NEW_LINE> <DEDENT> def apply(self, **kwargs): <NEW_LINE> <INDENT> arguments = self.arguments(**kwargs) <NEW_LINE> arg_values = [arguments[p.name] for p in self.parameters] <NEW_LINE> self.cfunct... | A special :class:`Operator` that, besides generation and compilation of
C code evaluating stencil expressions, can also execute the computation. | 62598ef256b00c62f0fb10f3 |
class TestLaggedEnsemble(tests.GraphicsTest): <NEW_LINE> <INDENT> def test_lagged_ensemble(self): <NEW_LINE> <INDENT> with fail_any_deprecation_warnings(): <NEW_LINE> <INDENT> with add_examples_to_path(): <NEW_LINE> <INDENT> import lagged_ensemble <NEW_LINE> <DEDENT> with show_replaced_by_check_graphic(self): <NEW_LINE... | Test the lagged ensemble example code. | 62598ef23539df3088ecaacd |
class ParameterStats(NamedTuple): <NEW_LINE> <INDENT> diagonal_statistics: chex.Array <NEW_LINE> diagonal_momentum: QuantizedValue | State associated to each parameter of the model being trained. | 62598ef256ac1b37e6300a0c |
class SSLBio(BIO): <NEW_LINE> <INDENT> def __init__(self, _pyfree=1): <NEW_LINE> <INDENT> super(SSLBio, self).__init__(self, _pyfree=_pyfree) <NEW_LINE> self.bio = m2.bio_new(m2.bio_f_ssl()) <NEW_LINE> self.closed = 0 <NEW_LINE> <DEDENT> def set_ssl(self, conn, close_flag=m2.bio_noclose): <NEW_LINE> <INDENT> self._pyfr... | Object interface to BIO_f_ssl. | 62598ef297e22403b383970f |
class FindLabelingLocal(FindLabelingBase, LocalTask): <NEW_LINE> <INDENT> pass | FindLabeling on local machine | 62598ef2be383301e0251ffa |
class MarkedupImage(object): <NEW_LINE> <INDENT> def __init__(self, ax, limits, draw_fringes=False, draw_curve=True, clims=(.5, 1.5)): <NEW_LINE> <INDENT> self.ax = ax <NEW_LINE> ax.cla() <NEW_LINE> self.img = self.ax.imshow(np.zeros((limits[3] - limits[2], limits[1] - limits[0])), extent=limits, cmap='gray', origin='l... | Class to encapsulate drawing the image
the shape + (maybe) fringes on it | 62598ef21b99ca400228e91e |
class Area4_16_InnerArea(area_base.Area): <NEW_LINE> <INDENT> def __init__(self: "Area", window_width: int = 500, window_height: int = 500, player_obj: "Snake"=None, enemies: "Group"=None): <NEW_LINE> <INDENT> area_base.Area.__init__(self, window_width, window_height, player_obj, enemies) <NEW_LINE> self.is_safe_haven ... | A class that represents the inner Area of Area4_16. | 62598ef201c39578d7f115c3 |
class Classifier(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.model = InceptionResNetV2(weights='imagenet') <NEW_LINE> <DEDENT> def predict(self, img): <NEW_LINE> <INDENT> if img.size != TARGET_SIZE: <NEW_LINE> <INDENT> img = img.resize(TARGET_SIZE) <NEW_LINE> <DEDENT> input = image.img_to_array(... | Classifier Model Wrapper Class | 62598ef2a8370b77170eec04 |
class Solution: <NEW_LINE> <INDENT> def rehashing(self, hashTable): <NEW_LINE> <INDENT> keys = [] <NEW_LINE> for node in hashTable: <NEW_LINE> <INDENT> while node: <NEW_LINE> <INDENT> keys.append(node.val) <NEW_LINE> node = node.next <NEW_LINE> <DEDENT> <DEDENT> capacity = len(hashTable) * 2 <NEW_LINE> new_hash_table =... | @param hashTable: A list of The first node of linked list
@return: A list of The first node of linked list which have twice size | 62598ef226068e7796d4b17c |
class ComputedReaction(Reaction): <NEW_LINE> <INDENT> def __init__(self, reactant_entries, product_entries): <NEW_LINE> <INDENT> self._reactant_entries = reactant_entries <NEW_LINE> self._product_entries = product_entries <NEW_LINE> reactant_comp = set([e.composition .get_reduced_composition_and_factor()[0] for e in re... | Convenience class to generate a reaction from ComputedEntry objects, with
some additional attributes, such as a reaction energy based on computed
energies. | 62598ef28e7ae83300ee78b0 |
class HawcServerException(HawcException): <NEW_LINE> <INDENT> pass | An exception occurred on the HAWC server. | 62598ef23d592f4c4edb970b |
class PeriodCachePackage(ModelSQL, ModelView, NumberOfPackagesCacheMixin): <NEW_LINE> <INDENT> __name__ = 'stock.period.cache.package' <NEW_LINE> period = fields.Many2One('stock.period', 'Period', required=True, readonly=True, select=True, ondelete='CASCADE') <NEW_LINE> location = fields.Many2One('stock.location', 'Loc... | Stock Period Cache per Package
It is used to store cached computation of stock quantities per package. | 62598ef24527f215b58e871f |
class X4ReactionCombination(X4Measurement): <NEW_LINE> <INDENT> def __init__(self, x): <NEW_LINE> <INDENT> if isinstance(x, str): <NEW_LINE> <INDENT> x = self.parse(x) <NEW_LINE> <DEDENT> self.data = list(map(self.getStrOrX4Reaction, x)) <NEW_LINE> self.reaction_list = self.getReactionList() <NEW_LINE> self.quantity = ... | Parsed Exfore reaction combination. This is what is measured when | 62598ef27c178a314d78bcb7 |
class CommunityHealthUnitListView( FilterCommunityUnitsMixin, generics.ListCreateAPIView): <NEW_LINE> <INDENT> queryset = CommunityHealthUnit.objects.all() <NEW_LINE> serializer_class = CommunityHealthUnitSerializer <NEW_LINE> filter_class = CommunityHealthUnitFilter <NEW_LINE> ordering_fields = ('name', 'facility', 'c... | Lists and creates community health units
Created --- Date the record was Created
Updated -- Date the record was Updated
Created_by -- User who created the status
Updated_by -- User who updated the status
active -- Boolean is the record active
deleted -- Boolean is the record deleted | 62598ef2f9cc0f698b1c46df |
class Candidate(Person): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> super().__init__(name) <NEW_LINE> self.__requested_slots = None <NEW_LINE> <DEDENT> def get_requested_slots(self): <NEW_LINE> <INDENT> return self.__requested_slots <NEW_LINE> <DEDENT> def set_requested_slots(self, slots): <NEW_L... | Candidate class inherited from Person | 62598ef2796e427e5384cfb9 |
class WholeModelValidationErrorDialog(QtWidgets.QDialog): <NEW_LINE> <INDENT> def __init__(self, parent=None): <NEW_LINE> <INDENT> QtWidgets.QDialog.__init__(self, parent=parent) <NEW_LINE> self.warnings = [] <NEW_LINE> self.setLayout(QtWidgets.QVBoxLayout()) <NEW_LINE> self.title_icon = QtWidgets.QLabel() <NEW_LINE> s... | A dialog for presenting errors from whole-model validation. | 62598ef2fff4ab517ebcbff8 |
class bm_deserialize_state_args(object): <NEW_LINE> <INDENT> def __init__(self, file_name=None,): <NEW_LINE> <INDENT> self.file_name = file_name <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spe... | Attributes:
- file_name | 62598ef291f36d47f22302b4 |
class User(AbstractUser): <NEW_LINE> <INDENT> mobile = models.CharField(max_length=11, unique=True, verbose_name='手机号') <NEW_LINE> email_active = models.BooleanField(default=False, verbose_name='邮箱状态') <NEW_LINE> default_address = models.ForeignKey('Address', related_name='users', null=True, blank=True, on_delete=model... | 自定义用户模型类 | 62598ef2dc8b845886d51de5 |
class SublayerConnection(nn.Module): <NEW_LINE> <INDENT> def __init__(self, size, dropout): <NEW_LINE> <INDENT> super(SublayerConnection, self).__init__() <NEW_LINE> self.norm = LayerNorm(size) <NEW_LINE> self.dropout = nn.Dropout(dropout) <NEW_LINE> <DEDENT> def forward(self, x, sublayer): <NEW_LINE> <INDENT> return x... | LayerNorm + sublayer(Self-Attenion/Dense) + dropout + 残差连接
为了简单,把LayerNorm放到了前面,这和原始论文稍有不同,原始论文LayerNorm在最后。 | 62598ef2e5267d203ee6a129 |
class DeleteUserInputSet(InputSet): <NEW_LINE> <INDENT> def set_AccessToken(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'AccessToken', value) <NEW_LINE> <DEDENT> def set_Force(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'Force', value) <NEW_LINE> <DEDENT> def set_Notify(self, value): <NE... | An InputSet with methods appropriate for specifying the inputs to the DeleteUser
Choreo. The InputSet object is used to specify input parameters when executing this Choreo. | 62598ef2baa26c4b54d4daed |
class LoadingDialog(QtGui.QDialog): <NEW_LINE> <INDENT> instance = None <NEW_LINE> onUpdate = QtCore.pyqtSignal('QString', int, int, name='update') <NEW_LINE> @classmethod <NEW_LINE> def getLoadingDialog(cls, parent=None): <NEW_LINE> <INDENT> if not cls.instance: <NEW_LINE> <INDENT> cls.instance = cls() <NEW_LINE> supe... | A loading frame with a label and progress bar | 62598ef2851cf427c66b6ae4 |
class PatientInsuranceState(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(PatientInsuranceState, self).__init__() <NEW_LINE> db=databaseServer.databaseConfig() <NEW_LINE> self.conn=db.db <NEW_LINE> <DEDENT> def addPatientInsuranceState(self,**kwags): <NEW_LINE> <INDENT> cur=self.conn.cursor... | docstring for PatientInsuranceState. | 62598ef2adb09d7d5dc08de9 |
class PlayingDeck(object): <NEW_LINE> <INDENT> ranks = ["two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "jack", "queen", "king", "ace"] <NEW_LINE> suits = ["diamonds", "clubs", "hearts", "spades"] <NEW_LINE> def __init__(self, type_of_card): <NEW_LINE> <INDENT> self.deck_container = deque() <NEW... | A Deck of 'Playing Cards'
initialized with classic the 52 cards, no jokers
double-ended queue is used to emulate a real-world Deck of Cards
the left side of the deque is the bottom of a Deck and the right side is the top | 62598ef25fdd1c0f98e5c7c3 |
class EventHandler(metaclass=ABCMeta): <NEW_LINE> <INDENT> def __init__(self, simulation_engine): <NEW_LINE> <INDENT> self._simulation_engine = simulation_engine <NEW_LINE> self._simulation_engine.register_callback(self.handle_start, SimulationEngine.START_CALLBACK) <NEW_LINE> self._simulation_engine.register_callback(... | Abstract base class for event handlers | 62598ef216aa5153ce3fed22 |
class ScanReportLog(ReportDetails): <NEW_LINE> <INDENT> def render_to_response(self, context, **response_kwargs): <NEW_LINE> <INDENT> scan = self.get_object() <NEW_LINE> response = HttpResponse(content_type="text/plain") <NEW_LINE> log_file = "scan{0}_log.txt".format(scan.id) <NEW_LINE> response[ 'Content-Disposition' ... | Display ordinary log file for debugging purposes. | 62598ef2f548e778e5969dad |
class MCommand(click.MultiCommand): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> if kwargs and click_args: <NEW_LINE> <INDENT> kwargs.update(click_args) <NEW_LINE> <DEDENT> click.MultiCommand.__init__(self, *args, **kwargs) <NEW_LINE> <DEDENT> def list_commands(self, ctx): <NEW_LINE> <IN... | Treadmill CLI driver. | 62598ef2a05bb46b38489093 |
class GroupsScaler(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, scaler, by='site'): <NEW_LINE> <INDENT> self.by = by <NEW_LINE> self._base_scaler = scaler <NEW_LINE> self._scalers = {} <NEW_LINE> self._groups = None <NEW_LINE> self._colnames = None <NEW_LINE> self._colmask = None <NEW_LINE> ... | Wraps a data transformation to run group-wise.
Example
-------
>>> from sklearn.preprocessing import StandardScaler
>>> from mriqc.classifier.sklearn.preprocessing import GroupsScaler
>>> tfm = GroupsScaler(StandardScaler(), groups='site')
>>> scaled = tfm.fit_transform(churn_d) | 62598ef25fcc89381b265539 |
class MemoryLogHandler(list, logging.handlers.BufferingHandler): <NEW_LINE> <INDENT> def __init__(self, capacity=1000): <NEW_LINE> <INDENT> list.__init__(self) <NEW_LINE> logging.handlers.BufferingHandler.__init__(self, capacity=capacity) <NEW_LINE> self._handler_list_changed = False <NEW_LINE> <DEDENT> def shouldFlush... | An experimental log handler that stores temporary records in memory.
When flushed it passes the records to another handler | 62598ef263d6d428bbee0ff0 |
class DS2482(i2c.I2C): <NEW_LINE> <INDENT> def __init__(self,drvname,clock=100000,addr=0x18): <NEW_LINE> <INDENT> i2c.I2C.__init__(self,drvname,addr,clock) <NEW_LINE> self.ch=0 <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> i2c.I2C.start(self) <NEW_LINE> _init(self.drvid,self.addr,self.ch) <NEW_LINE> <DEDENT>... | ================
DS2482 class
================
.. class:: DS2482(drvname,clock=100000,addr=0x18)
Creates a DS2482 instance using the MCU I2C circuitry *drvname* (one of I2C0, I2C1, ... check pinmap for details).
The created instance is configured and ready to communicate.
*clock* is configured... | 62598ef256b00c62f0fb10f5 |
class ParameterParser(object): <NEW_LINE> <INDENT> def __init__(self, prog, *decls, **kwargs): <NEW_LINE> <INDENT> m = kwargs <NEW_LINE> if 'add_help' not in m: <NEW_LINE> <INDENT> m['add_help'] = False <NEW_LINE> <DEDENT> self.p = argparse.ArgumentParser(prog=prog, **m) <NEW_LINE> for decl in decls: <NEW_LINE> <INDENT... | An argparse wrapper that saves the parameter order. | 62598ef28e7ae83300ee78b2 |
class UpdateCertificateRequest(proto.Message): <NEW_LINE> <INDENT> certificate = proto.Field( proto.MESSAGE, number=1, message=resources.Certificate, ) <NEW_LINE> update_mask = proto.Field( proto.MESSAGE, number=2, message=field_mask_pb2.FieldMask, ) <NEW_LINE> request_id = proto.Field( proto.STRING, number=3, ) | Request message for
[CertificateAuthorityService.UpdateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate].
Attributes:
certificate (google.cloud.security.privateca_v1.types.Certificate):
Required.
[Certificate][google.cloud.security.privateca.v1.Certifica... | 62598ef2a219f33f346c5055 |
class IxnSimRouterEmulation(IxnEmulationHost): <NEW_LINE> <INDENT> def __init__(self, ixnhttp): <NEW_LINE> <INDENT> super(IxnSimRouterEmulation, self).__init__(ixnhttp) <NEW_LINE> <DEDENT> def find(self, vport_name=None, emulation_host=None, **filters): <NEW_LINE> <INDENT> return super(IxnSimRouterEmulation, self).find... | Generated NGPF simRouter emulation host | 62598ef2e5267d203ee6a12b |
class Liste: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.tete = None <NEW_LINE> self.queue = None <NEW_LINE> self.taille = 0 <NEW_LINE> <DEDENT> def ajouter_en_tete(self, valeur): <NEW_LINE> <INDENT> cel = Cellule(valeur) <NEW_LINE> if self.tete is None: <NEW_LINE> <INDENT> self.tete, self.queue = ... | une liste simplement chainee.
contient un pointeur sur la cellule en tete de liste et un autre sur
la queue de liste.
un compteur permet de savoir rapidement la taille de la liste. | 62598ef27b25080760ed5cbe |
class ProactorEventLoopPolicy(asyncio.AbstractEventLoopPolicy): <NEW_LINE> <INDENT> def __init__(self, proactor=None): <NEW_LINE> <INDENT> self.__loops = collections.defaultdict(lambda: self.new_event_loop()) <NEW_LINE> self.__child_watcher = asyncio.get_child_watcher() <NEW_LINE> self.__proactor = proactor <NEW_LINE> ... | Implements an event loop per thread.
Warning:
This is only compatible with Windows.
See:
:func:`use_proactor_on_windows` | 62598ef2e1aae11d1e7cdc52 |
class MainThreadException(Exception): <NEW_LINE> <INDENT> pass | Raised if GUI tests are run from main thread. Can't start QT app. | 62598ef22ae34c7f260a9903 |
@myaml.register <NEW_LINE> @connection.register <NEW_LINE> class Parameter(Para): <NEW_LINE> <INDENT> structure = { 'main': bool, 'hidden': bool, 'simple': bool, 'type': Type, 'ctrls': None } <NEW_LINE> default_values = { 'main': False, 'hidden': False, 'simple': False, } <NEW_LINE> @property <NEW_LINE> def default_val... | a service parameter | 62598ef2097d151d1a2bf843 |
class ArubaDeviceMap(SnmpPlugin): <NEW_LINE> <INDENT> maptype = "ArubaDeviceMap" <NEW_LINE> snmpGetMap = GetMap({ '.1.3.6.1.4.1.14823.2.2.1.1.1.2.0' : 'setHWProductKey', '.1.3.6.1.4.1.14823.2.2.1.2.1.11.0' : 'setHWSerialNumber', '.1.3.6.1.2.1.1.1.0': 'setOSProductKey', }) <NEW_LINE> def process(self, device, results, l... | Map mib elements from Aruba mib to get hw and os products.
| 62598ef25fdd1c0f98e5c7c5 |
class ProjectedLinearOperator(LinearOperatorInterface): <NEW_LINE> <INDENT> type_source = type_range = NumpyVectorArray <NEW_LINE> def __init__(self, operator, source_basis, range_basis=None, product=None, name=None): <NEW_LINE> <INDENT> if range_basis is None: <NEW_LINE> <INDENT> range_basis = NumpyVectorArray(np.ones... | Projection of an linear operator to a subspace.
The same as ProjectedOperator, but the resulting operator is again a
`LinearOperator`.
See also `ProjectedOperator`.
Parameters
----------
operator
The `DiscreteLinearOperator` to project.
source_basis
The b_1, ..., b_N as a 2d-array.
range_basis
The c_1, .... | 62598ef266673b3332c2ebcd |
class MetadataWatcher(object): <NEW_LINE> <INDENT> def __init__(self, logger=logging, timeout=60): <NEW_LINE> <INDENT> self.etag = 0 <NEW_LINE> self.logger = logger <NEW_LINE> self.timeout = timeout <NEW_LINE> <DEDENT> @RetryOnUnavailable <NEW_LINE> def _GetMetadataRequest(self, metadata_url, params=None): <NEW_LINE> <... | Watches for changes in metadata. | 62598ef25fcc89381b26553a |
class UnknownError(ProtocolError): <NEW_LINE> <INDENT> pass | Raised upon receipt of an unknown error (transmission of Errors.Unknown). The spec says that this can happen
during "Add Pairing" (chapter 4.11 page 51) and "Remove Pairing" (chapter 4.12 page 53). | 62598ef2236d856c2adc8828 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.