code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class ApplyDirectWizard(Wizard): <NEW_LINE> <INDENT> __name__ = 'hrp_internal_delivery.apply_direct_wizard' <NEW_LINE> start = StateView('hrp_internal_delivery.internal_apply_list_direct', 'hrp_internal_delivery.internal_apply_list_direct_view_form', [ Button('Cancel', 'end', 'tryton-cancel'), Button('Create', 'create_...
Apply Direct Wizard
62598f87442bda511e95bf63
class CloudkmsProjectsLocationsKeyRingsTestIamPermissionsRequest(_messages.Message): <NEW_LINE> <INDENT> resource = _messages.StringField(1, required=True) <NEW_LINE> testIamPermissionsRequest = _messages.MessageField('TestIamPermissionsRequest', 2)
A CloudkmsProjectsLocationsKeyRingsTestIamPermissionsRequest object. Fields: resource: REQUIRED: The resource for which the policy detail is being requested. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`. testIamPermissionsRequest: A TestIam...
62598f87be383301e0253303
class Vectorizer(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, embedding="tf-idf", cache_transformed=False, **kwargs): <NEW_LINE> <INDENT> self.embedding = embedding <NEW_LINE> self.cache_transformed = cache_transformed <NEW_LINE> vectorizer_dispatcher = { "tf-idf": "wellcomeml.ml.frequency_v...
Abstract class, sklearn-compatible, that can vectorize texts using various models.
62598f878e71fb1e983bb5b7
class _Buffer(object): <NEW_LINE> <INDENT> def __init__(self, dtype): <NEW_LINE> <INDENT> self.datafile = tempfile.TemporaryFile(prefix='cqr', suffix='qdata') <NEW_LINE> self.dtype = dtype <NEW_LINE> self.wcount = 0 <NEW_LINE> <DEDENT> def addseq(self, seq): <NEW_LINE> <INDENT> arr = np.fromiter(seq, self.dtype) <NEW_L...
Buffers on disk array data
62598f8794891a1f408b9472
class WhileNode(Node, ArmLogicTreeNode): <NEW_LINE> <INDENT> bl_idname = 'LNWhileNode' <NEW_LINE> bl_label = 'While' <NEW_LINE> bl_icon = 'CURVE_PATH' <NEW_LINE> def init(self, context): <NEW_LINE> <INDENT> self.inputs.new('ArmNodeSocketAction', 'In') <NEW_LINE> self.inputs.new('NodeSocketBool', 'Condition') <NEW_LINE>...
While node
62598f87009cb60464d01033
class BTAPIDeveloperParams(object): <NEW_LINE> <INDENT> openapi_types = { 'name': 'str', 'description': 'str', 'company_id': 'str', 'user_id': 'str', 'website': 'str' } <NEW_LINE> attribute_map = { 'name': 'name', 'description': 'description', 'company_id': 'companyId', 'user_id': 'userId', 'website': 'website' } <NEW_...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598f8721a7993f00c65a7b
class MonteCarloPointsBot(MonteCarloBot): <NEW_LINE> <INDENT> def tree_policy(self, node): <NEW_LINE> <INDENT> while not node.state.terminal_test(): <NEW_LINE> <INDENT> if not node.is_fully_expanded(): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self.expand_node(node) <NEW_LINE> <DEDENT> except AssertionError: ...
Same as MonteCarloPlus, but uses the full points values for utility instead of {0,1}. Utilities are divided by 120 so that the utilities lie in [0,1], as is assumed by the UCTS monte-carlo algorithm.
62598f87d99f1b3c44d051b4
class UneffectRequest(GenericRequest): <NEW_LINE> <INDENT> def __init__(self, session, effectId): <NEW_LINE> <INDENT> super(UneffectRequest, self).__init__(session) <NEW_LINE> self.url = session.serverURL + "uneffect.php" <NEW_LINE> self.requestData["using"] = "Yep." <NEW_LINE> self.requestData["pwd"] = session.pwd <NE...
Uses a soft green echo eyedrop antidote to remove any effect.
62598f877b25080760ed6fb0
class SuiteLogViewGenerator(object): <NEW_LINE> <INDENT> def __init__( self, event_handler=None, fs_util=None, suite_engine_proc=None): <NEW_LINE> <INDENT> self.event_handler = event_handler <NEW_LINE> if fs_util is None: <NEW_LINE> <INDENT> fs_util = FileSystemUtil(event_handler=event_handler) <NEW_LINE> <DEDENT> self...
Generate the log view for a suite.
62598f8723e79379d538c005
class ProyectoEvaluacionesTableView(LoginRequiredMixin, PermissionRequiredMixin, SingleTableView): <NEW_LINE> <INDENT> permission_required = 'indo.listar_evaluaciones' <NEW_LINE> permission_denied_message = _('Sólo los gestores pueden acceder a esta página.') <NEW_LINE> table_class = EvaluacionProyectosTable <NEW_LINE>...
Muestra los proyectos presentados y enlaces a su evaluación y resolución de la Comisión.
62598f873617ad0b5ee05c4b
class LoadException(DefaultPyshellException): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> DefaultPyshellException.__init__(self, value, PARSE_WARNING)
This exception is used for any error that can happen during the load process. It must be used only in this case.
62598f87dc8b845886d530c0
@rest_api() <NEW_LINE> class Election(models.Model): <NEW_LINE> <INDENT> KIND_SIMPLE = 0 <NEW_LINE> KIND_MULTI = 1 <NEW_LINE> KIND_PRIORITY_LIST = 2 <NEW_LINE> KIND_CHOICES = [ (KIND_SIMPLE, _('Simple')), (KIND_MULTI, _('Multi')), (KIND_PRIORITY_LIST, _('Priority list')), ] <NEW_LINE> KIND_MAP = dict(KIND_CHOICES) <NEW...
Represents an election. Elections can be created from a
62598f87435de62698e9b902
class SizeSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Size <NEW_LINE> fields = '__all__'
Список размеров товара
62598f8773bcbd0ca4bc9d5b
class InfoEdit(RequestHandler): <NEW_LINE> <INDENT> @tornado.web.authenticated <NEW_LINE> def get(self, name): <NEW_LINE> <INDENT> self.check_admin() <NEW_LINE> info = self.get_entity_view('info/name', name) <NEW_LINE> self.render('info_edit.html', info=info) <NEW_LINE> <DEDENT> @tornado.web.authenticated <NEW_LINE> de...
Edit the information page.
62598f87f7d966606f747af1
class MultiCifar10Rotated(base_dataset.MutliEnvironmentImageDataset): <NEW_LINE> <INDENT> _ALL_ENVIRONMENTS = ['0_5', '5_55', '55_60'] <NEW_LINE> _ENV_RANGES = [':50%', '50%:75%', '75%:100%'] <NEW_LINE> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return 'cifar10' <NEW_LINE> <DEDENT> def set_static_dataset_...
Data loader for the CIFAR10 dataset. Multiple environments, each correspond to different degrees of rotation.
62598f87ec188e330fdf83a7
class EnvironmentError(PublicError): <NEW_LINE> <INDENT> errno = 912
**912** Raised when a command is called with invalid environment settings
62598f8776d4e153a661c71d
class Block(): <NEW_LINE> <INDENT> def __init__(self, parent=None, finalized_dynasties=None): <NEW_LINE> <INDENT> self.hash = random.randint(1, 10**30) <NEW_LINE> if not parent: <NEW_LINE> <INDENT> self.height = 0 <NEW_LINE> self.prev_hash = 0 <NEW_LINE> self.prev_dynasty = self.current_dynasty = Dynasty(INITIAL_VALIDA...
One node (roundrobin) adds a new block to the blockchain every BLOCK_PROPOSAL_TIME iterations. Args: parent: parent block finalized_dynasties: dynasties which have been finalized. Only a committed block's dynasty becomes finalized.
62598f870a50d4780f704ee1
class DecisionRules: <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> @abc.abstractmethod <NEW_LINE> def conclude(self, actions, events): <NEW_LINE> <INDENT> pass
The abstract interface for decision rules engine.
62598f878e05c05ec3f6ebcc
class Dialog(QtGui.QMessageBox): <NEW_LINE> <INDENT> msgbox = '' <NEW_LINE> btnYes = '' <NEW_LINE> btnNo = '' <NEW_LINE> def __init__(self, title, text, yesText, noText): <NEW_LINE> <INDENT> super(Dialog, self).__init__() <NEW_LINE> self.initUI(title, text, yesText, noText) <NEW_LINE> <DEDENT> def initUI(self, title, t...
Dialog Template for two button dialog
62598f87b57a9660fecd1586
class RTMPCall(object): <NEW_LINE> <INDENT> def __init__(self, conn, transaction_id): <NEW_LINE> <INDENT> self._result = None <NEW_LINE> self.conn = conn <NEW_LINE> self.done = False <NEW_LINE> self.transaction_id = transaction_id <NEW_LINE> <DEDENT> def result(self, timeout=None): <NEW_LINE> <INDENT> if self.done: <NE...
A RTMP call. Contains the result of a :meth:`RTMP.call`.
62598f8710dbd63aa1c706be
class TCPServer: <NEW_LINE> <INDENT> def __init__(self, host, port): <NEW_LINE> <INDENT> self.host = host <NEW_LINE> self.port = port <NEW_LINE> self.sock = None <NEW_LINE> self.tournament_manager = None <NEW_LINE> self.clients = [] <NEW_LINE> <DEDENT> def configure_server(self) -> None: <NEW_LINE> <INDENT> self.sock =...
Represents the Fish tournament server that accepts a certain number of client connections and then conducts a Fish tournament by creating PlayerProxy components and handing those to the tournament manager, which interacts with the player proxies as if they were internal players. The PlayerProxy component handles direct...
62598f8791af0d3eaad39905
class SexistDiscriminator(nn.Module): <NEW_LINE> <INDENT> def __init__(self, nd=300): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.model = nn.Sequential( nn.Linear(nd, 1024), nn.LeakyReLU(), nn.Linear(1024, 512), nn.LeakyReLU(), nn.Linear(512, 256), nn.LeakyReLU(), nn.Linear(256, 1), ) <NEW_LINE> self.sig = n...
The SexistDiscriminator takes in the embedding and classifies it as either male or female. It's goal is to become the most sexist thing on earth.
62598f878da39b475be02cf1
class MultivariateGaussian(namedtuple('MultivariateGaussian', ['mu', 'sigma'])): <NEW_LINE> <INDENT> pass
Represents a (mu, sigma) tuple Examples -------- >>> m = MultivariateGaussian(Vectors.dense([11,12]),DenseMatrix(2, 2, (1.0, 3.0, 5.0, 2.0))) >>> (m.mu, m.sigma.toArray()) (DenseVector([11.0, 12.0]), array([[ 1., 5.],[ 3., 2.]])) >>> (m[0], m[1]) (DenseVector([11.0, 12.0]), array([[ 1., 5.],[ 3., 2.]]))
62598f87d4950a0f3b110bba
class Willing(Player): <NEW_LINE> <INDENT> name = "Willing" <NEW_LINE> classifier = { 'memory_depth': 1, 'long_run_time': False, 'stochastic': True, 'makes_use_of': set(), 'inspects_source': False, 'manipulates_source': False, 'manipulates_state': False } <NEW_LINE> def strategy(self, opponent): <NEW_LINE> <INDENT> if ...
A player that only defects after mutual defection. Names: - Willing: [Berg2015]_
62598f8726068e7796d4c467
class AnyTypeMeta(type): <NEW_LINE> <INDENT> def __new__(mcls, name, bases, namespace): <NEW_LINE> <INDENT> return super().__new__(mcls, name, bases, namespace) <NEW_LINE> <DEDENT> def __instancecheck__(cls, instance): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> def __subclasscheck__(cls, subclass): <NEW_LINE> ...
Metaclass for AnyType. Any object is instance of AnyType and any type is sublcass of anytype. >>> isinstance(1, AnyType) True >>> isinstance(None, AnyType) True >>> isinstance('string', AnyType) True >>> issubclass(int, AnyType) True >>> issubclass(str, AnyType) True >>> issubclass(None, AnyType) True
62598f876aa9bd52df0d49dd
class Version(object): <NEW_LINE> <INDENT> def __init__(self, vernum, path, filelist): <NEW_LINE> <INDENT> self.version = VerNum(vernum) <NEW_LINE> self.sql = dict() <NEW_LINE> self.python = None <NEW_LINE> for script in filelist: <NEW_LINE> <INDENT> self.add_script(os.path.join(path, script)) <NEW_LINE> <DEDENT> <DEDE...
A single version in a collection :param vernum: Version Number :param path: Path to script files :param filelist: List of scripts :type vernum: int, VerNum :type path: string :type filelist: list
62598f8763b5f9789fe84c7b
class ComponentsHandler(EmpowerAPIHandler): <NEW_LINE> <INDENT> HANDLERS = [r"/api/v1/components/?", r"/api/v1/components/([a-zA-Z0-9:\-.]*)/?"] <NEW_LINE> def get(self, *args): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> if len(args) > 1: <NEW_LINE> <INDENT> raise ValueError("Invalid url") <NEW_LINE> <DEDENT> compone...
Components handler. Used to load/unload components.
62598f87cad5886f8bdc4e0f
@register <NEW_LINE> class ConfigurationDoneArguments(BaseSchema): <NEW_LINE> <INDENT> __props__ = {} <NEW_LINE> __refs__ = set() <NEW_LINE> __slots__ = list(__props__.keys()) + ['kwargs'] <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.kwargs = kwargs <NEW_LINE> <DEDENT> def to_dict(self): <NEW_LINE>...
Arguments for 'configurationDone' request. Note: automatically generated code. Do not edit manually.
62598f877b25080760ed6fb2
class CoinUseReservationItem(object): <NEW_LINE> <INDENT> def __init__(self, itemId=None, itemName=None, amount=None,): <NEW_LINE> <INDENT> self.itemId = itemId <NEW_LINE> self.itemName = itemName <NEW_LINE> self.amount = amount <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not...
Attributes: - itemId - itemName - amount
62598f87d53ae8145f917f9a
class AbstractSlide(object): <NEW_LINE> <INDENT> def __enter__(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def __exit__(self, exc_type, exc_val, exc_tb): <NEW_LINE> <INDENT> self.close() <NEW_LINE> return False <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def detect_format(cls, filename): <NEW_LINE> <INDE...
The base class of a slide object.
62598f873617ad0b5ee05c4d
class rule_003(single_space_between_tokens): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> single_space_between_tokens.__init__(self, 'case', '003', parser.todo, token.is_keyword) <NEW_LINE> self.solution = 'Reduce spaces between the expression and the *is* keyword.'
This rule checks for a single space before the **is** keyword. **Violation** .. code-block:: vhdl case data is **Fix** .. code-block:: vhdl case data is
62598f8773bcbd0ca4bc9d5d
class LabD65(LabBase): <NEW_LINE> <INDENT> SPACE = "lab-d65" <NEW_LINE> SERIALIZE = ("--lab-d65",) <NEW_LINE> DEFAULT_MATCH = re.compile(RE_DEFAULT_MATCH.format(color_space='|'.join(SERIALIZE), channels=3)) <NEW_LINE> WHITE = "D65" <NEW_LINE> @classmethod <NEW_LINE> def _to_xyz(cls, parent, lab): <NEW_LINE> <INDENT> re...
Lab D65 class.
62598f879b70327d1c57e8a8
class TestProductsDetails(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_properties(self): <NEW_LINE> <INDENT> product_details = products.ProductsDetails() <NEW_LINE> available_keys = product...
Test class for DbCacheMixin class.
62598f8738b623060ffa8ba1
class Proposal(Layer): <NEW_LINE> <INDENT> def __init__(self, pre_nms_topn, post_nms_topn, ratios, scales, rpn_pre_nms_topn_train=12000, rpn_post_nms_topn_train=2000, bigdl_type="float"): <NEW_LINE> <INDENT> super(Proposal, self).__init__(None, bigdl_type, pre_nms_topn, post_nms_topn, ratios, scales, rpn_pre_nms_topn_t...
Outputs object detection proposals by applying estimated bounding-box transformations to a set of regular boxes (called "anchors"). rois: holds R regions of interest, each is a 5-tuple (n, x1, y1, x2, y2) specifying an image batch index n and a rectangle (x1, y1, x2, y2) scores: holds scores for R regions of interest >...
62598f8707d97122c42167b0
class TilesetParser(dict): <NEW_LINE> <INDENT> def __init__(self, filename, tilesize, colorkey): <NEW_LINE> <INDENT> self._tiles = {} <NEW_LINE> image = pygame.image.load(filename).convert() <NEW_LINE> image.set_colorkey(colorkey) <NEW_LINE> w, h = image.get_size() <NEW_LINE> w, h = (w / tilesize[0], h / tilesize[1]) <...
Parses an image into subsets for easy reference. Relies on pygame to load images. you may use len() on this object to get the number of tiles.
62598f8776d4e153a661c71f
class BaseDriver(object): <NEW_LINE> <INDENT> def get_communicator(self): <NEW_LINE> <INDENT> logging.error("get_communicator needs to be implemented") <NEW_LINE> raise NotImplementedError("get_communicator needs to be implemented.") <NEW_LINE> <DEDENT> def plugin_barrier(self): <NEW_LINE> <INDENT> return self.exp._bar...
The base class from which all driver plugins should inherit.
62598f874e696a045264db88
class JapanPost(Barcode): <NEW_LINE> <INDENT> codetype = 'japanpost' <NEW_LINE> aliases = () <NEW_LINE> class _Renderer(LinearCodeRenderer): <NEW_LINE> <INDENT> default_options = dict( LinearCodeRenderer.default_options, height=0.175, includetext=False, includecheckintext=False, textyoffset=-7, textsize=10) <NEW_LINE> ...
>>> bc = JapanPost() >>> bc # doctest: +ELLIPSIS <....JapanPost object at ...> >>> print(bc.render_ps_code('1231FZ13XHS')) # doctest: +ELLIPSIS %!PS-Adobe-2.0 %%Pages: (attend) %%Creator: Elaphe powered by barcode.ps %%BoundingBox: 0 0 220 12 %%LanguageLevel: 2 %%EndComments ... gsave 0 0 moveto 1.000000 1.000000 scale...
62598f87fb3f5b602db47f36
@implementer(IWidgetFilterBrains) <NEW_LINE> class WidgetFilterBrains(object): <NEW_LINE> <INDENT> def __init__(self, context): <NEW_LINE> <INDENT> self.widget = context <NEW_LINE> <DEDENT> def __call__(self, brains, form): <NEW_LINE> <INDENT> if set(['west', 'east', 'north', 'south']).issubset(form.keys()): <NEW_LINE>...
Filter brains after query
62598f87d10714528d69d9db
class Win32PDHCounter: <NEW_LINE> <INDENT> def __init__(self, pid): <NEW_LINE> <INDENT> self.my_process_prefix = self.getProcessPrefix(pid) <NEW_LINE> self.counters = {} <NEW_LINE> self.query = win32pdh.OpenQuery() <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> if win32pdh: <NEW_LINE> <INDENT> win32pdh.Clos...
Interface to Win32 PDH API for the given process prefix.
62598f87a4f1c619b294e0f7
class SlurmctldAvailableEvent(EventBase): <NEW_LINE> <INDENT> pass
Emitted when slurmctld joins the relation.
62598f87d53ae8145f917f9b
class Dictogram(dict): <NEW_LINE> <INDENT> def __init__(self, word_list=None): <NEW_LINE> <INDENT> super(Dictogram, self).__init__() <NEW_LINE> self.types = 0 <NEW_LINE> self.tokens = 0 <NEW_LINE> if word_list is not None: <NEW_LINE> <INDENT> for word in word_list: <NEW_LINE> <INDENT> self.add_count(word) <NEW_LINE> <D...
Dictogram is a histogram implemented as a subclass of the dict type
62598f878e71fb1e983bb5bb
class UnsupportedRequestError(BaseException): <NEW_LINE> <INDENT> status_code = 400
Set the 400 status code to the exceptions
62598f87d4950a0f3b110bbb
class WorkflowStep(object): <NEW_LINE> <INDENT> def __init__(self, step, templates): <NEW_LINE> <INDENT> self._logger = logging.getLogger(self.__class__.__name__) <NEW_LINE> self._logger.setLevel(logging.DEBUG) <NEW_LINE> self.__dict__.update(step) <NEW_LINE> self._templates = templates <NEW_LINE> <DEDENT> def _create_...
Base class for all workflow steps.
62598f87462c4b4f79dbb50f
class CacheExecuteExtensionNode(ExtensionNode, Node): <NEW_LINE> <INDENT> extension_name = 'cache_execute' <NEW_LINE> def is_cached(self): <NEW_LINE> <INDENT> global _cache_active_global <NEW_LINE> global _cached_classes <NEW_LINE> global _cached_instances <NEW_LINE> return (_cache_active_global or self.__class__ in _c...
MDP extension for caching execution results. The return value of the 'execute' methods are cached if: 1) the extension is activated in global mode 2) the Node subclass is registered to be cached or 3) the instance is registered to be cached *Warning: this extension might break the algorithms if nodes rely on side eff...
62598f871f5feb6acb16273e
class Plugins: <NEW_LINE> <INDENT> def __init__(self, providers: Dict[str, Type[Provider]], checkers: Dict[str, Type[Checker]]): <NEW_LINE> <INDENT> self.providers = providers <NEW_LINE> self.checkers = checkers
Simple class used to store providers and checkers.
62598f876aa9bd52df0d49e0
class __zephyr_coordinates_cache_dict(dict): <NEW_LINE> <INDENT> def __missing__(self, key): <NEW_LINE> <INDENT> self[key] = val = zephyr_coordinates(*key) <NEW_LINE> return val
An internal-use cached factory for `zephyr_coordinates` objects
62598f87379a373c97d98b1f
class Species(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=8, primary_key=True) <NEW_LINE> element = models.ForeignKey(Element, blank=True, null=True) <NEW_LINE> ox = models.FloatField(blank=True, null=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> app_label = 'qmpy' <NEW_LINE> db_table = 'sp...
Base model for an atomic species. (Element + charge state). Relationships: | :mod:`~qmpy.Element` via element | :mod:`~qmpy.Entry` via entry_set | :mod:`~qmpy.Structure` via structure_set Attributes: | name: Species name. e.g. Fe3+, O2- | ox: Oxidation state (float)
62598f873617ad0b5ee05c4f
class IndefiniteLengthBlock(ArbitraryBlock): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def _get_data_slice(self, block): <NEW_LINE> <INDENT> raise NotImplemented() <NEW_LINE> <DEDENT> def _create_block(self, data): <NEW_LINE> <INDE...
IEEE 488.2 Indefinite Length Arbitrary Binary Data Block This sort of block starts with ``#0`` and ends with a new line followed by EOI. It usually has the format of ``#0...LF+EOI``.
62598f87d53ae8145f917f9c
class HomeView(TemplateView): <NEW_LINE> <INDENT> template_name = "pages/index.html" <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> return { 'connected_players': self._get_connected_player_list() } <NEW_LINE> <DEDENT> def _get_connected_player_list(self): <NEW_LINE> <INDENT> if not zpgapi.is_zgp_a...
Front page view.
62598f871d351010ab8f3642
class UdpTransportTarget(AbstractTransportTarget): <NEW_LINE> <INDENT> transportDomain = udp.domainName <NEW_LINE> protoTransport = udp.UdpSocketTransport <NEW_LINE> def _resolveAddr(self, transportAddr): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return socket.getaddrinfo(transportAddr[0], transportAddr[1], socket.A...
Creates UDP/IPv4 configuration entry and initialize socket API if needed. This object can be used for adding new entries to Local Configuration Datastore (LCD) managed by :py:class:`~pysnmp.hlapi.SnmpEngine` class instance. See :RFC:`1906#section-3` for more information on the UDP transport mapping. Parameters -----...
62598f87f7d966606f747af5
class PrmApparaitre(Parametre): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Parametre.__init__(self, "apparaître", "spawn") <NEW_LINE> self.schema = "<cle>" <NEW_LINE> self.aide_courte = "fait apparaître un navire automatique" <NEW_LINE> self.aide_longue = "Cette commande permet de faire appa...
Commande 'navire_automatique apparaître'
62598f87656771135c489188
class Lock(object): <NEW_LINE> <INDENT> def __init__(self, file_name=LOCK_FILE): <NEW_LINE> <INDENT> self._name = file_name <NEW_LINE> self.closed = False <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> self._file = self.create() <NEW_LINE> return self <NEW_LINE> <DEDENT> def __exit__(self, *args): <NEW_LI...
Stop two versions of the script from being loaded at the same time. TODO: Figure out how to make Python actually close the damn files when I want them closed. This has to be disabled if a script restart option is provided, because this happens with multiprocessing: >>> file = open(filename, 'w') >>> file.close...
62598f87596a897236127780
@dataclass <NEW_LINE> class P72HasLanguage: <NEW_LINE> <INDENT> URI = "http://erlangen-crm.org/current/P72_has_language"
Scope note: This property describes the E56 Language of an E33 Linguistic Object. Linguistic Objects are composed in one or more human Languages. This property allows these languages to be documented. Examples: - the American Declaration of Independence (E33) has language 18th Century English (E56) In First Order Lo...
62598f8750485f2cf55daa81
class ActivationView(BaseActivationView): <NEW_LINE> <INDENT> ALREADY_ACTIVATED_MESSAGE = _( u'The account you tried to activate has already been activated.' ) <NEW_LINE> BAD_USERNAME_MESSAGE = _( u'The account you attempted to activate is invalid.' ) <NEW_LINE> EXPIRED_MESSAGE = _(u'This account has expired.') <NEW_LI...
Given a valid activation key, activate the user's account. Otherwise, show an error message stating the account couldn't be activated.
62598f8724f1403a92685634
class Test_US_33(unittest.TestCase): <NEW_LINE> <INDENT> def test_US_33(self): <NEW_LINE> <INDENT> indi_repo = Repository('US_33.ged') <NEW_LINE> output = ['@I1@ Mia /Shiyani/ has age 17 and is orphan'] <NEW_LINE> self.assertEqual(US_33(indi_repo), output) <NEW_LINE> self.assertTrue(US_33(indi_repo) == ['@I1@ Mia /Shiy...
Tests US33. checks that list all orphans.
62598f870a366e3fb87dc4dc
class Nottingham(OneFieldPerReport): <NEW_LINE> <INDENT> __version__ = 'Nottingham1.0' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(Nottingham, self).__init__() <NEW_LINE> self.field_name = 'NottinghamGrade' <NEW_LINE> self.regex = r'Nottingham [gG]rade[:]?[\sGgrade ]+([I]+)' <NEW_LINE> self.confidence = .7...
find the Nottingham grade in the templated pathology report
62598f8710dbd63aa1c706c2
class PreferenceOption(object): <NEW_LINE> <INDENT> def __init__(self, sKey, sConfigSpec, oValidator): <NEW_LINE> <INDENT> self.sKey = sKey <NEW_LINE> self.oSpec = parse_spec(sConfigSpec, oValidator) <NEW_LINE> self.oEntry = self.oSpec.oEntry <NEW_LINE> self.oLabel = gtk.Label(sKey.capitalize()) <NEW_LINE> self.oLabel....
An option for a preference table.
62598f8715baa72349461a8b
class Tests(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> @ignore_warnings <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.test_dict = ldt.dicts.morphology.custom.en.MorphCustomDict() <NEW_LINE> cls.test_base_dict = ldt.dicts.base.wordnet.en.BaseWordNet() <NEW_LINE> <DEDENT> @classmethod <NEW_...
The tests in this block inspect the custom LDT functionality for lemmatization of non-dictionary words.
62598f87fb3f5b602db47f37
@implementer(IParseMessage) <NEW_LINE> class MobileTracker(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.format = dict(imei=0, lat=1, lon=2, alt=3, h_speed=4, ts=5) <NEW_LINE> self.convert = dict(imei=str, lat=float, lon=float, alt=int, h_speed=float, ts=int) <NEW_LINE> <DEDENT> def _separat...
Parser for some old mobile application which is not used.
62598f878e05c05ec3f6ebce
class DynamicMultinomialHMC(HamiltonianMCMC): <NEW_LINE> <INDENT> def __init__( self, system, integrator, rng, max_tree_depth=10, max_delta_h=1000, termination_criterion=trans.riemannian_no_u_turn_criterion, do_extra_subtree_checks=True, momentum_transition=None, ): <NEW_LINE> <INDENT> integration_transition = trans.Mu...
Dynamic integration time H-MCMC with multinomial sampling of new state. In each transition a binary tree of states is recursively computed by integrating randomly forward and backward in time by a number of steps equal to the previous tree size [1, 2] until a termination criteria on the tree leaves is met. The next ch...
62598f8771ff763f4b5e727c
class ConvLayer1D(Layer): <NEW_LINE> <INDENT> def __init__(self, size=3, kernel_size=3): <NEW_LINE> <INDENT> super().__init__(size) <NEW_LINE> for node in self.nodes: <NEW_LINE> <INDENT> node.weights = gaussian_kernel(kernel_size) <NEW_LINE> <DEDENT> <DEDENT> def forward(self, features): <NEW_LINE> <INDENT> assert len(...
1D convolution layer of in neural network. :param kernel_size: convolution kernel size
62598f87711fe17d825e01f8
@export <NEW_LINE> class ZipDirectory(strax.StorageFrontend): <NEW_LINE> <INDENT> storage_typ = strax.StorageType.COMPRESSED <NEW_LINE> def __init__(self, path='.', *args, readonly=True, **kwargs): <NEW_LINE> <INDENT> if not readonly: <NEW_LINE> <INDENT> raise NotImplementedError("Zipfiles are currently read-only") <NE...
ZipFile-based storage frontend for strax. All data for one run is assumed to be in a single zip file <run_id>.zip, with the same file/directory structure as created by FileStore. We cannot write zip files directly (this would result in concurrency hell), instead these zip files are made by zipping stuff from FileSyte...
62598f873eb6a72ae038a13e
class ProxyRegionTest(RegionTest): <NEW_LINE> <INDENT> class MockProxy(ProxyBackend): <NEW_LINE> <INDENT> @property <NEW_LINE> def _cache(self): <NEW_LINE> <INDENT> return self.proxied._cache <NEW_LINE> <DEDENT> <DEDENT> def _region(self, init_args={}, config_args={}, backend="mock"): <NEW_LINE> <INDENT> reg = CacheReg...
This is exactly the same as the region test above, but it goes through a dummy proxy. The purpose of this is to make sure the tests still run successfully even when there is a proxy
62598f87a17c0f6771d5bd50
class Migration1x1x1To1x2x0(MongoMigration): <NEW_LINE> <INDENT> def __init__(self, storage): <NEW_LINE> <INDENT> self.storage = storage <NEW_LINE> self.type_field = 'type' <NEW_LINE> self.type_index = 'type_idx' <NEW_LINE> self.rules_rename = { 'vakt.rules.string.StringEqualRule': 'vakt.rules.string.Equal', 'vakt.rule...
Migration between versions 1.1.1 and 1.2.0. What it does: - Adds index for `type` field - Updates Policies to: - have an appropriate type (all existing policies will become of a string-based type) - have 'context' attribute instead of 'rules' attribute
62598f87be383301e0253309
class USET(Set): <NEW_LINE> <INDENT> type = 'USET' <NEW_LINE> def __init__(self, name, components, ids, comment=''): <NEW_LINE> <INDENT> Set.__init__(self) <NEW_LINE> if comment: <NEW_LINE> <INDENT> self.comment = comment <NEW_LINE> <DEDENT> self.name = name <NEW_LINE> self.components = components <NEW_LINE> self.ids =...
Defines a degrees-of-freedom set. +------+-------+-----+------+-----+----+-----+----+ | USET | SNAME | ID1 | C1 | ID2 | C2 | ID3 | C3 | +------+-------+-----+------+-----+----+-----+----+ | USET | JUNK | ID1 | THRU | ID2 | | | | +------+-------+-----+------+-----+----+-----+----+
62598f87d53ae8145f917f9d
class InitLogger: <NEW_LINE> <INDENT> def __init__(self, *args, log_context=None, **kwargs): <NEW_LINE> <INDENT> self.log_context = log_context if log_context else {} <NEW_LINE> self.logger = DSMAdapter( logging.getLogger(f'{self.__class__.__module__}.{self.__class__.__name__}'), self.log_context ) <NEW_LINE> super()._...
Миксин для инициализации логера(адаптер)
62598f878da39b475be02cf5
class AsTrajectory(tf.Module): <NEW_LINE> <INDENT> def __init__(self, data_context: DataContext, sequence_length: typing.Optional[int] = None, num_outer_dims: te.Literal[1, 2] = 2): <NEW_LINE> <INDENT> self._data_context = data_context <NEW_LINE> self._sequence_length = sequence_length <NEW_LINE> self._num_outer_dims =...
Class that validates and converts other data types to Trajectory. Note that validation and conversion allows values to contain dictionaries with extra keys as compared to the the specs in the data context. These additional entries / observations are ignored and dropped during conversion. This non-strict checking all...
62598f87a8ecb03325870d0e
class OSCompatible(object): <NEW_LINE> <INDENT> LINUX = 1 <NEW_LINE> WINDOWS = 2 <NEW_LINE> def __init__(self, os): <NEW_LINE> <INDENT> self.os = self.determine_os(os) <NEW_LINE> <DEDENT> def working_directory(self): <NEW_LINE> <INDENT> if self.os is self.WINDOWS: <NEW_LINE> <INDENT> return 'cd' <NEW_LINE> <DEDENT> ret...
The class to run compatible commands on diferent operational systems.
62598f87d4950a0f3b110bbc
class EditComment(BlogHandler): <NEW_LINE> <INDENT> def get(self, comment_id): <NEW_LINE> <INDENT> key = db.Key.from_path('Comment', int(comment_id), parent=blog_key()) <NEW_LINE> c = db.get(key) <NEW_LINE> commented = c.comment.replace('<br>', '') <NEW_LINE> if self.user: <NEW_LINE> <INDENT> self.render("editcomment.h...
Handler for editing post comment entries
62598f878e71fb1e983bb5be
class GameListing(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.lock = util.RWLock() <NEW_LINE> self.ongoing_games = {} <NEW_LINE> <DEDENT> def New(self, creator, max_players, circuit_name=None): <NEW_LINE> <INDENT> with self.lock(util.READ_LOCKED): <NEW_LINE> <INDENT> new_game = game.Game(c...
Thread-safe game listing.
62598f87462c4b4f79dbb511
class MediaGraphSystemData(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(MediaGraphSystemData, self).__i...
The system data for a resource. This is used by both topologies and instances. :param created_at: The timestamp of resource creation (UTC). :type created_at: ~datetime.datetime :param last_modified_at: The timestamp of resource last modification (UTC). :type last_modified_at: ~datetime.datetime
62598f87507cdc57c63a489b
class Favoris(models.Model): <NEW_LINE> <INDENT> product = models.ForeignKey( Product, on_delete=models.CASCADE, related_name="favorite_product" ) <NEW_LINE> substitute = models.ForeignKey( Product, on_delete=models.CASCADE, related_name="favorite_substitute" ) <NEW_LINE> owner = models.ForeignKey( User, on_delete=mode...
Represente the user's favorites products
62598f8723e79379d538c00b
class FileDB(Database): <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> self.load_json(filename) <NEW_LINE> print(self._data) <NEW_LINE> <DEDENT> def load_json(self, filename): <NEW_LINE> <INDENT> with open(filename, "r") as filehandle: <NEW_LINE> <INDENT> self._data = json.load(filehandle) <NEW_L...
Represent the interface to the data (model).
62598f87dc8b845886d530c6
class Value(object): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> @abstractmethod <NEW_LINE> def match(self, other): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def train_match(self, other): <NEW_LINE> <INDENT> return self.match(other)
A value represents an item in either a denotation (gold or predicted)
62598f87287bf620b62716c4
class DescribeProxiesRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.InstanceIds = None <NEW_LINE> self.Offset = None <NEW_LINE> self.Limit = None <NEW_LINE> self.Filters = None <NEW_LINE> self.ProxyIds = None <NEW_LINE> self.TagSet = None <NEW_LINE> self.Independent = None <NEW...
DescribeProxies请求参数结构体
62598f87f7d966606f747af7
class NotSupportedError(AWSEncryptionSDKClientError): <NEW_LINE> <INDENT> pass
Exception class for unsupported identities or operations.
62598f875f7d997b871f9160
class IntegratedImage(object): <NEW_LINE> <INDENT> def __init__(self, table): <NEW_LINE> <INDENT> self.table = table <NEW_LINE> <DEDENT> def __getitem__(self, coord): <NEW_LINE> <INDENT> assert(coord[0] >= 0) <NEW_LINE> assert(coord[1] >= 0) <NEW_LINE> if coord[0] == 0 or coord[1] == 0: <NEW_LINE> <INDENT> return 0 <NE...
Provides Python Imaging Library style coordinates for the image backed by a numpy array.
62598f87ec188e330fdf83ad
class ClientManager(object): <NEW_LINE> <INDENT> def __init__(self, supported_clients): <NEW_LINE> <INDENT> self._supported_clients = supported_clients <NEW_LINE> self.clients = {} <NEW_LINE> <DEDENT> def lang_supported(self): <NEW_LINE> <INDENT> ft = V.filetype() <NEW_LINE> if ft in self._supported_clients: <NEW_LINE>...
Class managing all clients.
62598f87fbf16365ca793bba
class MclennanTests(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self._lewis, self._ioc = get_running_lewis_and_ioc(EMULATOR_NAME, DEVICE_PREFIX) <NEW_LINE> self.ca = ChannelAccess(device_prefix=DEVICE_PREFIX, default_timeout=10) <NEW_LINE> self.ca_motor = ChannelAccess(default_timeout=3...
Tests for the Mclennan IOC.
62598f8710dbd63aa1c706c4
class TestUser(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.new_user = User( "Ezra", "ezzy96", "ezzy@ms.com", "1234") <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> User.user_list = [] <NEW_LINE> <DEDENT> def test_init(self): <NEW_LINE> <INDENT> self.assertEqual(self.ne...
Test class that defines test cases for the user class behaviours. Args: unittest.TestCase: TestCase class that helps in creating test cases
62598f873eb6a72ae038a140
class InvalidNote(ValueError): <NEW_LINE> <INDENT> def __init__(self, note): <NEW_LINE> <INDENT> message = self._message(note) <NEW_LINE> super(InvalidNote, self).__init__(message) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def _message(note: str) -> str: <NEW_LINE> <INDENT> return 'Invalid note "' + note + '".'
Raise if an invalid note occurs.
62598f87a4f1c619b294e0fa
class BrowserEngine(object): <NEW_LINE> <INDENT> readConfig=ReadConfigFile() <NEW_LINE> driver=None <NEW_LINE> def set_driver(self,driver): <NEW_LINE> <INDENT> BrowserEngine.driver=driver <NEW_LINE> return BrowserEngine.driver <NEW_LINE> <DEDENT> browser_type=readConfig.Browser <NEW_LINE> def get_browser(self): <NEW_LI...
定义一个浏览器引擎类,跟进browser_type的值,控制启动不同的浏览器,主要是IE,Firefox,Chrome
62598f878da39b475be02cf7
class OntEventDecoderError(Exception): <NEW_LINE> <INDENT> pass
Base class for exceptions in this module.
62598f8723e79379d538c00c
class SpectrumAnalyzer(BaseDevice): <NEW_LINE> <INDENT> @property <NEW_LINE> def center_frequency(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @center_frequency.setter <NEW_LINE> def center_frequency(self, value): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @property <N...
generic spectrum analyzer class
62598f876aa9bd52df0d49e3
class Atbash(Cipher): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.encrypt_mapping = { k: v for (k, v) in zip(Cipher.CHARACTERS, Cipher.CHARACTERS[::-1]) } <NEW_LINE> <DEDENT> def encrypt(self, text): <NEW_LINE> <INDENT> return "".join([self.encrypt_mapping[letter] for letter in text]) <NEW_LINE> <D...
Encrypt a text message by mapping each letter to it's reverse, e.g. 'a' becomes 'z'.
62598f87d53ae8145f917fa0
class Type(common.SourceLocation): <NEW_LINE> <INDENT> def __init__(self, file_name, line, column): <NEW_LINE> <INDENT> self.name = None <NEW_LINE> self.cpp_type = None <NEW_LINE> self.bson_serialization_type = None <NEW_LINE> self.bindata_subtype = None <NEW_LINE> self.serializer = None <NEW_LINE> self.deserializer = ...
Stores all type information about an IDL type. The fields name, description, cpp_type, and bson_serialization_type are required. Other fields may be populated. If they do not exist in the source document, they are not populated.
62598f87925a0f43d25e7b46
class TestBtrfsSnapshot(BtrfsSnapshotTestCase): <NEW_LINE> <INDENT> def testBtrfsSnapshotReadOnly(self): <NEW_LINE> <INDENT> with alias(self._mount) as m: <NEW_LINE> <INDENT> regex = "Read-only file" <NEW_LINE> with self.assertRaisesRegex(OSError, regex): <NEW_LINE> <INDENT> make(m, "root_snapshot", "file2", data=b"") ...
Test btrfs snapshot functionality.
62598f87a79ad16197769b73
class Url(plugin.Plugin): <NEW_LINE> <INDENT> def __init__(self, session): <NEW_LINE> <INDENT> self.session = session <NEW_LINE> self.name = self.__class__.__name__ <NEW_LINE> self.url = None <NEW_LINE> <DEDENT> @plugin.hook_add_command("title") <NEW_LINE> @utils.spawn <NEW_LINE> def title(self, message, params=None, *...
Provide access to URL data.
62598f8738b623060ffa8ba7
class EntityNotFound(LaunchKeyAPIException): <NEW_LINE> <INDENT> pass
Generic API 404 Error - Entity was not found
62598f87596a897236127784
class MyTemplateView(LoginRequiredMixin, PermissionRequiredMixin, TemplateView): <NEW_LINE> <INDENT> pass
TemplateView CBV with LoginRequiredMixin and PermissionRequiredMixin.
62598f8729b78933be269e63
class THINSDI(KeywordBase): <NEW_LINE> <INDENT> cycle = IntegerField('Cycle') <NEW_LINE> target = IntegerField('Target') <NEW_LINE> cut_eff = DecimalField('Cutting Efficiency', precision=2) <NEW_LINE> species = CharacterField('Target Species') <NEW_LINE> min_dbh = DecimalField('Minimum DBH', precision=1) <NEW_LINE> max...
Thin to specified SDI
62598f878e05c05ec3f6ebd0
class MessageLinkInfo(Object): <NEW_LINE> <INDENT> ID = "messageLinkInfo" <NEW_LINE> def __init__(self, is_public, chat_id, message, for_album, **kwargs): <NEW_LINE> <INDENT> self.is_public = is_public <NEW_LINE> self.chat_id = chat_id <NEW_LINE> self.message = message <NEW_LINE> self.for_album = for_album <NEW_LINE> <...
Contains information about a link to a message in a chat Attributes: ID (:obj:`str`): ``MessageLinkInfo`` Args: is_public (:obj:`bool`): True, if the link is a public link for a message in a chat chat_id (:obj:`int`): If found, identifier of the chat to which the message belongs, 0 otherwi...
62598f8791af0d3eaad3990d
class MD5PasswordHasher(BasePasswordHasher): <NEW_LINE> <INDENT> algorithm = "md5" <NEW_LINE> @password_max_length(MAXIMUM_PASSWORD_LENGTH) <NEW_LINE> def encode(self, password, salt): <NEW_LINE> <INDENT> assert password <NEW_LINE> assert salt and '$' not in salt <NEW_LINE> hash = hashlib.md5(salt + password).hexdigest...
The Salted MD5 password hashing algorithm (not recommended)
62598f878a349b6b43685d56
class _AppendSeq(object): <NEW_LINE> <INDENT> def __init__(self, conn, key, suffix="/"): <NEW_LINE> <INDENT> self._conn = conn <NEW_LINE> self._key = key <NEW_LINE> self._suffix = suffix <NEW_LINE> <DEDENT> def __idx_key__(self, idx): <NEW_LINE> <INDENT> return "%s%s%016x" % (self._key, self._suffix, idx) <NEW_LINE> <D...
Helper class. Redis lists have unfortunate performance characteristics - while they claim to provide atomic access and some scanning semantics along with constant time push or pop to either side, none of these properties are critical for the semantic needs of Skrode as a service. Skrode needs atomic append, and const...
62598f87097d151d1a2c0b37
class Block: <NEW_LINE> <INDENT> def __init__(self, inputs, outputs, max_input_order, max_output_order): <NEW_LINE> <INDENT> self.inputs = [] <NEW_LINE> self.outputs = [] <NEW_LINE> self.n_inputs = len(inputs) <NEW_LINE> self.n_outputs = len(outputs) <NEW_LINE> for variable in inputs: <NEW_LINE> <INDENT> self._AddInput...
Abstract class of block: this class should not be instanciate directly
62598f87e64d504609df913a
class MachineExtensionUpdate(ResourcePatch): <NEW_LINE> <INDENT> _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, 'publisher': {'key': 'properties.publisher', 'type': 'str'}, 'type': {'key': 'properties.type', 'type': 'str'}, 'type_han...
Describes a Machine Extension Update. :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :param force_update_tag: How the extension handler should be forced to update even if the extension configuration has not changed. :type force_update_tag: str :param publisher: The name of the extension handler...
62598f8723e79379d538c00e
class TaskPanelOpPage(PathProfileBaseGui.TaskPanelOpPage): <NEW_LINE> <INDENT> def profileFeatures(self): <NEW_LINE> <INDENT> return PathProfileBaseGui.FeatureSide
Page controller for profile based on edges operation.
62598f87b5575c28eb712a51
class EventDispatcherAware(object): <NEW_LINE> <INDENT> _dispatcher = None <NEW_LINE> @property <NEW_LINE> def dispatcher(self): <NEW_LINE> <INDENT> if not self._dispatcher: <NEW_LINE> <INDENT> self.dispatcher = EventDispatcher() <NEW_LINE> <DEDENT> return self._dispatcher <NEW_LINE> <DEDENT> @dispatcher.setter <NEW_LI...
Provides an interface for event dispatchers to be injected.
62598f8766656f66f7d59f09
class TextureCube: <NEW_LINE> <INDENT> __slots__ = ['mglo'] <NEW_LINE> @staticmethod <NEW_LINE> def new(obj) -> 'TextureCube': <NEW_LINE> <INDENT> res = TextureCube.__new__(TextureCube) <NEW_LINE> res.mglo = obj <NEW_LINE> return res <NEW_LINE> <DEDENT> def __init__(self): <NEW_LINE> <INDENT> self.mglo = None <NEW_LINE...
A Texture is an OpenGL object that contains one or more images that all have the same image format. A texture can be used in two ways. It can be the source of a texture access from a Shader, or it can be used as a render target. A Texture3D object cannot be instantiated directly, it requires a context. Use :py:meth:`C...
62598f871d351010ab8f3648
class ClassifierBReLU(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ClassifierBReLU, self).__init__() <NEW_LINE> self.fc1 = nn.Linear(784, 256) <NEW_LINE> self.fc2 = nn.Linear(256, 128) <NEW_LINE> self.fc3 = nn.Linear(128, 64) <NEW_LINE> self.fc4 = nn.Linear(64, 10) <NEW_LINE> self.a1 = ...
Simple fully-connected classifier model to demonstrate BReLU activation.
62598f87f7d966606f747afb