code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class DCIntegerOutOfBounds(DCError): <NEW_LINE> <INDENT> pass
Exception for integer out of set bounds.
62598eee60cbc95b06362aeb
class OneRandomPath(Selection): <NEW_LINE> <INDENT> def get_path(self, sim, app_name, message, topology_src,alloc_DES, alloc_module, traffic,from_des): <NEW_LINE> <INDENT> paths = [] <NEW_LINE> dst_idDES = [] <NEW_LINE> src_node = topology_src <NEW_LINE> DES = alloc_module[message.app_name][message.dst] <NEW_LINE> for ...
Among all the possible options, it returns a random path.
62598eee7047854f4633db7e
class UdebsSyntaxError(UdebsError): <NEW_LINE> <INDENT> def __init__(self, string): <NEW_LINE> <INDENT> self.message = string <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return repr(self.message)
Is raised when an effect or require is malformed and fails to parse.
62598eee460517430c430c34
class Spectrum(object): <NEW_LINE> <INDENT> def __init__(self, name, data=None, resampled=False, metadata=None, mask=False): <NEW_LINE> <INDENT> if data is not None: <NEW_LINE> <INDENT> self.data = data <NEW_LINE> <DEDENT> self.name = name <NEW_LINE> self.resampled = resampled <NEW_LINE> self.mask = mask <NEW_LINE> if ...
A container storing a single spectrum measurement as np.array. Parameters ----------- name : string Name of the spectrum. data : list of numpy.recarray objects The dataset. numpy.recarray objects resampled : `bool`, optional Indicates whether the spectrum has been resampled to integer wavelengths metadata ...
62598eeebe383301e0251f85
class SDAAMFitter(AAMFitter, SDFitter): <NEW_LINE> <INDENT> def __init__(self, aam, regressors, n_training_images): <NEW_LINE> <INDENT> super(SDAAMFitter, self).__init__(aam) <NEW_LINE> self._fitters = regressors <NEW_LINE> self._n_training_images = n_training_images <NEW_LINE> <DEDENT> @property <NEW_LINE> def algorit...
Supervised Descent Fitter for AAMs. Parameters ----------- aam : :map:`AAM` The Active Appearance Model to be used. regressors : :map:``RegressorTrainer` The trained regressors. n_training_images : `int` The number of training images used to train the SDM fitter.
62598eee3d592f4c4edb96a1
class Dimension(QGraphicsPathItem): <NEW_LINE> <INDENT> leaderLen = 30 <NEW_LINE> extensionLineExt = 5 <NEW_LINE> extensionLineGap = 5 <NEW_LINE> jogLineLen = 30 <NEW_LINE> gapAngle = 1.5 <NEW_LINE> extAngle = .5 <NEW_LINE> def __init__(self, parent=None): <NEW_LINE> <INDENT> super(Dimension, self).__init__(parent) <NE...
Pseudo-Abstract base class for all dimensions.
62598eee442bda511e95ac0f
class LinkedQueue: <NEW_LINE> <INDENT> class _Node: <NEW_LINE> <INDENT> __slots__ = '_element', '_next' <NEW_LINE> def __init__(self, element, next): <NEW_LINE> <INDENT> self._element = element <NEW_LINE> self._next = next <NEW_LINE> <DEDENT> <DEDENT> def __init__(self): <NEW_LINE> <INDENT> self._head = None <NEW_LINE>...
FIFO queueimplementation using a singly linked list for storage.
62598eeea8370b77170eeb91
class Article(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=200) <NEW_LINE> body = models.TextField() <NEW_LINE> pub_date = models.DateTimeField('date published') <NEW_LINE> likes = models.IntegerField() <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.title
Title Body Date Likes
62598eeea219f33f346c4fe9
class Descriptor(object): <NEW_LINE> <INDENT> def __init__( self, name, description, labels=None, metric_type='gauge', value_type='int64'): <NEW_LINE> <INDENT> if metric_type not in METRIC_TYPES: <NEW_LINE> <INDENT> raise ValueError('Metric type not supported: %s' % metric_type) <NEW_LINE> <DEDENT> if value_type not in...
Descriptor defines a schema of a metric. See https://cloud.google.com/monitoring/v2beta2/metricDescriptors#resource Args: name: name of the metric (e.g. "service/name"). description: textual description of the metric. labels: dict {label name: description} or empty for lightweight metric. metric_type: type of...
62598eee2ae34c7f260a9894
class PyDLL(CDLL): <NEW_LINE> <INDENT> _func_flags_ = _FUNCFLAG_CDECL | _FUNCFLAG_PYTHONAPI
This class represents the Python library itself. It allows accessing Python API functions. The GIL is not released, and Python exceptions are handled correctly.
62598eee56b00c62f0fb107f
class ManageWindowsCI(object): <NEW_LINE> <INDENT> def __init__(self, core_ci): <NEW_LINE> <INDENT> self.core_ci = core_ci <NEW_LINE> self.ssh_args = ['-i', self.core_ci.ssh_key.key] <NEW_LINE> ssh_options = dict( BatchMode='yes', StrictHostKeyChecking='no', UserKnownHostsFile='/dev/null', ServerAliveInterval=15, Serve...
Manage access to a Windows instance provided by Ansible Core CI.
62598eee26068e7796d4b109
class OldBibleDB(QtCore.QObject, Manager): <NEW_LINE> <INDENT> cursor = None <NEW_LINE> def __init__(self, parent, **kwargs): <NEW_LINE> <INDENT> log.info('OldBibleDB loaded') <NEW_LINE> QtCore.QObject.__init__(self) <NEW_LINE> if 'path' not in kwargs: <NEW_LINE> <INDENT> raise KeyError('Missing keyword argument "path"...
This class connects to the old bible databases to reimport them to the new database scheme.
62598eeecc40096d616195af
class Method(ABC): <NEW_LINE> <INDENT> def __init__(self, container): <NEW_LINE> <INDENT> self.container = container <NEW_LINE> <DEDENT> def search(self, problem, lower_bound=None, upper_bound=None): <NEW_LINE> <INDENT> @counter('nb_explored', self) <NEW_LINE> def node_manager(container): <NEW_LINE> <INDENT> nb_explore...
Generic class for traversing a problem's search space. The implementation of a search method typically requires the use of a container, to store the states of the search space that are to be explored. During the search for a solution, states are removed from the container, examined and expanded. Different search meth...
62598eee3539df3088ecaa60
class FastDatabaseTest(TestCase): <NEW_LINE> <INDENT> @contextmanager <NEW_LINE> def mock_sys_argv(self, *args): <NEW_LINE> <INDENT> original_argv = sys.argv <NEW_LINE> sys.argv = list(args) <NEW_LINE> try: <NEW_LINE> <INDENT> yield <NEW_LINE> <DEDENT> finally: <NEW_LINE> <INDENT> sys.argv = original_argv <NEW_LINE> <D...
Test calling fast_test_database.
62598eeed486a94d0ba2a77b
class exponnorm_gen(rv_continuous): <NEW_LINE> <INDENT> def _rvs(self, K): <NEW_LINE> <INDENT> expval = self._random_state.standard_exponential(self._size) * K <NEW_LINE> gval = self._random_state.standard_normal(self._size) <NEW_LINE> return expval + gval <NEW_LINE> <DEDENT> def _pdf(self, x, K): <NEW_LINE> <INDENT> i...
An exponentially modified Normal continuous random variable. %(before_notes)s Notes ----- The probability density function for `exponnorm` is:: exponnorm.pdf(x, K) = 1/(2*K) exp(1/(2 * K**2)) exp(-x / K) * erfc-(x - 1/K) / sqrt(2)) where the shape parameter ``K > 0``. It can be thought of as the sum of...
62598eeee5267d203ee6a0b5
class Stocks(AbsStruct): <NEW_LINE> <INDENT> _attrs = ['_number', '_quote', '_timestamp'] <NEW_LINE> _sub_attrs = ['value', 'date_type'] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.set_attr(self._attrs, self._sub_attrs) <NEW_LINE> self._number.data_type = self._base <NEW_LINE> ...
one frame sotcks set
62598eee5166f23b2e241b87
class DistanceTests(unittest.TestCase): <NEW_LINE> <INDENT> def tearDown(self): <NEW_LINE> <INDENT> clean_up() <NEW_LINE> <DEDENT> test_taxa = ['Archaeohip', 'Calippus', 'Hypohippus', 'M._secundu', 'Merychippu', 'Mesohippus', 'Nannipus', 'Neohippari', 'Parahippus', 'Pliohippus'] <NEW_LINE> def distances_from_alignment(...
Tests for calculating distance based phylogenetic trees with phylip
62598eee2ae34c7f260a9895
class FloatingIPsBulkAdminTestJSON(base.BaseV2ComputeAdminTest): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> @test.safe_setup <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> super(FloatingIPsBulkAdminTestJSON, cls).setUpClass() <NEW_LINE> cls.client = cls.os_adm.floating_ips_client <NEW_LINE> cls.ip_range = CONF.co...
Tests Floating IPs Bulk APIs Create, List and Delete that require admin privileges. API documentation - http://docs.openstack.org/api/openstack-compute/2/ content/ext-os-floating-ips-bulk.html
62598eeefff4ab517ebcbf85
class FacialKeypointsDataset(Dataset): <NEW_LINE> <INDENT> def __init__(self, csv_file, root_dir, transform=None): <NEW_LINE> <INDENT> self.key_pts_frame = pd.read_csv(csv_file).head(100) <NEW_LINE> self.root_dir = root_dir <NEW_LINE> self.transform = transform <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT>...
Face Landmarks dataset.
62598eee8e7ae83300ee783d
class ShortDequeImpl(deque): <NEW_LINE> <INDENT> def __init__(self, iterable='', maxlen=0): <NEW_LINE> <INDENT> if maxlen: <NEW_LINE> <INDENT> if maxlen < 0: <NEW_LINE> <INDENT> raise ValueError('maxlen must be non-negative') <NEW_LINE> <DEDENT> self._maxlen = maxlen <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self._...
Deque with bounded length. Mimics Python 2.6 deque with maxlen. Once a shortdeque is full, when new items are added, a corresponding number of items are discarded from the opposite end.
62598eee99fddb7c1ca621db
class DeclarationStmt(Stmt): <NEW_LINE> <INDENT> def __init__(self,fcn): <NEW_LINE> <INDENT> if isinstance(fcn,Function): <NEW_LINE> <INDENT> Stmt.__init__(self,fcn.line,fcn.col,fcn.debug) <NEW_LINE> self.class_name = u"Declaration_Statement" <NEW_LINE> self.fcn = fcn <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> raise...
hold function declaration statements; have visit option, but no evaluation options.
62598eee63b5f9789fe8390b
class StationViewParser(HTMLParser): <NEW_LINE> <INDENT> def __init__(self, station): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.station = station <NEW_LINE> self.station_code = None <NEW_LINE> self.entered_tr = False <NEW_LINE> self.in_first_a = False <NEW_LINE> self.found_a = False <NEW_LINE> self.td_coun...
Клас, який дозволяє виконати аналіз html-файлу та знайти код експрес 3 за заданою залізничною станцією. Щоб запустити пошук, потрібно викликати метод StationViewParser.feed(self, data), де data - дані з html-файлу.
62598eeeaad79263cf42cfba
class BasicAuthenticator(Authenticator): <NEW_LINE> <INDENT> def authenticate(self): <NEW_LINE> <INDENT> auth = get_authorization_header() <NEW_LINE> if not auth: <NEW_LINE> <INDENT> return AuthenticateResult.skip() <NEW_LINE> <DEDENT> auth_type, auth_info = auth <NEW_LINE> if auth_type != 'basic': <NEW_LINE> <INDENT> ...
HTTP Basic authentication against username and password.
62598eee32920d7e50bc47db
class UpdateOwnProfile(permissions.BasePermission): <NEW_LINE> <INDENT> def has_object_permission(self, request, view, obj): <NEW_LINE> <INDENT> if request.method in permissions.SAFE_METHODS: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> return obj.id == request.user.id
allow user to edit only their own profile
62598eee44b2445a339b5d42
class RequestContext(context.RequestContext): <NEW_LINE> <INDENT> def __init__(self, auth_token=None, domain_id=None, domain_name=None, user=None, tenant=None, is_admin=False, is_public_api=False, read_only=False, show_deleted=False, request_id=None, service_catalog=None): <NEW_LINE> <INDENT> self.is_public_api = is_pu...
Extends security contexts from the OpenStack common library.
62598eeeaad79263cf42cfbb
class Brigand(CMakePackage): <NEW_LINE> <INDENT> homepage = "https://github.com/edouarda/brigand" <NEW_LINE> url = "https://github.com/edouarda/brigand/archive/1.0.0.tar.gz" <NEW_LINE> git = "https://github.com/edouarda/brigand.git" <NEW_LINE> version('master', branch='master') <NEW_LINE> version('1.3.0', sha...
Brigand Meta-programming library
62598eefd268445f26638f66
class BaseNickMessage(BaseMessage): <NEW_LINE> <INDENT> __slots__ = "to", <NEW_LINE> def __init__(self, messaged_at, to): <NEW_LINE> <INDENT> BaseMessage.__init__(self, messaged_at) <NEW_LINE> self.to = unicode(to)
Abstract base type for nickname changing message types. :param messaged_at: a :class:`datetime.datetime` logged :type messaged_at: :class:`datetime.datetime` :param to: a new nickname :type to: :class:`basestring` .. attribute:: to The new nickname.
62598eef379a373c97d977a5
class DNA(): <NEW_LINE> <INDENT> def __init__(self, goal, value, mutationRate): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> self.goal = goal <NEW_LINE> self.mutationRate = mutationRate <NEW_LINE> <DEDENT> '''calculates fitness''' <NEW_LINE> def fitness(self): <NEW_LINE> <INDENT> fit = 0 <NEW_LINE> for i in range(...
initiates the object
62598eef23849d37ff84f868
class SlaveVisualProperty(DragBehavior, Button): <NEW_LINE> <INDENT> visual_name = StringProperty('') <NEW_LINE> def __init__(self, image_source): <NEW_LINE> <INDENT> super(SlaveVisualProperty, self).__init__() <NEW_LINE> self.visual_name = image_source <NEW_LINE> self.background_normal = '' <NEW_LINE> self.background_...
SlaveVisualProperty is the class of the slave's visuals. It represents a single visual property of the slave's properties
62598eefa17c0f6771d5aa03
class BlockToken(object): <NEW_LINE> <INDENT> def __init__(self, lines, tokenize_func): <NEW_LINE> <INDENT> self.children = tokenize_func(lines)
Base class for span-level tokens. Recursively parse inner tokens. Naming conventions: * lines denotes a list of (possibly unparsed) input lines, and is commonly used as the argument name for constructors. * self.children is a generator with all the inner tokens (thus if a token has children attribu...
62598eef7b180e01f3e4841f
class ofdm_serializer_vcc(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def make(*args): <NEW_...
Serializes complex modulations symbols from OFDM sub-carriers. This is the inverse block to the carrier_allocator_cvc. It outputs the complex data symbols as a tagged stream, discarding the pilot symbols. If given, two different tags are parsed: The first key () specifies the number of OFDM symbols in the frame at th...
62598eef4428ac0f6e656cfd
class LanguageField(models.CharField): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> defaults = { 'max_length': 5, 'default': best_languange, 'choices': settings.LANGUAGES, 'db_index': True, } <NEW_LINE> defaults.update(kwargs) <NEW_LINE> super(LanguageField, self).__init__(*args, **defau...
Provides a Language fields that works with the rest of the django i18n machinery.
62598eef283ffb24f3cf2060
class IResource(IType, INamed, IDeployable, IDNSEnablable, IImportFrom): <NEW_LINE> <INDENT> order = zope.schema.Int( title="The order in which the resource will be deployed", description="", min=0, default=0, required=False, ) <NEW_LINE> change_protected = zope.schema.Bool( title="Boolean indicating whether this resou...
Configuration for a cloud resource. Resources may represent a single physical resource in the cloud, or several closely related resources.
62598eef63d6d428bbee0f7c
class WatershedFromMarkerEffectLogic(LabelEffect.LabelEffectLogic): <NEW_LINE> <INDENT> def __init__(self,sliceLogic): <NEW_LINE> <INDENT> self.sliceLogic = sliceLogic <NEW_LINE> self.sigma = 1.0 <NEW_LINE> <DEDENT> def apply(self,xy): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDENT> import SimpleI...
This class contains helper methods for a given effect type. It can be instanced as needed by an WatershedFromMarkerEffectTool or WatershedFromMarkerEffectOptions instance in order to compute intermediate results (say, for user feedback) or to implement the final segmentation editing operation. This class is split fro...
62598eefa8370b77170eeb94
class Highlight(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True) <NEW_LINE> article = models.ForeignKey(Article, on_delete=models.CASCADE, blank=True, null=True) <NEW_LINE> comment = models.CharField(max_length=200, blank=True, null=True) <NEW_LINE> star...
Models for highlighting a text in an article body
62598eef21bff66bcd721405
class ResourceMetadata(model.Model): <NEW_LINE> <INDENT> client = model.Field(name="client", key="client", is_property=False, is_required=False) <NEW_LINE> tenant_id = model.Field(name="tenant_id", key="tenantId", is_property=False, is_required=False) <NEW_LINE> group_id = model.Field(name="group_id", key="groupId", is...
Model for Resource Metadata. Structured data that the client provides to the server. This is an optional element but it is suggested that all clients fill in the data that is applicable to them.
62598eeffff4ab517ebcbf87
class HWStatus: <NEW_LINE> <INDENT> status = 1 <NEW_LINE> statusmap ={1: (DOT_GREY, SEV_WARNING, 'other'), 2: (DOT_GREEN, SEV_CLEAN, 'Ok'), 3: (DOT_ORANGE, SEV_ERROR, 'Degraded'), 4: (DOT_RED, SEV_CRITICAL, 'Failed'), } <NEW_LINE> def statusDot(self, status=None): <NEW_LINE> <INDENT> if status is None: <NEW_LINE> <INDE...
HW Status object
62598eefcc0a2c11144797b5
class DeleteScenography(Handler): <NEW_LINE> <INDENT> def get(self, scenography_id): <NEW_LINE> <INDENT> key = db.Key.from_path('Scenography', int(scenography_id), parent = stg_key()) <NEW_LINE> msc = db.get(key) <NEW_LINE> if self.user.name == msc.owner: <NEW_LINE> <INDENT> msc.delete() <NEW_LINE> message = "Din sceno...
class for deleting a Scenography
62598eef66673b3332c2eb59
class ExchangeLEError(ExchangeError): <NEW_LINE> <INDENT> pass
Error raised when the exchange file does not have the correct line endings.
62598eef091ae356687033c8
class IPersistComponentSettings: <NEW_LINE> <INDENT> def LoadComponentSettings(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def ResetComponentSettings(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def SaveComponentSettings(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __init__(self,*args): <NEW_L...
Defines standard functionality for controls or libraries that store and retrieve application settings.
62598eef4e4d562566370bc4
class KNearestNeighbor(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def train(self, X, y): <NEW_LINE> <INDENT> self.X_train = X <NEW_LINE> self.y_train = y <NEW_LINE> <DEDENT> def predict(self, X, k=1, num_loops=0): <NEW_LINE> <INDENT> if num_loops == 0: <NEW_LINE> <INDE...
a kNN classifier with L2 distance
62598eefbe7bc26dc925123a
class fixed(HasTraits): <NEW_LINE> <INDENT> value = Any(help="Any Python object") <NEW_LINE> description = Unicode('', help="Any Python object") <NEW_LINE> def __init__(self, value, **kwargs): <NEW_LINE> <INDENT> super(fixed, self).__init__(value=value, **kwargs) <NEW_LINE> <DEDENT> def get_interact_value(self): <NEW_L...
A pseudo-widget whose value is fixed and never synced to the client.
62598eef63b5f9789fe8390d
class CancelledException(Exception): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__('Cancelled')
An exception stored within the :class:`Experiment` :term:`results dict` when a pending result is cancelled without completeing the experiment. This means that all experiments started either complete successfully (and have their results recorded), or fail within the experiment itself (and have that exception stored, wi...
62598eef32920d7e50bc47dd
class Track(BaseTrack): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Track, self).__init__() <NEW_LINE> self._noon_session = NoonSession() <NEW_LINE> self._last_session = LastSession() <NEW_LINE> <DEDENT> @property <NEW_LINE> def noon_session(self): <NEW_LINE> <INDENT> return self._noon_session <NE...
track类,用于表示本问题的track
62598eefbe383301e0251f89
class TestDateField(FieldValues): <NEW_LINE> <INDENT> valid_inputs = { '2001-01-01': datetime.date(2001, 1, 1), datetime.date(2001, 1, 1): datetime.date(2001, 1, 1), } <NEW_LINE> invalid_inputs = { 'abc': ['Date has wrong format. Use one of these formats instead: YYYY[-MM[-DD]].'], '2001-99-99': ['Date has wrong format...
Valid and invalid values for `DateField`.
62598eef3d592f4c4edb96a4
class TransportHeader(__BaseDictObject): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> super().__init__(data) <NEW_LINE> if "SellerId" in data: <NEW_LINE> <INDENT> self.SellerId: str = self._get_value(str, "SellerId") <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.SellerId: str = None <NEW_LINE>...
The shipping identifier, information about whether the shipment is by an Amazon-partnered carrier, and information about whether the shipment is Small Parcel or Less Than Truckload/Full Truckload (LTL/FTL).
62598eef3317a56b869bd93e
class ConnectionError(Exception): <NEW_LINE> <INDENT> def __init__(self, msg): <NEW_LINE> <INDENT> super().__init__(msg)
Errors relating to board connections
62598eef435de62698e9a580
class InstanceMonitoringForm(BaseSecureForm): <NEW_LINE> <INDENT> pass
CSRF-protected form to enable/disable monitoring for an instance
62598eef7c178a314d78bc46
class Solution: <NEW_LINE> <INDENT> def getWords(self, s, excludeList): <NEW_LINE> <INDENT> ban = set(banned) <NEW_LINE> words = re.sub(r'[^a-zA-Z]', ' ', p).lower().split() <NEW_LINE> c = collections.Counter(w for w in words if w not in ban) <NEW_LINE> big = max([c[i] for i in c] + [0]) <NEW_LINE> return [i for i in c...
@param s: The string s @param excludeList: The excludeList @return: Return the most frequent words
62598eef57b8e32f525074dc
class Position(Builtin): <NEW_LINE> <INDENT> options = {"Heads": "True"} <NEW_LINE> rules = { "Position[pattern_][expr_]": "Position[expr, pattern]", } <NEW_LINE> def apply_invalidlevel(self, patt, expr, ls, evaluation, options={}): <NEW_LINE> <INDENT> return evaluation.message("Position", "level", ls) <NEW_LINE> <DEDE...
<dl> <dt>'Position[$expr$, $patt$]' <dd>returns the list of positions for which $expr$ matches $patt$. <dt>'Position[$expr$, $patt$, $ls$]' <dd>returns the positions on levels specified by levelspec $ls$. </dl> >> Position[{1, 2, 2, 1, 2, 3, 2}, 2] = {{2}, {3}, {5}, {7}} Find positions upto 3 levels deep >> ...
62598eef63d6d428bbee0f7e
@describe.on_data(_set_dimensions_if_needed, LSUVinit) <NEW_LINE> @describe.attributes( nB=Dimension("Batch size"), nI=Dimension("Input size"), nO=Dimension("Output size"), W=Synapses("Weights matrix", lambda obj: (obj.nO, obj.nI), lambda W, ops: ops.xavier_uniform_init(W)), b=Biases("Bias vector", lambda obj: (obj.nO,...
Computes the linear transform Y = (W @ X) + b.
62598eef4a966d76dd5ed68c
class Angle(object): <NEW_LINE> <INDENT> def __init__(self, atom1, atom2, atom3, type=None): <NEW_LINE> <INDENT> if atom1 is atom2 or atom1 is atom3 or atom2 is atom3: <NEW_LINE> <INDENT> raise BondError('Cannot angle atom to itself!') <NEW_LINE> <DEDENT> self.atom1 = atom1 <NEW_LINE> self.atom2 = atom2 <NEW_LINE> self...
A valence angle between 3 atoms separated by two covalent bonds. Parameters ---------- atom1 : :class:`Atom` An atom one end of the valence angle atom2 : :class:`Atom` The atom in the middle of the valence angle bonded to both other atoms atom3 : :class:`Atom` An atom on the other end of the valence angle ...
62598eefcc40096d616195b1
class NoiseEstimator(AnalysisMethod): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.std_devs = [] <NEW_LINE> self.means = [] <NEW_LINE> <DEDENT> def process_blob(self, blob): <NEW_LINE> <INDENT> if blob is None: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> steps = centroid_steps(blob['centroid']) <...
Attempt to determine the amount of noise present in some worm recordings.
62598eef1b99ca400228e8e6
class UpdateRunData(DjangoRequestView): <NEW_LINE> <INDENT> URI = "tests/update_run_data" <NEW_LINE> DEFAULT_MODEL = UpdateRunDataParamsModel <NEW_LINE> DEFAULT_RESPONSES = { http_client.NO_CONTENT: SuccessResponse, http_client.BAD_REQUEST: FailureResponseModel } <NEW_LINE> TAGS = { "post": ["Tests"] } <NEW_LINE> @sess...
Initialize the tests run data. Args: token (str): token of the session. run_data (dict): properties of run data to update.
62598eef4f88993c371ef8c1
@attr.s(frozen=True, auto_attribs=True, slots=True) <NEW_LINE> class ROS2Node(Node): <NEW_LINE> <INDENT> app_instance: "AppInstance" = attr.ib() <NEW_LINE> name: str = attr.ib() <NEW_LINE> _state_probe: "ROS2StateProbe" = attr.ib(init=False) <NEW_LINE> def __attrs_post_init__(self) -> None: <NEW_LINE> <INDENT> state_pr...
Provides an interface for interacting with a ROS2 node. Attributes ---------- name: str The name of the node.
62598eeff7d966606f7467a4
class BusyState(State): <NEW_LINE> <INDENT> def on_enter(self, payload=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> reply = self.components.susi.ask(payload) <NEW_LINE> if 'answer' in reply.keys(): <NEW_LINE> <INDENT> print('Susi:' + reply['answer']) <NEW_LINE> self.__speak(reply['answer']) <NEW_LINE> self.trans...
Busy state inherits from base class State. In this state, SUSI API is called to perform query and the response is then spoken with the selected Text to Speech Service.
62598eef009cb60464cffd01
class ConstantTimeseries(Timeseries): <NEW_LINE> <INDENT> def __init__(self, k=1): <NEW_LINE> <INDENT> self.k = k <NEW_LINE> <DEDENT> def __call__(self): <NEW_LINE> <INDENT> return self.k
This timeseries just returns a constant value.
62598eefa79ad161977687d1
class APIPermissionError(object): <NEW_LINE> <INDENT> def __init__(self, message=''): <NEW_LINE> <INDENT> super(APIPermissionError, self).__init__('permission:forbidden','permission',message)
Indicate the resource was not found. The data specifies the resource name.
62598eef5166f23b2e241b8b
class Angular2Lexer(RegexLexer): <NEW_LINE> <INDENT> name = "Angular2" <NEW_LINE> aliases = ['ng2'] <NEW_LINE> tokens = { 'root': [ (r'[^{([*#]+', Other), (r'(\{\{)(\s*)', bygroups(Comment.Preproc, Text), 'ngExpression'), (r'([([]+)([\w:.-]+)([\])]+)(\s*)(=)(\s*)', bygroups(Punctuation, Name.Attribute, Punctuation, Tex...
Generic `angular2 <http://victorsavkin.com/post/119943127151/angular-2-template-syntax>` template lexer. Highlights only the Angular template tags (stuff between `{{` and `}}` and special attributes: '(event)=', '[property]=', '[(twoWayBinding)]='). Everything else is left for a delegating lexer. .. versionadded:: 2...
62598eef30dc7b766599e03b
class SingletonMF(FreeShapeMF): <NEW_LINE> <INDENT> def __init__(self, in_value): <NEW_LINE> <INDENT> super(SingletonMF, self).__init__(mf_values=[1], in_values=[in_value]) <NEW_LINE> <DEDENT> def fuzzify(self, in_value: float): <NEW_LINE> <INDENT> print("[warning] fuzzify a singleton value is maybe not the thing you "...
Syntactic sugar to create a singleton output fuzzy set
62598eef498bea3a75a562e4
class ErrorDetail(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'code': {'readonly': True}, 'message': {'readonly': True}, 'target': {'readonly': True}, 'details': {'readonly': True}, 'additional_info': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'messa...
The error detail. Variables are only populated by the server, and will be ignored when sending a request. :ivar code: The error code. :vartype code: str :ivar message: The error message. :vartype message: str :ivar target: The error target. :vartype target: str :ivar details: The error details. :vartype details: list...
62598eef4527f215b58e86b0
class invgauss_gen(rv_continuous): <NEW_LINE> <INDENT> def _rvs(self, mu, sigm): <NEW_LINE> <INDENT> return self._random_state.wald(mu, sigm, size=self._size) <NEW_LINE> <DEDENT> def _pdf(self, x, mu, sigm): <NEW_LINE> <INDENT> return sqrt(sigm/(2*pi*x**3.0))*exp(-sigm/(2*x)*((x-mu)/mu)**2) <NEW_LINE> <DEDENT> def _log...
An inverse Gaussian continuous random variable. %(before_notes)s Notes ----- The probability density function for `invgauss` is:: invgauss.pdf(x, mu) = sigm / sqrt(2*pi*x**3) * exp(-sigm*(x-mu)**2/(2*x*mu**2)) for ``x > 0``. `invgauss` takes ``mu`` as a shape parameter. %(after_notes)s When `mu` is too small...
62598eef99fddb7c1ca621dd
class GxFilterCadDrawingDatasets(CoClass): <NEW_LINE> <INDENT> _reg_clsid_ = GUID('{B4EAA08B-2B4F-11D3-9B38-00C04FA33299}') <NEW_LINE> _idlflags_ = [] <NEW_LINE> _typelib_path_ = typelib_path <NEW_LINE> _reg_typelib_ = ('{ADC7DE29-DC0B-448E-BBF6-27E4E34CF2EC}', 10, 2)
A filter for displaying/choosing Cad Drawing datasets.
62598eef44b2445a339b5d44
class Entity: <NEW_LINE> <INDENT> def __init__(self, identifier: ID): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.__identifier: ID = identifier <NEW_LINE> self.__data_source = None <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> clazz = self.__class__.__name__ <NEW_LINE> return '<%s|%s %s/>' % (cl...
Base class of User and Group, ... Entity (User/Group) ~~~~~~~~~~~~~~~~~~~ properties: identifier - entity ID type - entity type meta - meta for entity ID document - visa for user, or bulletin for group
62598eefbaa26c4b54d4da7f
class DomainListing(BaseListingMixin, RisingListingMixin): <NEW_LINE> <INDENT> def __init__(self, reddit: "Reddit", domain: str): <NEW_LINE> <INDENT> super().__init__(reddit, _data=None) <NEW_LINE> self._path = API_PATH["domain"].format(domain=domain)
Provide a set of functions to interact with domain listings.
62598eef7b25080760ed5c4d
class LibvirtVolumeDriver(LibvirtBaseVolumeDriver): <NEW_LINE> <INDENT> def __init__(self, connection): <NEW_LINE> <INDENT> super(LibvirtVolumeDriver, self).__init__(connection, is_block_dev=True) <NEW_LINE> <DEDENT> def get_config(self, connection_info, disk_info): <NEW_LINE> <INDENT> conf = super(LibvirtVolumeDriver,...
Class for volumes backed by local file.
62598eef236d856c2adc87ef
class Dirname(HtmlTagAttribute): <NEW_LINE> <INDENT> belongs_to = ['Input', 'Textarea']
Specifies that the text direction will be submitted
62598eef56b00c62f0fb1086
class AuthconnException(Exception): <NEW_LINE> <INDENT> def __init__(self, message, http_code=HTTPStatus.UNAUTHORIZED): <NEW_LINE> <INDENT> super(AuthconnException, self).__init__(message) <NEW_LINE> self.http_code = http_code
Common and base class Exception for all authconn exceptions.
62598eef1f5feb6acb161406
class OutputPlugin(Plugin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Plugin.__init__(self) <NEW_LINE> <DEDENT> def get_type(self): <NEW_LINE> <INDENT> return 'output' <NEW_LINE> <DEDENT> def debug(self, message, new_line=True): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def inf...
This is the base class for data output, all output plugins should inherit from it and implement the following methods : 1. debug( message, verbose ) 2. information( message, verbose ) 3. error( message, verbose ) 4. vulnerability( message, verbose ) :author: Andres Riancho (andres.riancho@gmail.com)
62598eef2ae34c7f260a989a
class AbstractNamedModelTests(TestCase): <NEW_LINE> <INDENT> def test_str(self): <NEW_LINE> <INDENT> class TestAbstractNamedModel(AbstractNamedModel): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> name = 'abc' <NEW_LINE> instance = TestAbstractNamedModel(name=name) <NEW_LINE> self.assertEqual(str(instance), name)
Tests for AbstractNamedModel.
62598eef56ac1b37e630099f
class updateUserMobileForAdmin_result: <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.STRING, 'success', None, None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinaryPr...
Attributes: - success
62598eef8da39b475be01960
class Place(BaseModel): <NEW_LINE> <INDENT> city_id = "" <NEW_LINE> user_id = "" <NEW_LINE> name = "" <NEW_LINE> description = "" <NEW_LINE> number_rooms = 0 <NEW_LINE> number_bathrooms = 0 <NEW_LINE> max_guest = 0 <NEW_LINE> price_by_night = 0 <NEW_LINE> latitude = 0.0 <NEW_LINE> longitude = 0.0 <NEW_LINE> amenity_ids...
Basic class for places. Args: *args: Variable length argument list. **kwargs: Arbitrary keyword arguments. Attributes: email (str): User's email in `<username>@<domainname>.<tld>` format. password (str): User password (with unspecified requirements). first_name (str): User's first name. last_n...
62598eeff7d966606f7467a6
class AuthorDetailViewTests(TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpTestData(cls): <NEW_LINE> <INDENT> cls.author = mixer.blend(Author) <NEW_LINE> cls.books = mixer.cycle(3).blend(Book, author=cls.author) <NEW_LINE> cls.url = reverse('books:author-detail', args=[cls.author.slug]) <NEW_LINE> <DED...
Tests `books:author-detail` view
62598eef7b180e01f3e48421
class IPortletEditForm(IPortletForm): <NEW_LINE> <INDENT> pass
Edit form view for portlets
62598eef21bff66bcd721409
class ConfigDev: <NEW_LINE> <INDENT> GENERATE_FAKE_DATA = True <NEW_LINE> DB_CREATE_ADMIN_USER = True <NEW_LINE> LOG_TO_STDOUT = True <NEW_LINE> LOG_TO_FILE = False <NEW_LINE> SQLALCHEMY_ECHO = False <NEW_LINE> AWS_DOWNLOAD_IMAGES = False
Development Configuration
62598eef627d3e7fe0e0563e
class KlasAdd(webapp.RequestHandler): <NEW_LINE> <INDENT> def post(self): <NEW_LINE> <INDENT> list = getList() <NEW_LINE> klas = getKlas(self.request.get('id')) <NEW_LINE> for leerling in klas: <NEW_LINE> <INDENT> check = True <NEW_LINE> for l in list: <NEW_LINE> <INDENT> if l.leerlingID == leerling.leerlingID: <NEW_LI...
AJAX pagina om een hele klas toe te voegen aan de huidige selectie.
62598eef44b2445a339b5d45
class UpdateOpsRunner(TrainModel): <NEW_LINE> <INDENT> def get_inference_loss(self, inference, labels): <NEW_LINE> <INDENT> raise RuntimeError('should not be here') <NEW_LINE> <DEDENT> def get_total_loss(self, inference, labels): <NEW_LINE> <INDENT> return tf.zeros((), dtype=tf.float32) <NEW_LINE> <DEDENT> def get_opti...
TrainModel Implementation that just run update ops. e.g. useful for settling batch norm statistics after training.
62598eef63b5f9789fe83911
class get_pybind_include(object): <NEW_LINE> <INDENT> def __init__(self, user=False): <NEW_LINE> <INDENT> self.user = user <NEW_LINE> try: <NEW_LINE> <INDENT> import pybind11 <NEW_LINE> <DEDENT> except ImportError: <NEW_LINE> <INDENT> if subprocess.call([sys.executable, '-m', 'pip', 'install', 'pybind11']): <NEW_LINE> ...
Helper class to determine the pybind11 include path The purpose of this class is to postpone importing pybind11 until it is actually installed, so that the ``get_include()`` method can be invoked.
62598eef32920d7e50bc47e1
class JmeterConfig(): <NEW_LINE> <INDENT> def __init__(self, jmx_path): <NEW_LINE> <INDENT> jmx_parser = JmxParser(jmx_path) <NEW_LINE> self.thread_group = jmx_parser.thread_group
JMeter 配置相关
62598eefcc0a2c11144797ba
class URLClose: <NEW_LINE> <INDENT> def __init__(self, thing, always_close=True): <NEW_LINE> <INDENT> self.thing = thing <NEW_LINE> self.always_close = always_close <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> return self.thing <NEW_LINE> <DEDENT> def __exit__(self, type, value, traceback): <NEW_LINE> <...
Enhanced closing. #Uso: #try: # with URLClose(URLOpen().open(link_file)) as s: # source = s # except urllib2.URLError as e: # err = e # source = None #?? # print"except"
62598eef8e7ae83300ee7844
class Image(_Asset): <NEW_LINE> <INDENT> def __init__(self, *, dialog_id: str, raw: dict): <NEW_LINE> <INDENT> super().__init__(dialog_id=dialog_id, raw=raw) <NEW_LINE> self.orig_url: str = raw.get('origUrl') or ''
Изображение.
62598eefdc8b845886d51d78
class GetTransitionDuration(Baserequests): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Baserequests.__init__(self) <NEW_LINE> self.name = 'GetTransitionDuration' <NEW_LINE> self.datain['transition-duration'] = None <NEW_LINE> <DEDENT> def getTransitionDuration(self): <NEW_LINE> <INDENT> return self.data...
Get the duration of the currently selected transition if supported. :Returns: *transition_duration* type: int Duration of the current transition (in milliseconds).
62598eef442bda511e95ac17
class PartitionRefinement: <NEW_LINE> <INDENT> def __init__(self, n): <NEW_LINE> <INDENT> c = PartitionClass() <NEW_LINE> self.classes = c <NEW_LINE> self.items = [PartitionItem(i, c) for i in range(n)] <NEW_LINE> <DEDENT> def refine(self, pivot): <NEW_LINE> <INDENT> has_split = [] <NEW_LINE> for i in pivot: <NEW_LINE>...
This data structure implements an order preserving partition with refinements.
62598eef30bbd722464683ea
class LifoQueue(Queue): <NEW_LINE> <INDENT> def _init(self, maxsize, items=None): <NEW_LINE> <INDENT> if items: <NEW_LINE> <INDENT> self.queue = list(items) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.queue = [] <NEW_LINE> <DEDENT> <DEDENT> def _put(self, item): <NEW_LINE> <INDENT> self.queue.append(item) <NEW_L...
A subclass of :class:`Queue` that retrieves most recently added entries first.
62598eef8a43f66fc4bf0929
class Bullet(GameObject): <NEW_LINE> <INDENT> VELOCITY = 60 <NEW_LINE> RADIUS = 4 <NEW_LINE> firer_id = None <NEW_LINE> def __init__(self, firer_id, pos, heading): <NEW_LINE> <INDENT> super(Bullet, self).__init__(Bullet.RADIUS) <NEW_LINE> self.position = pos <NEW_LINE> self.heading = heading <NEW_LINE> self.firer_id = ...
docstring for Bullet
62598eef66656f66f7d58b97
class Database(object): <NEW_LINE> <INDENT> def __init__(self, path=None, dialect=None, user=None, pword=None, host=None, port=None, database=None, **kwargs): <NEW_LINE> <INDENT> if path is None: <NEW_LINE> <INDENT> path = '{}://{}:{}@{}:{}/{}'.format(dialect, user, pword, host, port, database) <NEW_LINE> <DEDENT> self...
Connect to a database using SQLAlchemy Example ------- db = Database('sqlite:///database.sql')
62598eef71ff763f4b5e5f13
class QueueIsFull(Exception): <NEW_LINE> <INDENT> pass
An exception that is raised when there is a request for start a new container in a queue that already hosts 254 other containers
62598eefd58c6744b42db690
class Describe(base_classes.BaseAsyncMutator): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> parser.add_argument( 'name', metavar='NAME', help='The name of the group to describe.') <NEW_LINE> <DEDENT> @property <NEW_LINE> def service(self): <NEW_LINE> <INDENT> return self.cloudusera...
Describe a Google Compute Engine group. *{command}* displays all data associated with a Google Compute Engine group in a project.
62598eef3539df3088ecaa68
class NetworkDebugSession: <NEW_LINE> <INDENT> debug_controller_class = EditorDebugController <NEW_LINE> on_created_controller = Observable() <NEW_LINE> on_destroyed_controller = Observable() <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._container_id_to_filepath = {} <NEW_LINE> self._filepath_to_container_id...
Interface to editor debugging features
62598eeff7d966606f7467a8
class PersistenceDiagram(object): <NEW_LINE> <INDENT> def __init__(self, PD): <NEW_LINE> <INDENT> self.PD = PD <NEW_LINE> self.homology_groups = np.unique(self.PD[:,0]) <NEW_LINE> self.max_homology_values = [] <NEW_LINE> for i in self.homology_groups: <NEW_LINE> <INDENT> idx = np.where(self.PD[:,0] == i)[0] <NEW_LINE> ...
Tools for managing persistence diagrams
62598eef5fcc89381b265502
class MaskFromUser(base): <NEW_LINE> <INDENT> class Inventory(base.Inventory): <NEW_LINE> <INDENT> import pyre.inventory as inv <NEW_LINE> excludedDetectors = inv.slice("excludedDetectors", default = []) <NEW_LINE> excludedDetectors.meta['tip'] = "id's of detectors to exclude all pixels" <NEW_LINE> excludedPixels = inv...
Detector mask Three inputs: - excludedDetectors - excludedPixels - excludedSingles
62598eef32920d7e50bc47e2
class PetStore: <NEW_LINE> <INDENT> def __init__(self, pet_factory=None): <NEW_LINE> <INDENT> self._pet_factory = pet_factory <NEW_LINE> <DEDENT> def show_pet(self): <NEW_LINE> <INDENT> pet = self._pet_factory.get_pet() <NEW_LINE> pet_food = self._pet_factory.get_food() <NEW_LINE> print("Our pet is {}!".format(pet)) <N...
pet_factory is our Abstract factory
62598eef10dbd63aa1c6f32d
class ListCommand(Command): <NEW_LINE> <INDENT> def handle(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> pyproject = load_toml("poetry.lock") <NEW_LINE> <DEDENT> except FileNotFoundError: <NEW_LINE> <INDENT> self.line_error("ERROR: The lock file not found.", style="error") <NEW_LINE> sys.exit(1) <NEW_LINE> <DEDEN...
List the licenses for external packages used in your repository. list {--o|order=name : Control display order by "name" or "license".} {--f|format=compact : Select the output format among: "compact", "markdown", or "rst"}
62598eef7b180e01f3e48422
class PopulatedListViewTestCase(TestCase): <NEW_LINE> <INDENT> fixtures = [ 'character.json', 'characterstats.json', 'kart.json', 'wheel.json', 'glider.json', ] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.client = Client() <NEW_LINE> mock_request = HttpRequest() <NEW_LINE> mock_request.META = { 'HTTP_X_REAL_IP...
Tests for populated list views.
62598eef4e4d562566370bca
class CustomPart(BaseComponent): <NEW_LINE> <INDENT> def Delete(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def GetAssembly(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def GetComponents(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def GetStartAndEndPositions(self, StartPoint, EndPoint): <NEW_LINE...
CustomPart() CustomPart(StartPoint: Point, EndPoint: Point)
62598eef99fddb7c1ca621df
class Macro(BaseObject): <NEW_LINE> <INDENT> def __init__(self, api=None, actions=None, active=None, created_at=None, description=None, id=None, position=None, restriction=None, title=None, updated_at=None, url=None, **kwargs): <NEW_LINE> <INDENT> self.api = api <NEW_LINE> self.actions = actions <NEW_LINE> self.active ...
###################################################################### # Do not modify, this class is autogenerated by gen_classes.py # ######################################################################
62598eef3d592f4c4edb96a7
class OperationMetadata(proto.Message): <NEW_LINE> <INDENT> class State(proto.Enum): <NEW_LINE> <INDENT> STATE_UNSPECIFIED = 0 <NEW_LINE> CREATED = 1 <NEW_LINE> RUNNING = 2 <NEW_LINE> DONE = 3 <NEW_LINE> CANCELLED = 4 <NEW_LINE> <DEDENT> state = proto.Field(proto.ENUM, number=1, enum=State,) <NEW_LINE> create_time = pr...
Contains metadata for the BatchAnnotateImages operation. Attributes: state (google.cloud.vision_v1p4beta1.types.OperationMetadata.State): Current state of the batch operation. create_time (google.protobuf.timestamp_pb2.Timestamp): The time when the batch request was received. update_time (g...
62598eefcb5e8a47e493b554
class SizeCheckWrapper: <NEW_LINE> <INDENT> def __init__(self, rfile, maxlen): <NEW_LINE> <INDENT> self.rfile = rfile <NEW_LINE> self.maxlen = maxlen <NEW_LINE> self.bytes_read = 0 <NEW_LINE> <DEDENT> def _check_length(self): <NEW_LINE> <INDENT> if self.maxlen and self.bytes_read > self.maxlen: <NEW_LINE> <INDENT> rais...
Wraps a file-like object, raising MaxSizeExceeded if too large.
62598eef92d797404e387f56
class _QtMessageCapture: <NEW_LINE> <INDENT> def __init__(self, ignore_regexes): <NEW_LINE> <INDENT> self._records = [] <NEW_LINE> self._ignore_regexes = ignore_regexes or [] <NEW_LINE> self._previous_handler = None <NEW_LINE> <DEDENT> def _start(self): <NEW_LINE> <INDENT> previous_handler = qt_api.QtCore.qInstallMessa...
Captures Qt messages when its `handle` method is installed using qInstallMessageHandler, and stores them into `records` attribute. :attr _records: list of Record instances. :attr _ignore_regexes: list of regexes (as strings) that define if a record should be ignored.
62598eef3317a56b869bd941
class ProcessInputsEvent(Event): <NEW_LINE> <INDENT> to_log = False
Get inputs from the mouse, network, all this stuff.
62598eefa219f33f346c4ff3