code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class AuthRequestMixin(object): <NEW_LINE> <INDENT> def __init__(self, client_authenticator, scope_handler, token_generator, **kwargs): <NEW_LINE> <INDENT> self.client = None <NEW_LINE> self.state = None <NEW_LINE> self.client_authenticator = client_authenticator <NEW_LINE> self.scope_handler = scope_handler <NEW_LINE>...
Generalization of reading and validating an incoming request used by `oauth2.grant.AuthorizationCodeAuthHandler` and `oauth2.grant.ImplicitGrantHandler`.
6259902c8a349b6b4368723a
class TestPlatzbegrenzungen(TestCase): <NEW_LINE> <INDENT> fixtures = [ 'testdata/verwaltungszeitraum_testdata', 'testdata/block_testdata', 'testdata/zeitraum_testdata', 'testdata/praxis_testdata', 'testdata/student_testdata', ] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> Platz.objects.all().delete() <NEW_LINE> sel...
Testet die Platzbegrenzungen.
6259902cac7a0e7691f734ea
class DraggableTabBar(TabBar): <NEW_LINE> <INDENT> tab_move_request = QtCore.Signal(QtWidgets.QWidget, int) <NEW_LINE> def __init__(self, parent): <NEW_LINE> <INDENT> super(DraggableTabBar, self).__init__(parent) <NEW_LINE> self._pos = QtCore.QPoint() <NEW_LINE> self.setAcceptDrops(True) <NEW_LINE> self.setMouseTrackin...
A draggable tab bar that allow to drag & drop tabs. Implementation is based on this qt article: http://www.qtcentre.org/wiki/index.php?title=Movable_Tabs
6259902c30c21e258be9980d
class ProdConfig(Config): <NEW_LINE> <INDENT> DEBUG = False
Production configurations
6259902c507cdc57c63a5da9
class Cashier(Visitor): <NEW_LINE> <INDENT> def visit_book(self, book): <NEW_LINE> <INDENT> return book.get_price() <NEW_LINE> <DEDENT> def visit_fruit(self, fruit): <NEW_LINE> <INDENT> return fruit.get_price()
具体访问者 - 收银员
6259902cb57a9660fecd2a84
class PID: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.kp = 0 <NEW_LINE> self.ki = 0 <NEW_LINE> self.kd = 0 <NEW_LINE> self.p = 0 <NEW_LINE> self.i = 0 <NEW_LINE> self.d = 0 <NEW_LINE> self.previous_error = 0 <NEW_LINE> <DEDENT> def set_params(self, kp, ki, kd): <NEW_LINE> <INDENT> self.kp = kp <NE...
implements a standard PID controller
6259902c5166f23b2e2443d8
class OutputCore(Contractable): <NEW_LINE> <INDENT> def __init__(self, tensor): <NEW_LINE> <INDENT> if len(tensor.shape) not in [3, 4]: <NEW_LINE> <INDENT> raise ValueError( "OutputCore tensors must have shape [batch_size, " "output_dim, D_l, D_r], or else [output_dim, D_l," " D_r] if batch size has already been set" )...
A single MPS core with a single output index
6259902c6fece00bbaccc9b2
class TakeComment(models.Model): <NEW_LINE> <INDENT> take = models.ForeignKey(Take, on_delete=models.CASCADE) <NEW_LINE> created_by = models.ForeignKey(User, on_delete=models.CASCADE) <NEW_LINE> created_at = models.DateTimeField(auto_now_add=True) <NEW_LINE> updated_at = models.DateTimeField(auto_now=True) <NEW_LINE> b...
Represents user discussion around a take
6259902c30c21e258be9980f
class SaveIO(object): <NEW_LINE> <INDENT> def __init__(self, io): <NEW_LINE> <INDENT> self.name = io.name <NEW_LINE> self.io_type = io.io_type <NEW_LINE> self.loaded_item = None <NEW_LINE> <DEDENT> def update(self, io): <NEW_LINE> <INDENT> self.__init__(io)
Container for UIIO state without Qt bindings. Used for saving.
6259902c50485f2cf55dbf7f
class ListLogPayloadResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Context = None <NEW_LINE> self.Listover = None <NEW_LINE> self.Results = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Context = params.get("...
ListLogPayload返回参数结构体
6259902cc432627299fa3ff8
class Task(TaskDetails, AbstractTask, Item): <NEW_LINE> <INDENT> path = '/tasks/' <NEW_LINE> @classmethod <NEW_LINE> def wait_for_response(cls, pulp, response, timeout=120): <NEW_LINE> <INDENT> ret = cls.from_response(response) <NEW_LINE> if isinstance(ret, list): <NEW_LINE> <INDENT> for task in ret: <NEW_LINE> <INDENT...
an item-view task
6259902c21bff66bcd723c67
@register_axis('bqplot.Axis') <NEW_LINE> class Axis(BaseAxis): <NEW_LINE> <INDENT> icon = 'fa-arrows' <NEW_LINE> orientation = Enum(['horizontal', 'vertical'], default_value='horizontal', sync=True) <NEW_LINE> side = Enum(['bottom', 'top', 'left', 'right'], allow_none=True, default_value=None, sync=True) <NEW_LINE> lab...
A line axis. A line axis is the visual representation of a numerical or date scale. Attributes ---------- icon: string (class-level attribute) The font-awesome icon name for this object. axis_types: dict (class-level attribute) A registry of existing axis types. orientation: {'horizontal',...
6259902cd4950a0f3b11163f
class Yaw(EventState): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> smach.State.__init__(self, outcomes=['Success', 'Failure'], input_keys=['args']) <NEW_LINE> self.topic = "go_to_yaw" <NEW_LINE> self.client = ProxyActionClient({ self.topic, riptide_controllers.msg.GoToYawAction}) <NEW_LINE> <DEDENT> def...
Handles rotating the robot's yaw by a given angle. Yaw is like left/right movement. @param angle => float the angle to rotate by
6259902cd10714528d69ee8f
class DeepTask(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.testDir = tempfile.mkdtemp() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> CRABClient.Emulator.clearEmulators() <NEW_LINE> if os.path.exists(self.testDir): <NEW_LINE> <INDENT> shutil.rmtree(self.testDir) <NEW_...
Test that we actually get back what we want from CRABClient. Don't require too much from the internals, just inject enough fake dependecies to convince the client it's talking to something real
6259902c925a0f43d25e904d
class TextMatchStrategy(object): <NEW_LINE> <INDENT> def __init__(self, name: str, matcher: Callable[[str, str], bool]): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.matcher = matcher <NEW_LINE> <DEDENT> def __call__(self, text: str, pattern: str) -> bool: <NEW_LINE> <INDENT> return self.matcher(text, pattern) ...
Represents a method of checking if given text matches a pattern.
6259902cb57a9660fecd2a88
class Command(RunServerCommand): <NEW_LINE> <INDENT> option_list = RunServerCommand.option_list + ( make_option('--pdb', action='store_true', dest='pdb', default=False, help='Drop into pdb shell on at the start of any view.'), make_option('--ipdb', action='store_true', dest='ipdb', default=False, help='Drop into ipdb s...
Identical to Django's standard 'runserver' management command, except that it also adds support for a '--pdb' option.
6259902cd99f1b3c44d066a9
class ServiceTagsOperations: <NEW_LINE> <INDENT> models = _models <NEW_LINE> def __init__(self, client, config, serializer, deserializer) -> None: <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._serialize = serializer <NEW_LINE> self._deserialize = deserializer <NEW_LINE> self._config = config <NEW_LINE> <DE...
ServiceTagsOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.network.v2020_11_01.models :pa...
6259902cd4950a0f3b111640
class product_specification(osv.osv): <NEW_LINE> <INDENT> _name = 'product.specification' <NEW_LINE> _rec_name = 'description' <NEW_LINE> def onchange_product_det_id(self, cr, uid, ids, product_id, determination_id, context=None): <NEW_LINE> <INDENT> description='' <NEW_LINE> productname='' <NEW_LINE> determinationname...
Open ERP Model Product Specification
6259902c0a366e3fb87dd9ee
class ProjectsGetXpnResources(_messages.Message): <NEW_LINE> <INDENT> kind = _messages.StringField(1, default=u'compute#projectsGetXpnResources') <NEW_LINE> nextPageToken = _messages.StringField(2) <NEW_LINE> resources = _messages.MessageField('XpnResourceId', 3, repeated=True)
A ProjectsGetXpnResources object. Fields: kind: [Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects) nextPageToken: [Output Only] This token allows you to get the next page of results for list requests. If the number of results i...
6259902c8a349b6b43687241
class WebhookNotifier(NotifierUtils): <NEW_LINE> <INDENT> def __init__(self, url, username, password): <NEW_LINE> <INDENT> self.logger = structlog.get_logger() <NEW_LINE> self.url = url <NEW_LINE> self.username = username <NEW_LINE> self.password = password <NEW_LINE> <DEDENT> def notify(self, messages, chart_file): <N...
Class for handling webhook notifications
6259902c15baa72349462f9f
class Question(models.Model): <NEW_LINE> <INDENT> objects = QuestionManager() <NEW_LINE> title = models.CharField(max_length=255) <NEW_LINE> text = models.TextField() <NEW_LINE> added_at = models.DateField(auto_now_add=True) <NEW_LINE> rating = models.IntegerField(default=0) <NEW_LINE> author = models.OneToOneField(Use...
Question - вопрос title - заголовок вопроса text - полный текст вопроса added_at - дата добавления вопроса rating - рейтинг вопроса (число) author - автор вопроса likes - список пользователей, поставивших "лайк"
6259902c30c21e258be99812
class Chip(Base): <NEW_LINE> <INDENT> __tablename__ = "chips" <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> boards = relationship("Board", secondary = "board_chip_links") <NEW_LINE> board_links = relationship("BoardChipLink", back_populates = "chip") <NEW_LINE> channels = relationship("Channel", secondar...
A chip is a pair of FE/ADC asics with 16 channels
6259902c5e10d32532ce4107
class Constant(NonNode): <NEW_LINE> <INDENT> def __init__(self, constant: float): <NEW_LINE> <INDENT> self.constant = constant <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return f"{self.__class__.__name__}({self.constant})" <NEW_LINE> <DEDENT> @property <NEW_LINE> def dependencies(self) -> Iterable["Exp...
Constant value over time.
6259902cd164cc6175821f79
class DepSolver (object): <NEW_LINE> <INDENT> def __init__(self, arch=None): <NEW_LINE> <INDENT> self.deps = set() <NEW_LINE> <DEDENT> def get_deps(self, path): <NEW_LINE> <INDENT> LOG.info('getting dependencies for %s', path) <NEW_LINE> try: <NEW_LINE> <INDENT> ef = ELFFile(path) <NEW_LINE> interp = ef.interpreter() <...
Finds shared library dependencies of ELF binaries.
6259902c507cdc57c63a5daf
class AutoReset(object): <NEW_LINE> <INDENT> def __init__(self, env): <NEW_LINE> <INDENT> self._env = env <NEW_LINE> self._done = True <NEW_LINE> <DEDENT> def __getattr__(self, name): <NEW_LINE> <INDENT> return getattr(self._env, name) <NEW_LINE> <DEDENT> def step(self, action): <NEW_LINE> <INDENT> if self._done: <NEW_...
Automatically reset environment when the episode is done.
6259902cec188e330fdf989b
@register_command <NEW_LINE> class GlibcHeapSmallBinsCommand(GenericCommand): <NEW_LINE> <INDENT> _cmdline_ = "heap bins small" <NEW_LINE> _syntax_ = "{:s} [ARENA_ADDRESS]".format(_cmdline_) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(GlibcHeapSmallBinsCommand, self).__init__(complete=gdb.COMPLETE_LOCATIO...
Convenience command for viewing small bins.
6259902c711fe17d825e149e
class SetSubpictureClut(PipelineCmd): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> methodName = 'setSubpictureClut'
When constructed with parameter list `(clut)`, set the subpicture color lookup table to 'clut''clut' is a 16-position array.
6259902cbe8e80087fbc0083
class Halo(object): <NEW_LINE> <INDENT> def __init__(self, dm): <NEW_LINE> <INDENT> lsec = dm.getDefaultSection() <NEW_LINE> gsec = dm.getDefaultGlobalSection() <NEW_LINE> dm.createDefaultSF(lsec, gsec) <NEW_LINE> sf = dm.getDefaultSF() <NEW_LINE> self.sf = dmplex.prune_sf(sf) <NEW_LINE> self.comm = self.sf.comm.tompi4...
Build a Halo for a function space. :arg dm: The DM describing the data layout (has a Section attached). The halo is implemented using a PETSc SF (star forest) object and is usable as a PyOP2 :class:`pyop2.Halo`.
6259902cd10714528d69ee91
class GlibTranslations(gettext.GNUTranslations): <NEW_LINE> <INDENT> def __init__(self, fp=None): <NEW_LINE> <INDENT> self.path = (fp and fp.name) or "" <NEW_LINE> self._catalog = {} <NEW_LINE> self.plural = lambda n: n != 1 <NEW_LINE> gettext.GNUTranslations.__init__(self, fp) <NEW_LINE> <DEDENT> def qgettext(self, ms...
Provide a glib-like translation API for Python. This class adds support for qgettext (and uqgettext) mirroring glib's Q_ macro, which allows for disambiguation of identical source strings. It also installs N_, Q_, and ngettext into the __builtin__ namespace. It can also be instantiated and used with any valid MO file...
6259902c507cdc57c63a5db1
class MatrixUtils: <NEW_LINE> <INDENT> def circle(pos, radius, imgsize): <NEW_LINE> <INDENT> xx, yy = np.mgrid[:imgsize[0], :imgsize[1]] <NEW_LINE> distances = (xx - pos[0]) ** 2 + (yy - pos[1]) ** 2 <NEW_LINE> radius2 = radius**2 <NEW_LINE> result = distances.clip(0, radius2)/radius2 * -1 + 1 <NEW_LINE> return result ...
Useful for drawing and colouring simple shapes.
6259902c50485f2cf55dbf85
class EditForm(base.EditForm): <NEW_LINE> <INDENT> form_fields = form.fields(IPeoplePage) <NEW_LINE> label = _(u"Edit People Page") <NEW_LINE> form_name = _(u"People Page Details")
Edit form
6259902cec188e330fdf989d
class HiddenContent(Base): <NEW_LINE> <INDENT> __tablename__ = 'hidden_content' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> content_type = Column(String(32)) <NEW_LINE> content_identifier = Column(String(128)) <NEW_LINE> content_description = Column(String) <NEW_LINE> def __init__(self, content_type, c...
Model to hold settings regarding what content is hidden.
6259902cc432627299fa3ffe
class AnnotationTypesEnum(str, enum.Enum): <NEW_LINE> <INDENT> Anatomy = "Anatomy" <NEW_LINE> Cell = "Cell" <NEW_LINE> CellLine = "CellLine" <NEW_LINE> CellStructure = "CellStructure" <NEW_LINE> Disease = "Disease" <NEW_LINE> Species = "Species" <NEW_LINE> All = "All"
Namespace entity annotation types
6259902c73bcbd0ca4bcb29c
class TrapaggCollector(object): <NEW_LINE> <INDENT> def __init__(self, args=None): <NEW_LINE> <INDENT> self.args = None <NEW_LINE> if not args: <NEW_LINE> <INDENT> args = sys.argv[1:] <NEW_LINE> <DEDENT> self._parse_args(args) <NEW_LINE> <DEDENT> def _parse_args(self, args): <NEW_LINE> <INDENT> parser = argparse.Argume...
Collect aggregated per-{trap, flow} metrics and publish them via http or save them to a file.
6259902c8a43f66fc4bf318e
class ExtendedCode(AbstractLinearCode): <NEW_LINE> <INDENT> _registered_encoders = {} <NEW_LINE> _registered_decoders = {} <NEW_LINE> def __init__(self, C): <NEW_LINE> <INDENT> if not isinstance(C, AbstractLinearCode): <NEW_LINE> <INDENT> raise ValueError("Provided code must be a linear code") <NEW_LINE> <DEDENT> super...
Representation of an extended code. INPUT: - ``C`` -- A linear code EXAMPLES:: sage: C = codes.random_linear_code(GF(7), 11, 5) sage: Ce = codes.ExtendedCode(C) sage: Ce Extension of [11, 5] linear code over GF(7)
6259902c6fece00bbaccc9b9
class TestODataQueryOptionsAccount(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 testODataQueryOptionsAccount(self): <NEW_LINE> <INDENT> pass
ODataQueryOptionsAccount unit test stubs
6259902cbe8e80087fbc0085
class WindowsClient(_BaseClient): <NEW_LINE> <INDENT> def __init__(self, origin, verify=verify_rp_id, handle=None): <NEW_LINE> <INDENT> super(WindowsClient, self).__init__(origin, verify) <NEW_LINE> self.api = WinAPI(handle) <NEW_LINE> <DEDENT> @property <NEW_LINE> def info(self): <NEW_LINE> <INDENT> return _WIN_INFO <...
Fido2Client-like class using the Windows WebAuthn API. Note: This class only works on Windows 10 19H1 or later. This is also when Windows started restricting access to FIDO devices, causing the standard client classes to require admin priveleges to run (unlike this one). The make_credential and get_assertion methods ...
6259902c1d351010ab8f4b22
class PhonebookTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.phonebook = Phonebook() <NEW_LINE> <DEDENT> def test_lookup_entry_by_name(self): <NEW_LINE> <INDENT> self.phonebook.add("Bob", "12345") <NEW_LINE> self.assertEqual("12345", self.phonebook.lookup("Bob")) <NEW_LINE> <DED...
Class that contains the test cases.
6259902cd164cc6175821f7d
class ComputeTargetInstancesAggregatedListRequest(_messages.Message): <NEW_LINE> <INDENT> filter = _messages.StringField(1) <NEW_LINE> maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) <NEW_LINE> pageToken = _messages.StringField(3) <NEW_LINE> project = _messages.StringField(4, requi...
A ComputeTargetInstancesAggregatedListRequest object. Fields: filter: Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: FIELD_NAME COMPARISON_STRING LITERAL_STRING. The FIELD_NAME is the name of the field you want to compar...
6259902ca4f1c619b294f600
class VectorUDT(UserDefinedType): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def sqlType(cls): <NEW_LINE> <INDENT> return StructType([ StructField("type", ByteType(), False), StructField("size", IntegerType(), True), StructField("indices", ArrayType(IntegerType(), False), True), StructField("values", ArrayType(DoubleT...
SQL user-defined type (UDT) for Vector.
6259902cd10714528d69ee92
class EntryNotInDatabaseError(Exception): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> self.message = message
Entry not in the db. Obvs
6259902c1f5feb6acb163bfc
class CensorRealtime(): <NEW_LINE> <INDENT> def __init__(self, args, explicits): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.explicits = explicits <NEW_LINE> self.args = args <NEW_LINE> create_env_var('CLEANSIO_REALTIME', 'true') <NEW_LINE> <DEDENT> def censor(self): <NEW_LINE> <INDENT> system = platform.sys...
Filters audio stream in real-time
6259902c5166f23b2e2443e2
@provides(IWindow) <NEW_LINE> class Window(MWindow, Widget): <NEW_LINE> <INDENT> position = Property(Tuple) <NEW_LINE> size = Property(Tuple) <NEW_LINE> size_state = Enum('normal', 'maximized') <NEW_LINE> title = Unicode <NEW_LINE> opened = Event <NEW_LINE> opening = VetoableEvent <NEW_LINE> activated = Event <NEW_LINE...
The toolkit specific implementation of a Window. See the IWindow interface for the API documentation.
6259902cec188e330fdf989f
class LoginViewSet(viewsets.ViewSet, generics.GenericAPIView): <NEW_LINE> <INDENT> serializer_class = AuthTokenSerializer <NEW_LINE> def create(self, request): <NEW_LINE> <INDENT> return ObtainAuthToken().post(request)
Log in using your username and password. **returns:** Token.
6259902c711fe17d825e14a0
class SshClient(object): <NEW_LINE> <INDENT> def __init__(self, executable='ssh', socket=None): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.executable = find_executable(executable) <NEW_LINE> executables = ['ssh', 'dbclient'] <NEW_LINE> while self.executable is None: <NEW_LINE> <INDENT> self.executable = fin...
An SSH client.
6259902cd53ae8145f919470
class EpisodicLearnerMixin(object): <NEW_LINE> <INDENT> @property <NEW_LINE> def value_function(self): <NEW_LINE> <INDENT> if hasattr(self, 'vfunction'): <NEW_LINE> <INDENT> return self.vfunction <NEW_LINE> <DEDENT> if hasattr(self, 'qfunction'): <NEW_LINE> <INDENT> return self.qfunction <NEW_LINE> <DEDENT> <DEDENT> de...
Mixin for learning value functions by interacting with an environment in an episodic setting.
6259902c6e29344779b0165c
class ResponseContinuation(Response): <NEW_LINE> <INDENT> def __init__(self, text: MaybeBytes) -> None: <NEW_LINE> <INDENT> super().__init__(b'+', text)
Class used for server responses that indicate a continuation requirement. This is when the server needs more data from the client to finish handling the command. The ``AUTHENTICATE`` command and any command that uses a literal string argument will send this response as needed. Args: text: The continuation text.
6259902c66673b3332c313fd
class GalsimMoffatFitter(GalsimFitter): <NEW_LINE> <INDENT> def __init__(self, prior=None, fit_pars=None): <NEW_LINE> <INDENT> super().__init__(model="moffat", prior=prior, fit_pars=fit_pars) <NEW_LINE> <DEDENT> def _make_fit_model(self, obs, guess): <NEW_LINE> <INDENT> return GalsimMoffatFitModel( obs=obs, guess=guess...
Fit a moffat model using galsim Parameters ---------- model: string e.g. 'exp', 'spergel' prior: ngmix prior, optional For example ngmix.priors.PriorSimpleSep can be used as a separable prior on center, g, size, flux. fit_pars: dict, optional parameters for the lm fitter, e.g. maxfev, ftol, xtol
6259902c30c21e258be99818
class CauseEOFError(CauseExceptionMixin, Question): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.exception = EOFError <NEW_LINE> <DEDENT> def get_correct_answers(self): <NEW_LINE> <INDENT> return [( 'import StringIO\n' 'import sys\n' 'sys.stdin = StringIO.StringIO("")\n' 'input()\n' )]
Cause an EOFError. https://docs.python.org/3.6/library/exceptions.html#EOFError
6259902ce76e3b2f99fd9a1a
class HealthStateCount(Model): <NEW_LINE> <INDENT> _validation = { 'ok_count': {'minimum': 0}, 'warning_count': {'minimum': 0}, 'error_count': {'minimum': 0}, } <NEW_LINE> _attribute_map = { 'ok_count': {'key': 'OkCount', 'type': 'long'}, 'warning_count': {'key': 'WarningCount', 'type': 'long'}, 'error_count': {'key': ...
Represents information about how many health entities are in Ok, Warning and Error health state. . :param ok_count: The number of health entities with aggregated health state Ok. :type ok_count: long :param warning_count: The number of health entities with aggregated health state Warning. :type warning_count: long :...
6259902c287bf620b6272bf5
class User_blog(db.Model): <NEW_LINE> <INDENT> __tablename__ = "user_blogs" <NEW_LINE> user_blog_id = db.Column(db.Integer, autoincrement=True, primary_key=True) <NEW_LINE> user_id = db.Column(db.Integer, db.ForeignKey('users.user_id'), nullable=False) <NEW_LINE> blog_id = db.Column(db.Integer, db.ForeignKey('blogs.blo...
Association table between users and blogs.
6259902c5166f23b2e2443e4
class InterfaceSymbol(ClassInterfaceSymbol): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> super(InterfaceSymbol, self).__init__(name) <NEW_LINE> self._sub_interfaces = None <NEW_LINE> self._super_interface = '' <NEW_LINE> <DEDENT> def _get_super_interface(self): <NEW_LINE> <INDENT> return self._sup...
Represents interfaces.
6259902cd53ae8145f919472
@admin.register(models.CandidateContest) <NEW_LINE> class CandidateContestAdmin(base.ModelAdmin): <NEW_LINE> <INDENT> readonly_fields = ("id", "created_at", "updated_at") <NEW_LINE> raw_id_fields = ("division", "runoff_for_contest") <NEW_LINE> fields = ( ("name", "election", "party", "previous_term_unexpired", "number_...
Custom administrative panel for the CandidateContest model.
6259902c73bcbd0ca4bcb2a0
class Parser(object): <NEW_LINE> <INDENT> def __init__(self, file_path): <NEW_LINE> <INDENT> self.file_path = file_path <NEW_LINE> <DEDENT> def _read_lines(self): <NEW_LINE> <INDENT> with open(self.file_path, 'rb') as json_file: <NEW_LINE> <INDENT> for line in json_file: <NEW_LINE> <INDENT> yield line <NEW_LINE> <DEDEN...
Iterative Parser Args: file_path Usage: Users should call get_entries(num) where num is the number of lines one needs.
6259902c66673b3332c313ff
class AddInstanceResult(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.FailedInstanceIds = None <NEW_LINE> self.SuccInstanceIds = None <NEW_LINE> self.TimeoutInstanceIds = None <NEW_LINE> self.FailedReasons = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> ...
添加实例到集群的结果
6259902c8a349b6b43687249
class ProjectScreenshot(models.Model): <NEW_LINE> <INDENT> project = models.ForeignKey( Project, related_name='screenshots', on_delete=models.CASCADE) <NEW_LINE> screenshot = models.ImageField( help_text=_('A project screenshot.'), upload_to=os.path.join(MEDIA_ROOT, 'images/projects/screenshots'), blank=True )
A model to store a screenshot linked to a project.
6259902c30c21e258be9981a
class ContentType(str, Enum): <NEW_LINE> <INDENT> APPLICATION_SRGS = 'application/srgs' <NEW_LINE> APPLICATION_SRGS_XML = 'application/srgs+xml'
The format (MIME type) of the grammar file: * `application/srgs` for Augmented Backus-Naur Form (ABNF), which uses a plain-text representation that is similar to traditional BNF grammars. * `application/srgs+xml` for XML Form, which uses XML elements to represent the grammar.
6259902c30c21e258be9981b
class TrackPipeline(object): <NEW_LINE> <INDENT> def process_item(self, item, spider): <NEW_LINE> <INDENT> track_item = item <NEW_LINE> user_url = track_item['sc_user_url'] <NEW_LINE> try: <NEW_LINE> <INDENT> db_artist = db.get_single('artist_page', user_url, 'url')['artist'] <NEW_LINE> new_artist_sample = { 'url': tra...
track['sc_user_url'] track['sc_name'] track['sc_track_id'] track['sc_num_plays'] track['sc_description'] track['sc_genre'] track['sc_embeddable_by'] track['sc_streamable'] track['sc_license'] track['sc_lable_name']
6259902c8e05c05ec3f6f663
class PrincipalCalendarsExportResource(SimpleResource): <NEW_LINE> <INDENT> addSlash = False <NEW_LINE> def __init__(self, record, store, principalCollections): <NEW_LINE> <INDENT> super(PrincipalCalendarsExportResource, self).__init__(principalCollections, isdir=False) <NEW_LINE> self._record = record <NEW_LINE> self....
Resource that vends a principal's calendars as iCalendar text.
6259902c91af0d3eaad3ae39
class TopicRemodeler(_BaseRemodeler): <NEW_LINE> <INDENT> TYPE = 'TOPIC' <NEW_LINE> @property <NEW_LINE> def _haros_model_instances(self): <NEW_LINE> <INDENT> return self._haros_configuration.topics <NEW_LINE> <DEDENT> @property <NEW_LINE> def _chris_model_banks(self): <NEW_LINE> <INDENT> return {BankType.TOPIC: self._...
The `TopicRemodeler` is a `_BaseRemodeler` that provides the specific logic necessary to load the CHRIS and HAROS Topic Specification models, determine which HAROS models are present in the CHRIS models and merge them (if applicable), determine which HAROS models are not present in the CHRIS models and create them (if ...
6259902cd164cc6175821f81
class Weapon(Stone): <NEW_LINE> <INDENT> def __init__(self, element, comp, wep_type): <NEW_LINE> <INDENT> Stone.__init__(self, comp) <NEW_LINE> self.type = wep_type <NEW_LINE> self.element = element <NEW_LINE> <DEDENT> def map_to_grid(self, origin, grid_size): <NEW_LINE> <INDENT> orix,oriy = origin <NEW_LINE> tiles = [...
Scients Equip weapons to do damage
6259902ca4f1c619b294f605
class SVNSync(NewBase): <NEW_LINE> <INDENT> short_desc = "Perform sync operations on SVN repositories" <NEW_LINE> @staticmethod <NEW_LINE> def name(): <NEW_LINE> <INDENT> return "SVNSync" <NEW_LINE> <DEDENT> def __init__(self): <NEW_LINE> <INDENT> NewBase.__init__(self, "svn", "dev-vcs/subversion") <NEW_LINE> <DEDENT> ...
SVN sync module
6259902c63f4b57ef008657a
class FaultWrapper(wsgi.Middleware): <NEW_LINE> <INDENT> error_map = { 'AttributeError': webob.exc.HTTPBadRequest, 'ValueError': webob.exc.HTTPBadRequest, 'StackNotFound': webob.exc.HTTPNotFound, 'ResourceNotFound': webob.exc.HTTPNotFound, 'ResourceTypeNotFound': webob.exc.HTTPNotFound, 'ResourceNotAvailable': webob.ex...
Replace error body with something the client can parse.
6259902c8c3a8732951f7568
class DevConfig(Config): <NEW_LINE> <INDENT> DEBUG = True
Development configuration child class Args: Config: The parent configuration class with General configuration settings
6259902c5166f23b2e2443e6
class AsyncCompletedEventHandler(MulticastDelegate,ICloneable,ISerializable): <NEW_LINE> <INDENT> def BeginInvoke(self,sender,e,callback,object): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def CombineImpl(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def DynamicInvokeImpl(self,*args): <NEW_LINE> <INDENT> ...
Represents the method that will handle the MethodNameCompleted event of an asynchronous operation. AsyncCompletedEventHandler(object: object,method: IntPtr)
6259902cec188e330fdf98a3
class V1ResourceQuotaStatus(object): <NEW_LINE> <INDENT> openapi_types = { 'hard': 'dict(str, str)', 'used': 'dict(str, str)' } <NEW_LINE> attribute_map = { 'hard': 'hard', 'used': 'used' } <NEW_LINE> def __init__(self, hard=None, used=None, local_vars_configuration=None): <NEW_LINE> <INDENT> if local_vars_configuratio...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
6259902cd99f1b3c44d066b3
class IConfirmationDialog(IDialog): <NEW_LINE> <INDENT> cancel = Bool(False) <NEW_LINE> default = Enum(NO, YES, CANCEL) <NEW_LINE> image = Image() <NEW_LINE> message = Str() <NEW_LINE> informative = Str() <NEW_LINE> detail = Str() <NEW_LINE> no_label = Str() <NEW_LINE> yes_label = Str()
The interface for a dialog that prompts the user for confirmation.
6259902c6e29344779b01660
class ServiceNotFound(BalenaException): <NEW_LINE> <INDENT> def __init__(self, service_id): <NEW_LINE> <INDENT> super(ServiceNotFound, self).__init__() <NEW_LINE> self.message = Message.SERVICE_NOT_FOUND.format(id=service_id)
Args: service_id (str): service id. Attributes: message (str): error message.
6259902ca8ecb0332587222e
class Humanoid(object): <NEW_LINE> <INDENT> def __init__(self, position, health, stamina): <NEW_LINE> <INDENT> self.position = position <NEW_LINE> self.health = health <NEW_LINE> self.stamina = stamina <NEW_LINE> self.wolf_position = None <NEW_LINE> self.food_position = None <NEW_LINE> <DEDENT> def get_wolf_proximity(s...
Humanoid is a python class that wraps around json data that describes the current state of the agent in the QCOG test bed environment. An example of the json data used to create this class. { "lastWolfPosition": [29.02450942993164,0.0,27.91568946838379], "lastFoodPosition":[0.0,0.0,0.0], "position":[29.14068984...
6259902c73bcbd0ca4bcb2a2
class ZonesService(base_api.BaseApiService): <NEW_LINE> <INDENT> _NAME = u'zones' <NEW_LINE> def __init__(self, client): <NEW_LINE> <INDENT> super(ComputeAlpha.ZonesService, self).__init__(client) <NEW_LINE> self._upload_configs = { } <NEW_LINE> <DEDENT> def Get(self, request, global_params=None): <NEW_LINE> <INDENT> c...
Service class for the zones resource.
6259902c6fece00bbaccc9bf
class Tuio2dCurMotionEvent(TuioMotionEvent): <NEW_LINE> <INDENT> def __init__(self, device, id, args): <NEW_LINE> <INDENT> super(Tuio2dCurMotionEvent, self).__init__(device, id, args) <NEW_LINE> <DEDENT> def depack(self, args): <NEW_LINE> <INDENT> if len(args) < 5: <NEW_LINE> <INDENT> self.sx, self.sy = map(float, args...
A 2dCur TUIO touch.
6259902cbe8e80087fbc008b
@op <NEW_LINE> class Dummy(Node): <NEW_LINE> <INDENT> ins = [] <NEW_LINE> flags = ["cfopcode", "start_block", "constlike", "dump_noblock"] <NEW_LINE> pinned = "yes"
A placeholder value. This is used when constructing cyclic graphs where you have cases where not all predecessors of a phi-node are known. Dummy nodes are used for the unknown predecessors and replaced later.
6259902c1d351010ab8f4b28
class SentEdgesToNodesAggregator(_EdgesToNodesAggregator): <NEW_LINE> <INDENT> def __init__(self, reducer, name="sent_edges_to_nodes_aggregator"): <NEW_LINE> <INDENT> super(SentEdgesToNodesAggregator, self).__init__( use_sent_edges=True, reducer=reducer, name=name)
Agregates sent edges into the corresponding sender nodes.
6259902c8c3a8732951f7569
class HDFreadRandom(HDFread): <NEW_LINE> <INDENT> Block.alias('hdfread_random') <NEW_LINE> Block.output_is_defined_at_runtime() <NEW_LINE> Block.config('file', 'HDF file to write') <NEW_LINE> Block.config('signals', 'Which signals to output (and in what order). ' 'Should be a comma-separated list. ' 'If you do not spec...
This block reads the long in a random fashion.
6259902c30c21e258be9981d
class MockTheory(ScatteringTheory): <NEW_LINE> <INDENT> def __init__(*args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def _can_handle(self, scatterer): <NEW_LINE> <INDENT> return isinstance(scatterer, Sphere) <NEW_LINE> <DEDENT> def _raw_fields(self, positions, *args, **kwargs): <NEW_LINE> <INDENT> return...
Minimally-functional daughter of ScatteringTheory for fast tests.
6259902c287bf620b6272bf9
class ShowIpOspfDatabaseSummaryDetail(ShowIpOspfDatabaseSummaryDetailSchema, ShowIpOspfDatabaseDetailParser): <NEW_LINE> <INDENT> cli_command = ['show ip ospf database summary detail vrf {vrf}', 'show ip ospf database summary detail'] <NEW_LINE> exclude = [ 'age', 'checksum', 'seq_num', 'metric', 'lsas'] <NEW_LINE> def...
Parser for: show ip ospf database summary detail show ip ospf database summary detail vrf <vrf>
6259902c8c3a8732951f756a
class PathChooserWidget(QtGui.QWidget, ConstantWidgetMixin): <NEW_LINE> <INDENT> def __init__(self, param, parent=None): <NEW_LINE> <INDENT> QtGui.QWidget.__init__(self, parent) <NEW_LINE> ConstantWidgetMixin.__init__(self, param.strValue) <NEW_LINE> layout = QtGui.QHBoxLayout() <NEW_LINE> self.line_edit = StandardCons...
PathChooserWidget is a widget containing a line edit and a button that opens a browser for paths. The lineEdit is updated with the pathname that is selected.
6259902cd53ae8145f919476
class GlobalContainer(object): <NEW_LINE> <INDENT> def put(key, value): <NEW_LINE> <INDENT> GLOBAL_CONTAINER[key] = value <NEW_LINE> <DEDENT> put = staticmethod(put) <NEW_LINE> def get(key): <NEW_LINE> <INDENT> return GLOBAL_CONTAINER.get(key) <NEW_LINE> <DEDENT> get = staticmethod(get) <NEW_LINE> def remove(key): <NEW...
Global container that spans across all threads
6259902c6e29344779b01662
class ListTagCallMixin(Call): <NEW_LINE> <INDENT> def list_tags(self): <NEW_LINE> <INDENT> from highton.models.tag import Tag <NEW_LINE> return fields.ListField( name=self.ENDPOINT, init_class=Tag ).decode( self.element_from_string( self._get_request( endpoint=self.ENDPOINT + '/' + str(self.id) + '/' + Tag.ENDPOINT, )....
A mixin to get all tags of inherited class These could be: people || companies || kases || deals
6259902c50485f2cf55dbf8e
class StreamingLocatorContentKey(Model): <NEW_LINE> <INDENT> _validation = { 'type': {'required': True}, 'id': {'required': True}, } <NEW_LINE> _attribute_map = { 'label': {'key': 'label', 'type': 'str'}, 'type': {'key': 'type', 'type': 'StreamingLocatorContentKeyType'}, 'id': {'key': 'id', 'type': 'str'}, 'value': {'k...
Class for content key in Streaming Locator. All required parameters must be populated in order to send to Azure. :param label: Label of Content Key :type label: str :param type: Required. Encryption type of Content Key. Possible values include: 'CommonEncryptionCenc', 'CommonEncryptionCbcs', 'EnvelopeEncryption' :t...
6259902c1d351010ab8f4b2a
class C7200(Router): <NEW_LINE> <INDENT> def __init__(self, module, server, project, npe="npe-400"): <NEW_LINE> <INDENT> Router.__init__(self, module, server, project, platform="c7200") <NEW_LINE> c7200_settings = {"ram": 512, "nvram": 128, "disk0": 64, "disk1": 0, "npe": npe, "midplane": "vxr", "clock_divisor": 4, "se...
Dynamips c7200 router. :param module: parent module for this node :param server: GNS3 server instance :param project: Project instance
6259902ce76e3b2f99fd9a20
class CourseSchedule_207(object): <NEW_LINE> <INDENT> def canFinish(self, numCourses, prerequisites): <NEW_LINE> <INDENT> def dfs(courses): <NEW_LINE> <INDENT> if visited[courses] == -1: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> if visited[courses] == 1: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> vi...
if node v has not been visited, then mark it as 0. if node v is being visited, then mark it as -1. If we find a vertex marked as -1 in DFS, then their is a ring. if node v has been visited, then mark it as 1. If a vertex was marked as 1, then no ring contains v or its successors.
6259902c1f5feb6acb163c04
class TemplateConfiguration(RuleSet): <NEW_LINE> <INDENT> template = None <NEW_LINE> def __init__(self, name, base=None, source=None, template=None, description=None, **options): <NEW_LINE> <INDENT> if template: <NEW_LINE> <INDENT> if isinstance(template, str): <NEW_LINE> <INDENT> template = DocumentTemplate.from_strin...
Stores a configuration for a :class:`DocumentTemplate` Args: name (str): a label for this template configuration base (TemplateConfiguration): the template configuration to extend template (DocumentTemplateMeta or str): the document template to configure description (str): a short string descri...
6259902cd99f1b3c44d066b7
class RunningAverage(Metric): <NEW_LINE> <INDENT> def __init__(self, src=None, alpha=0.98, output_transform=None): <NEW_LINE> <INDENT> if not (isinstance(src, Metric) or src is None): <NEW_LINE> <INDENT> raise TypeError("Argument src should be a Metric or None") <NEW_LINE> <DEDENT> if not (0.0 < alpha <= 1.0): <NEW_LIN...
Compute running average of a metric or the output of process function. Args: src (Metric or None): input source: an instance of :class:`ignite.metrics.Metric` or None. The latter corresponds to `engine.state.output` which holds the output of process function. alpha (float, optional): running average de...
6259902c26238365f5fadb65
class FillingCirclesBar(ChargingBar): <NEW_LINE> <INDENT> def __init__(self, max_value: float = 100, current_value: float = 0, increment_by: float = 1, cap_value: bool = True): <NEW_LINE> <INDENT> super().__init__(max_value, current_value, increment_by, cap_value) <NEW_LINE> self._empty_character = '◯' <NEW_LINE> self....
Specialization of ChargingBar where the fill and empty characters are circles.
6259902c8a43f66fc4bf3198
class LogzMonitorResourceListResponse(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[LogzMonitorResource]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(LogzMonitorResourceListResponse, s...
Response of a list operation. :param value: Results of a list operation. :type value: list[~microsoft_logz.models.LogzMonitorResource] :param next_link: Link to the next set of results, if any. :type next_link: str
6259902c8a349b6b4368724e
class Baidu(Scraper): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Scraper.__init__(self) <NEW_LINE> self.url = 'https://www.baidu.com/s' <NEW_LINE> self.newsURL = 'http://news.baidu.com/ns' <NEW_LINE> self.defaultStart = 0 <NEW_LINE> self.queryKey = 'word' <NEW_LINE> self.startKey = 'pn' <NEW_LINE> self...
Scrapper class for Baidu
6259902c3eb6a72ae038b67a
class IdxWORD10R(db.Model): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> __tablename__ = 'idxWORD10R' <NEW_LINE> id_bibrec = db.Column(db.MediumInteger(8, unsigned=True), db.ForeignKey(Bibrec.id), primary_key=True) <NEW_LINE> termlist = db.Column(db.iLargeBinary, nullable=True) <...
Represents a IdxWORD10R record.
6259902c507cdc57c63a5dbd
class APISpecExt: <NEW_LINE> <INDENT> def __init__(self, app=None, **kwargs): <NEW_LINE> <INDENT> self.spec = None <NEW_LINE> if app is not None: <NEW_LINE> <INDENT> self.init_app(app, **kwargs) <NEW_LINE> <DEDENT> <DEDENT> def init_app(self, app, **kwargs): <NEW_LINE> <INDENT> app.config.setdefault("APISPEC_TITLE", "S...
Very simple and small extension to use apispec with this API as a flask extension
6259902c1f5feb6acb163c06
class Settings(PlexObject): <NEW_LINE> <INDENT> key = '/:/prefs' <NEW_LINE> def __init__(self, server, data, initpath=None): <NEW_LINE> <INDENT> self._settings = {} <NEW_LINE> super(Settings, self).__init__(server, data, initpath) <NEW_LINE> <DEDENT> def __getattr__(self, attr): <NEW_LINE> <INDENT> if attr.startswith('...
Container class for all settings. Allows getting and setting PlexServer settings. Attributes: key (str): '/:/prefs'
6259902cd164cc6175821f87
class CourseSubCategory(models.Model): <NEW_LINE> <INDENT> category = models.ForeignKey("CourseCategory",on_delete=models.CASCADE) <NEW_LINE> name = models.CharField(max_length=64, unique=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return "%s" % self.name <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> ...
课程子类, e.g python linux
6259902c1d351010ab8f4b2d
class RequestGroupActionCondition(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = "RequestGroupActionCondition" <NEW_LINE> def __init__(self, jsondict=None, strict=True, **kwargs): <NEW_LINE> <INDENT> self.expression = None <NEW_LINE> self.kind = None <NEW_LINE> super(RequestGroupActionCondition, ...
Whether or not the action is applicable. An expression that describes applicability criteria, or start/stop conditions for the action.
6259902cd53ae8145f919479
class TransferProcessor(ZipProcessor): <NEW_LINE> <INDENT> pdf_fieldnames=[] <NEW_LINE> def transform(self): <NEW_LINE> <INDENT> with ZipFile(self.fn, 'r') as zf: <NEW_LINE> <INDENT> namelist = zf.namelist() <NEW_LINE> <DEDENT> with StringIO(newline='') as f: <NEW_LINE> <INDENT> writer = csv.DictWriter(f, fieldnames=se...
Class for handling CommonApp transfer zip files, which all need an index file to be generated for DIP.
6259902c50485f2cf55dbf91
class RobotDelocalized(object): <NEW_LINE> <INDENT> __slots__ = ( '_robotID', ) <NEW_LINE> @property <NEW_LINE> def robotID(self): <NEW_LINE> <INDENT> return self._robotID <NEW_LINE> <DEDENT> @robotID.setter <NEW_LINE> def robotID(self, value): <NEW_LINE> <INDENT> self._robotID = msgbuffers.validate_integer( 'RobotDelo...
Generated message-passing message.
6259902cd6c5a102081e313d
class InverseFeature(TransformerMixin, BaseEstimator): <NEW_LINE> <INDENT> def __init__(self, classes): <NEW_LINE> <INDENT> self.classes = classes <NEW_LINE> <DEDENT> def fit(self, *args): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def transform(self, X, y=None): <NEW_LINE> <INDENT> from copy import deepcopy <...
Multiply one or more columns by -1. Parameters ---------- classes : the list of classes to be transformed (by name)
6259902c6fece00bbaccc9c5
class Source_Interface(object): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> @abstractmethod <NEW_LINE> def get_digest(self): raise NotImplementedError
Trying to make an interface for each source of digest
6259902c796e427e5384f793
class EventCounter: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.events_count = 0 <NEW_LINE> self.events_count_by_type = dict() <NEW_LINE> <DEDENT> def increment_counting(self, event): <NEW_LINE> <INDENT> assert isinstance(event, Event) <NEW_LINE> self.events_count += 1 <NEW_LINE> t = type(event.typ...
A counter of events.
6259902c30c21e258be99823
class TestTrustedSystemParanoia(TestTrustedSystemBaseClass): <NEW_LINE> <INDENT> def testProjectsWithoutNextActions(self): <NEW_LINE> <INDENT> self.addAnonymousFile([ "# Ordered project.", " @ First task (DONE 2013-05-02 20:59)", "", "# Another ordered project", " @ First task (DONE 2013-05-02 20:59)", " @ Second ta...
Test "paranoia" features. All the little things that might cause you to lose trust in the system.
6259902ce76e3b2f99fd9a24
class Product: <NEW_LINE> <INDENT> def getProductId(self): <NEW_LINE> <INDENT> return self.__productId <NEW_LINE> <DEDENT> """metodo que setea el id de un product""" <NEW_LINE> def setProductId(self, productId): <NEW_LINE> <INDENT> self.__productId = productId <NEW_LINE> <DEDENT> """metodo que obtiene el nombre de un p...
metodo que obtiene el id de un product
6259902cac7a0e7691f73500
class GalleryImageVersionPublishingProfile(GalleryArtifactPublishingProfileBase): <NEW_LINE> <INDENT> _validation = { 'published_date': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'target_regions': {'key': 'targetRegions', 'type': '[TargetRegion]'}, 'replica_count': {'key': 'replicaCount', 'type': 'int'}, 'excl...
The publishing profile of a gallery Image Version. Variables are only populated by the server, and will be ignored when sending a request. :ivar target_regions: The target regions where the Image Version is going to be replicated to. This property is updatable. :vartype target_regions: list[~azure.mgmt.compute.v2019...
6259902c5e10d32532ce410f