code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class BW2RegionalizationError(Exception): <NEW_LINE> <INDENT> pass
Base class for BW2 regionalization errors
625990577b25080760ed879f
class EmailWrapper(TimestampModel, UUIDModel, OrganizationMixin): <NEW_LINE> <INDENT> name = models.CharField('Name', max_length=50) <NEW_LINE> header = models.TextField('Header', validators=[validate_template]) <NEW_LINE> footer = models.TextField('Footer', validators=[validate_template]) <NEW_LINE> default = models.B...
Template for email
625990572ae34c7f260ac668
class DasResourceOptions(ResourceOptions): <NEW_LINE> <INDENT> serializer = DASSerializer() <NEW_LINE> capability = "feature" <NEW_LINE> chr_type = "Chromosome" <NEW_LINE> authority = "GRCh" <NEW_LINE> version = 37 <NEW_LINE> method = 'Default' <NEW_LINE> ftype = 'Default' <NEW_LINE> filename = 'placeholder.bed' <NEW_L...
Provides Human defaults for the metadata. User really needs to set these however.
6259905710dbd63aa1c7213a
class RequestContextSerializer(om_serializer.Serializer): <NEW_LINE> <INDENT> def __init__(self, base=None): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._base = base <NEW_LINE> <DEDENT> def serialize_entity(self, ctxt, entity): <NEW_LINE> <INDENT> if not self._base: <NEW_LINE> <INDENT> return entity <NEW_LIN...
Convert RPC common context into Neutron Context.
625990578a43f66fc4bf370f
class BatchApi(object): <NEW_LINE> <INDENT> def __init__(self, api_client=None): <NEW_LINE> <INDENT> if api_client is None: <NEW_LINE> <INDENT> api_client = ApiClient() <NEW_LINE> <DEDENT> self.api_client = api_client <NEW_LINE> <DEDENT> def get_api_group(self, **kwargs): <NEW_LINE> <INDENT> kwargs['_return_http_data_o...
NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually.
62599057462c4b4f79dbcf86
class TermValidator(object): <NEW_LINE> <INDENT> def set_context(self, serializer): <NEW_LINE> <INDENT> self.serializer = serializer <NEW_LINE> <DEDENT> def __call__(self, attrs): <NEW_LINE> <INDENT> model = self.serializer.Meta.model <NEW_LINE> instance = getattr(self.serializer, 'instance', None) <NEW_LINE> validated...
Term Validator
62599057d6c5a102081e36a1
class SelectField(Field): <NEW_LINE> <INDENT> type = 'select' <NEW_LINE> def __init__(self, label=None, validators=None, value=None, choices=None, **options): <NEW_LINE> <INDENT> self.choices = choices or tuple() <NEW_LINE> super(SelectField, self).__init__(label, validators=validators, value=value, **options) <NEW_LIN...
Field for dealing with select lists. The ``choices`` argument is used to specify the list of value-label pairs that are used to present the valid choices in the interface. The field value is then checked against the list of value and the parser validates whether the supplied value is among the valid ones. :Python typ...
6259905763d6d428bbee3d48
@python_2_unicode_compatible <NEW_LINE> class Cart(cart.Cart): <NEW_LINE> <INDENT> timestamp = None <NEW_LINE> billing_address = None <NEW_LINE> def __init__(self, session_cart, discounts=None): <NEW_LINE> <INDENT> super(Cart, self).__init__() <NEW_LINE> self.session_cart = session_cart <NEW_LINE> self.discounts = disc...
Contains cart items. Serialized instance of cart is saved into django session.
62599057d99f1b3c44d06c22
class SpinBox(InputType): <NEW_LINE> <INDENT> InputClass = QSpinBox <NEW_LINE> def __init__(self, minimum=0, maximum=100000000, step=1, lockable=False, locked=False, reversed_lock=False, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.minimum = minimum <NEW_LINE> self.maximum = maximum <NEW_LI...
spinbox integer number input
62599057009cb60464d02ab6
class GoodsListViewSet(mixins.ListModelMixin,viewsets.GenericViewSet,mixins.RetrieveModelMixin): <NEW_LINE> <INDENT> queryset = Goods.objects.all() <NEW_LINE> serializer_class = GoodsSerializer <NEW_LINE> paignation_class = GoodsPagination <NEW_LINE> filter_backends = (DjangoFilterBackend, filters.SearchFilter, filters...
商品列表页
6259905730dc7b76659a0d40
class EasyTestStream(CondStream): <NEW_LINE> <INDENT> def __init__(self, inputs, conditions, effects, test, **kwargs): <NEW_LINE> <INDENT> super(EasyTestStream, self).__init__(inputs, [], conditions, effects, cost=TEST_COST, **kwargs) <NEW_LINE> if not callable(test): <NEW_LINE> <INDENT> raise ValueError( 'EasyTestStre...
Conditional stream given by a test. Example for collision checking: .. code:: python POSE = EasyType() CollisionFree = EasyPredicate(POSE, POSE) P1, P1 = EasyParameter(POSE), EasyParameter(POSE) cs = EasyTestStream(inputs=[P1, P2], conditions=[], effects=[CollisionFree(P1, P2)], test=l...
625990578e71fb1e983bd04b
class MapTreeHead(object): <NEW_LINE> <INDENT> def __init__(self, mutation_log_tree_head, root_hash): <NEW_LINE> <INDENT> self._mutation_log_tree_head = mutation_log_tree_head <NEW_LINE> self._root_hash = root_hash <NEW_LINE> <DEDENT> def mutation_log_tree_head(self): <NEW_LINE> <INDENT> return self._mutation_log_tree_...
Class for Tree Hash as returned for a map with a given size.
62599057f7d966606f749379
class TargetEncoder(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, cols=None, dtype='float64', nocol=None): <NEW_LINE> <INDENT> if cols is not None and not isinstance(cols, (list, str)): <NEW_LINE> <INDENT> raise TypeError('cols must be None, or a list or a string') <NEW_LINE> <DEDENT> if isin...
Target encoder. Replaces category values in categorical column(s) with the mean target (dependent variable) value for each category.
62599057d7e4931a7ef3d601
class ThemeTaggable(object): <NEW_LINE> <INDENT> implements(IThemeTagging) <NEW_LINE> adapts(IThemeTaggable) <NEW_LINE> def __init__(self, context): <NEW_LINE> <INDENT> self.context = context <NEW_LINE> annotations = IAnnotations(context) <NEW_LINE> mapping = annotations.get(KEY) <NEW_LINE> if mapping is None: <NEW_LIN...
Theme Taggable
6259905745492302aabfda59
class TestBaseHandler(TestBase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUp(cls): <NEW_LINE> <INDENT> cls.test = cls.testbed.Testbed() <NEW_LINE> cls.test.activate() <NEW_LINE> cls.policy = cls.datastore.PseudoRandomHRConsistencyPolicy( probability=1) <NEW_LINE> cls.test.init_datastore_v3_stub(consistency_po...
SuperClass of the handler's tests.
6259905763b5f9789fe866f5
class GatekeeperSerialMixin(SingleObjectMixin, GatekeeperAuthenticationMixin): <NEW_LINE> <INDENT> def get_object(self, queryset=None): <NEW_LINE> <INDENT> if self.kwargs.get('pk') and self.request.user.is_staff: <NEW_LINE> <INDENT> result = get_object_or_404(self.model, id=self.kwargs.get('pk')) <NEW_LINE> <DEDENT> el...
This handles serial filtering. What I mean by this: Models using this mixin are assumed to only have one instance of the object "live" at any given time. Therefore the gatekeeper is used against all of the instances of the model to find the "right" instance to return. A good example of this is a ...
6259905721bff66bcd7241e7
class Message(object): <NEW_LINE> <INDENT> def __init__(self, message, sender, message_id =1000000, sequencer=None): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> self.sender = sender <NEW_LINE> self.message_id = message_id <NEW_LINE> self.sequencer = sequencer <NEW_LINE> <DEDENT> def __cmp__(self, other): <NEW...
Message class, need to maintain order in priority queue
62599057097d151d1a2c25ed
class CssefServer(object): <NEW_LINE> <INDENT> def __init__(self, config=None): <NEW_LINE> <INDENT> self.config = config <NEW_LINE> if not self.config: <NEW_LINE> <INDENT> self.config = Configuration() <NEW_LINE> <DEDENT> self.database_connection = None <NEW_LINE> self.rpc_methods = Methods() <NEW_LINE> self.endpoint_s...
The CSSEF Server object The server coordinates the tracking of configurations, plugins, endpoints, database connection and socket connection (via jsonrpcserver) for incoming requests.
625990574e4d562566373989
class ResourcesHandler(webapp2.RequestHandler): <NEW_LINE> <INDENT> def rebase_path(self, path): <NEW_LINE> <INDENT> return path <NEW_LINE> <DEDENT> def transform_resource(self, resource_str): <NEW_LINE> <INDENT> return resource_str <NEW_LINE> <DEDENT> def get(self): <NEW_LINE> <INDENT> path = self.rebase_path(self.req...
Content handler for resources associated with custom tags.
625990573c8af77a43b68a01
class About(View): <NEW_LINE> <INDENT> def dispatch_request(self): <NEW_LINE> <INDENT> return render_template("base/about.html")
Define class About with attribute(s) and method(s). Define view for about page. It defines: :attributes: | None :methods: | dispatch_request - Method view for about page
625990574e4d56256637398a
class TD_COAP_CORE_02 (CoAPTestcase): <NEW_LINE> <INDENT> pass
Identifier: TD_COAP_CORE_02 Objective: Perform DELETE transaction (CON mode) Configuration: CoAP_CFG_BASIC References: [COAP] 5.8.4,1.2,2.1,2.2,3.1 Pre-test conditions: • Server offers a /test resource that handles DELETE Test Sequence: Step Type Description 1 Stimulus Client is requested to send a DELETE requ...
62599057dd821e528d6da441
class ListStaffByStatusView(ListAPIView): <NEW_LINE> <INDENT> pagination_class = CustomPagination <NEW_LINE> permission_classes = (IsCrowdfitAuthenticated, IsCrowdfitCEOUser,) <NEW_LINE> parser_classes = (parsers.FormParser, parsers.MultiPartParser, parsers.JSONParser,) <NEW_LINE> renderer_classes = (renderers.JSONRend...
list all staff by status. department: All, except community
625990572ae34c7f260ac669
class PreviewFamilyVisibilityMode(Enum,IComparable,IFormattable,IConvertible): <NEW_LINE> <INDENT> def __eq__(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __format__(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __ge__(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __gt__...
Modes that control visibility of family elements depending on the currently applied Element Visibility Settings of a view. enum PreviewFamilyVisibilityMode,values: Off (0),On (1),Uncut (2)
6259905723849d37ff852647
class ApproximateQAgent(PacmanQAgent): <NEW_LINE> <INDENT> def __init__(self, extractor='IdentityExtractor', **args): <NEW_LINE> <INDENT> self.featExtractor = util.lookup(extractor, globals())() <NEW_LINE> PacmanQAgent.__init__(self, **args) <NEW_LINE> self.weights = util.Counter() <NEW_LINE> <DEDENT> def getWeights(se...
ApproximateQLearningAgent You should only have to overwrite getQValue and update. All other QLearningAgent functions should work as is.
62599057435de62698e9d386
class inviteIntoChat_result(object): <NEW_LINE> <INDENT> def __init__(self, success=None, e=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> self.e = e <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport)...
Attributes: - success - e
625990572ae34c7f260ac66a
class BaseTestQueue(unittest.TestCase): <NEW_LINE> <INDENT> nonexistant_keys = ('nonexistant key', ('nonexistant', 'key')) <NEW_LINE> priority_cb = None <NEW_LINE> chars = string.digits + string.ascii_letters <NEW_LINE> files = (lambda c: ['file%s' % c[x] for x in range(0, 6)])(chars) <NEW_LINE> uids = [('network%d' %...
Code common to all `FairQueue` tests.
625990570c0af96317c57821
class Evaluator(BaseEvaluator): <NEW_LINE> <INDENT> _writer_names = { 'summary': SummaryWriter, } <NEW_LINE> def evaluate(self, data): <NEW_LINE> <INDENT> for mention, ref, occs, pred in data.zip(scores=True): <NEW_LINE> <INDENT> i = np.argmax(pred) <NEW_LINE> id_ = data.labels[i] <NEW_LINE> score = pred[i] <NEW_LINE> ...
Count a selection of outcomes and compute accuracy.
625990572c8b7c6e89bd4d71
class Node: <NEW_LINE> <INDENT> def __init__(self, nodename, ip, description='', lastupd='19880000000000'): <NEW_LINE> <INDENT> self._name = nodename <NEW_LINE> self._ip = ip <NEW_LINE> self._description = description <NEW_LINE> self._lastupd = lastupd <NEW_LINE> self._execlist = [] <NEW_LINE> <DEDENT> def __str__(self...
A node representation. Attributes: name -- hostname, default = NOD
62599057004d5f362081faae
class ReducedUrlList(APIView): <NEW_LINE> <INDENT> permission_classes = (permissions.AllowAny,) <NEW_LINE> def perform_create(self, serializer): <NEW_LINE> <INDENT> logger.error("test") <NEW_LINE> serializer.save(owner=self.request.user) <NEW_LINE> <DEDENT> def get(self, request, format=None): <NEW_LINE> <INDENT> reduc...
List all ReducedUrls, or create a new ReducedUrl.
625990574a966d76dd5f0474
class partition_name_to_spec_args: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRING, 'part_name', None, None, ), ) <NEW_LINE> def __init__(self, part_name=None,): <NEW_LINE> <INDENT> self.part_name = part_name <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol...
Attributes: - part_name
625990573cc13d1c6d466cc2
class MultiHeadAttention(nn.Module): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> super(MultiHeadAttention, self).__init__() <NEW_LINE> self.hidden_size = config.hidden_size <NEW_LINE> self.num_heads = config.num_heads <NEW_LINE> if self.hidden_size % self.num_heads != 0: <NEW_LINE> <INDENT> rais...
Multi-Head Attention args: config: TransformerConfig
6259905716aa5153ce401a67
class Document(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swaggerTypes = { 'Links': 'list[Link]', 'FileName': 'str', 'SourceFormat': 'DocumentFormat', 'IsEncrypted': 'bool', 'IsSigned': 'bool', 'DocumentProperties': 'DocumentProperties' } <NEW_LINE> self.attributeMap = { 'Links': 'Links',...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
625990577047854f46340942
class WikipediaEn(Platform): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.platformName = "Wikipedia (en)" <NEW_LINE> self.parameterName = "wikipedia" <NEW_LINE> self.tags = ["social", "news"] <NEW_LINE> self.isValidMode = {} <NEW_LINE> self.isValidMode["phonefy"] = False <NEW_LINE> self.isValidMode[...
A <Platform> object for WikipediaEn.
62599057be8e80087fbc0606
class Priority(models.Model): <NEW_LINE> <INDENT> _name = 'anytracker.priority' <NEW_LINE> _description = 'Priority of Ticket by method' <NEW_LINE> _order = 'method_id, seq' <NEW_LINE> name = fields.Char( 'Priority name', required=True, size=64, translate=True) <NEW_LINE> description = fields.Text( 'Priority descriptio...
Priorities represent the timeframe to do tasks. It can represent timeboxes, deadlines, milestones TODO : add milestone
625990577cff6e4e811b6fc6
class MAC(Pattern): <NEW_LINE> <INDENT> pattern = compile(r'^(?:(?:[0-9a-fA-F]{1,2})([:.-])(?:[0-9a-fA-F]{1,2})\1(?:[0-9a-fA-F]{1,2})\1(?:[0-9a-fA-F]{1,2})\1(?:[0-9a-fA-F]{1,2})\1(?:[0-9a-fA-F]{1,2}))$')
A Media Access Control (MAC) address. Also referred to as a "Wi-Fi Address" or "Hardware ID".
625990573eb6a72ae038bbe3
class AdvancedSearchTSVView(FormView): <NEW_LINE> <INDENT> form_class = AdvSearchDownloadForm <NEW_LINE> header_template = "DataRepo/search/downloads/download_header.tsv" <NEW_LINE> row_template = "DataRepo/search/downloads/download_row.tsv" <NEW_LINE> content_type = "application/text" <NEW_LINE> success_url = "" <NEW_...
This is the download view for the advanced search page.
625990573617ad0b5ee076cd
@six.add_metaclass(abc.ABCMeta) <NEW_LINE> class ModuleDriver(object): <NEW_LINE> <INDENT> def get_type(self): <NEW_LINE> <INDENT> return self.get_name() <NEW_LINE> <DEDENT> def get_name(self): <NEW_LINE> <INDENT> return self.__class__.__name__.lower().replace( 'driver', '').replace(' ', '_') <NEW_LINE> <DEDENT> @abc.a...
Base class that defines the contract for module drivers. Note that you don't have to derive from this class to have a valid driver; it is purely a convenience.
62599057d99f1b3c44d06c24
class TransformedSeriesTest(test.TestCase): <NEW_LINE> <INDENT> def test_repr(self): <NEW_LINE> <INDENT> col = learn.TransformedSeries( [mocks.MockSeries("foobar", [])], mocks.MockTwoOutputTransform("thb", "nth", "snt"), "qux") <NEW_LINE> expected = ("MockTransform({'param_one': 'thb', 'param_three': 'snt', " "'param_t...
Test of `TransformedSeries`.
625990578e71fb1e983bd04d
class NuagePoints: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def fit(self, X, y=None): <NEW_LINE> <INDENT> self.nuage = X <NEW_LINE> self.labels = y <NEW_LINE> <DEDENT> def kneighbors(self, X, n_neighbors=1, return_distance=True): <NEW_LINE> <INDENT> if n_neighbors != 1: <NEW_...
Définit une classe de nuage de points. On suppose qu'ils sont définis par une matrice, chaque ligne est un élément.
62599057dd821e528d6da442
class LinfProjectedGradientDescentAttack(LinfBaseGradientDescent): <NEW_LINE> <INDENT> def __init__( self, *, rel_stepsize: float = 0.01 / 0.3, abs_stepsize: Optional[float] = None, steps: int = 40, random_start: bool = True, ) -> None: <NEW_LINE> <INDENT> super().__init__( rel_stepsize=rel_stepsize, abs_stepsize=abs_s...
Linf Projected Gradient Descent Args: rel_stepsize: Stepsize relative to epsilon (defaults to 0.01 / 0.3). abs_stepsize: If given, it takes precedence over rel_stepsize. steps : Number of update steps to perform. random_start : Whether the perturbation is initialized randomly or starts at zero.
6259905701c39578d7f141f9
class Node( object ): <NEW_LINE> <INDENT> __metaclass__ = DynamicProps <NEW_LINE> def __init__( self, name, rwAttrs=None, roAttrs=None ): <NEW_LINE> <INDENT> self.makeProperty( "name", name, True ) <NEW_LINE> self.makeProperty( "visited", False ) <NEW_LINE> self.__edges = list() <NEW_LINE> rwAttrs = rwAttrs if type(rwA...
.. class:: Node graph node
625990578e7ae83300eea611
class Slurm(Scheduler): <NEW_LINE> <INDENT> _vardict = {"cores":"core", "nodes":"nodes", "cpus_per_task":"cpus_per_task"} <NEW_LINE> def initialize(self): <NEW_LINE> <INDENT> self.get_vardict() <NEW_LINE> <DEDENT> def get_script(self): <NEW_LINE> <INDENT> lines = []; app = lines.append <NEW_LINE> app('#!/bin/bash -l\n'...
Class to submit jobs through the Slurm scheduler ``_vardict`` states the default assignement of the nodes and cores variables from the schduler class to the variables needed in this class
6259905723849d37ff852649
class URLTest(TestCase): <NEW_LINE> <INDENT> def test_unescape(self): <NEW_LINE> <INDENT> self.assertEqual(unescape(u'foo&amp;bar'), u'foo&bar') <NEW_LINE> self.assertEqual(unescape(u'foo&#160;bar'), u'foo\xa0bar') <NEW_LINE> self.assertEqual(unescape(u'&quot;foo&quot;'), u'"foo"') <NEW_LINE> <DEDENT> def test_normalis...
Tests for URL utility functions.
62599057379a373c97d9a5a9
class TaskWindowLayout(LayoutContainer): <NEW_LINE> <INDENT> active_task = Str <NEW_LINE> items = List(Either(Str, TaskLayout), pretty_skip=True) <NEW_LINE> position = Tuple(-1, -1) <NEW_LINE> size = Tuple(800, 600) <NEW_LINE> def get_active_task(self): <NEW_LINE> <INDENT> if self.active_task: <NEW_LINE> <INDENT> retur...
The layout of a TaskWindow.
625990578e7ae83300eea612
class UserQuestSetAction(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = "User Quest Set Action" <NEW_LINE> verbose_name_plural = "User Quest Set Actions" <NEW_LINE> unique_together = ("user", "questset") <NEW_LINE> <DEDENT> user = models.ForeignKey(User, db_index=True) <NEW_LINE> ques...
Tracks the progress of a given User for a given Quest Set
6259905729b78933be26ab87
class ReversibleSequence(Module): <NEW_LINE> <INDENT> def __init__(self, blocks, rev_thres = 0, send_signal = False): <NEW_LINE> <INDENT> self.rev_thres = rev_thres <NEW_LINE> self.blocks = nn.ModuleList([ReversibleBlock(f, g, depth, send_signal) for depth, (f, g) in enumerate(blocks)]) <NEW_LINE> self.irrev_blocks = n...
Stack of ReversibleBlocks constructed from blocks.Applies ReversibleBlocks if sequence length is > rev_thres or else IrreversibleBlocks.
625990571f037a2d8b9e532e
class User(AbstractUser): <NEW_LINE> <INDENT> name = CharField(_("Name of User"), blank=True, max_length=255) <NEW_LINE> def get_absolute_url(self): <NEW_LINE> <INDENT> return reverse("users:detail", kwargs={"username": self.username})
Default user for url-tweets.
6259905791af0d3eaad3b3ad
@final <NEW_LINE> class PytestUnhandledCoroutineWarning(PytestWarning): <NEW_LINE> <INDENT> __module__ = "pytest"
Warning emitted for an unhandled coroutine. A coroutine was encountered when collecting test functions, but was not handled by any async-aware plugin. Coroutine test functions are not natively supported.
625990577047854f46340944
class ModifiedAccessConditions(Model): <NEW_LINE> <INDENT> _attribute_map = { 'if_modified_since': {'key': '', 'type': 'rfc-1123'}, 'if_unmodified_since': {'key': '', 'type': 'rfc-1123'}, 'if_match': {'key': '', 'type': 'str'}, 'if_none_match': {'key': '', 'type': 'str'}, } <NEW_LINE> def __init__(self, *, if_modified_...
Additional parameters for a set of operations. :param if_modified_since: Specify this header value to operate only on a blob if it has been modified since the specified date/time. :type if_modified_since: datetime :param if_unmodified_since: Specify this header value to operate only on a blob if it has not been modi...
6259905716aa5153ce401a69
class QQPDOffsetDisplay(QOffsetDisplay): <NEW_LINE> <INDENT> def __init__(self, q_label = None, **kwds): <NEW_LINE> <INDENT> super().__init__(**kwds) <NEW_LINE> self.q_label = q_label <NEW_LINE> self.update_timer = QtCore.QTimer(self) <NEW_LINE> self.update_timer.setInterval(100) <NEW_LINE> self.update_timer.timeout.co...
Focus lock offset display. Converts to nanometers.
62599057be8e80087fbc0608
class MatchingContainers(object): <NEW_LINE> <INDENT> def __init__(self, label_value): <NEW_LINE> <INDENT> self.label_value = label_value <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> filters = {'status': 'running', 'label': 'org.eff.certbot.cert_cns'} <NEW_LINE> try: <NEW_LINE> <INDENT> client = docker....
Iterable for live Docker containers matching filter label value.
625990574428ac0f6e659ac1
class ShowChildren(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "object.show_children" <NEW_LINE> bl_label = "Show all children of active object" <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> active_ob = bpy.context.object <NEW_LINE> if bpy.context.scene.select_recursive: <NEW_LINE> <INDENT> childr...
Show all children of active object
62599057507cdc57c63a632b
@dataclass(frozen=True) <NEW_LINE> class SbdWithDevicesNotUsedCannotSetDevice(ReportItemMessage): <NEW_LINE> <INDENT> node: str <NEW_LINE> _code = codes.SBD_WITH_DEVICES_NOT_USED_CANNOT_SET_DEVICE <NEW_LINE> @property <NEW_LINE> def message(self) -> str: <NEW_LINE> <INDENT> return ( "Cluster is not configured to use SB...
The cluster is not using SBD with devices, cannot specify a device. node -- node name
6259905721bff66bcd7241ea
class FactorizedMSTPostProcessor(PostProcessor): <NEW_LINE> <INDENT> def __init__(self, annotation_ids, vocabs): <NEW_LINE> <INDENT> super(FactorizedMSTPostProcessor, self).__init__(annotation_ids, vocabs) <NEW_LINE> assert len(self.annotation_ids) == 2 <NEW_LINE> self.heads_id, self.labels_id = self.annotation_ids <NE...
Post-processor to assemble a basic dependency tree from a logits tensor of arc scores (output of ArcScorer) by using the Chu-Liu/Edmonds MST algorithm and only keeping those entries in the sentence's DependencyMatrix which correspond to tree edges. (This is the "usual" method for graph-based parsing of syntactic depen...
6259905799cbb53fe6832465
class User(UserMixin, SurrogatePK, Model): <NEW_LINE> <INDENT> __tablename__ = 'users' <NEW_LINE> username = Column(db.Unicode(128), unique=True, nullable=False) <NEW_LINE> email = Column(db.String(255), unique=False, nullable=False, index=True) <NEW_LINE> email_verified = Column(db.Boolean, nullable=False, default=Fal...
A user of the app.
6259905745492302aabfda5e
class stop_after_delay(stop_base): <NEW_LINE> <INDENT> def __init__(self, max_delay): <NEW_LINE> <INDENT> self.max_delay = max_delay <NEW_LINE> <DEDENT> def __call__(self, previous_attempt_number, delay_since_first_attempt): <NEW_LINE> <INDENT> return delay_since_first_attempt >= self.max_delay
Stop when the time from the first attempt >= limit.
62599057b57a9660fecd3001
class TestSequence(unittest.TestCase): <NEW_LINE> <INDENT> def runTest(self): <NEW_LINE> <INDENT> rptable = RPTable() <NEW_LINE> oh_init_rpt(rptable) <NEW_LINE> for rpte in rptentries: <NEW_LINE> <INDENT> self.assertEqual(oh_add_resource(rptable, rpte, None, 0), 0) <NEW_LINE> <DEDENT> self.assertEqual(oh_add_rdr(rptabl...
runTest : Starts with an RPTable of 10 resources, adds 1 rdr to first resource. Fetches rdr by record id and compares with original. A failed comparison means the test failed, otherwise the test passed. Return value: 0 on success, 1 on failure
62599057dd821e528d6da443
class FileslistAndLasteditInfoFunctions(): <NEW_LINE> <INDENT> def addtolist(self, path, list, textlist): <NEW_LINE> <INDENT> if os.path.isdir(path): <NEW_LINE> <INDENT> for root, dirs, files in os.walk(path): <NEW_LINE> <INDENT> for filename in files: <NEW_LINE> <INDENT> pathandname = root + filename <NEW_LINE> try: <...
liefert die dateien eines ordners als liste und setzt oder liest last_edited (variabel des zuletzt geänderten datensatzes) um (wenn superuser) nach dem bearbeiten dorthin zu scrollen
625990572ae34c7f260ac66d
@attrs(**ATTRSCONFIG) <NEW_LINE> class PrivateDnsNamespace(Resource): <NEW_LINE> <INDENT> RESOURCE_TYPE = "AWS::ServiceDiscovery::PrivateDnsNamespace" <NEW_LINE> Properties: PrivateDnsNamespaceProperties = attrib( factory=PrivateDnsNamespaceProperties, converter=create_object_converter(PrivateDnsNamespaceProperties), )
A Private Dns Namespace for ServiceDiscovery. See Also: `AWS Cloud Formation documentation for PrivateDnsNamespace <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-privatednsnamespace.html>`_
6259905707f4c71912bb09c1
class Program(AST): <NEW_LINE> <INDENT> def __init__(self, declarations=None, main=None): <NEW_LINE> <INDENT> self.declarations = declarations or [] <NEW_LINE> self.main = main <NEW_LINE> <DEDENT> def evaluate(self): <NEW_LINE> <INDENT> self.declarations.evaluate() <NEW_LINE> self.main.evaluate() <NEW_LINE> <DEDENT> de...
The AST node that represents the PROGRAM block The PROGRAM block in Caspal consists of: - variable declarations - the main block
625990577b25080760ed87a2
class MiniModel(keras.Model): <NEW_LINE> <INDENT> def __init__(self, generate_infinity=False): <NEW_LINE> <INDENT> super(MiniModel, self).__init__(name="") <NEW_LINE> self._generate_infinity = generate_infinity <NEW_LINE> self.fc = keras.layers.Dense( 1, kernel_initializer="ones", bias_initializer="ones", activation="l...
Minimal subclassed Keras model.
6259905776e4537e8c3f0b13
class AsyncDropWhile: <NEW_LINE> <INDENT> def __init__(self, predicate, iterable): <NEW_LINE> <INDENT> self._predicate = _async_callable(predicate) <NEW_LINE> self._iterable = iterable <NEW_LINE> self._initialized = False <NEW_LINE> self._found = False <NEW_LINE> <DEDENT> async def __aiter__(self): <NEW_LINE> <INDENT> ...
Async version of the dropwhile iterable.
62599057435de62698e9d38a
class User(UserMixin): <NEW_LINE> <INDENT> def check_user(self, username, password): <NEW_LINE> <INDENT> ht = HtpasswdFile(HTPASSWD_FILE) <NEW_LINE> if username in ht.users(): <NEW_LINE> <INDENT> if ht.check_password(username, password): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> <DEDENT> return False <NEW_LIN...
Contains all neede information to validate and authenticate a user in the system using the htpasswd file.
62599057fff4ab517ebcedab
class FiniteDifferenceDynamics(Dynamics): <NEW_LINE> <INDENT> def __init__(self, f, state_dimension, control_dimension, x_eps=None, u_eps=None): <NEW_LINE> <INDENT> self.f_ = f <NEW_LINE> self.state_dimension_ = state_dimension <NEW_LINE> self.control_dimension_ = control_dimension <NEW_LINE> self.x_eps_ = x_eps if x_e...
Finite difference approximated dynamics model
625990571f037a2d8b9e532f
class MyInt(int): <NEW_LINE> <INDENT> def __eq__(self, value): <NEW_LINE> <INDENT> return super().__ne__(value) <NEW_LINE> <DEDENT> def __ne__(self, value): <NEW_LINE> <INDENT> return super().__eq__(value)
MyInt is a rebel. MyInt has == and != operators inverted.
62599057e64d504609df9e93
@override_settings(KEGBOT_BACKEND="pykeg.core.testutils.TestBackend") <NEW_LINE> class BackendsFixtureTestCase(TransactionTestCase): <NEW_LINE> <INDENT> fixtures = ["testdata/full_demo_site.json"] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.backend = get_kegbot_backend() <NEW_LINE> <DEDENT> def test_delete_keg...
Test backened using fixture (demo) data.
62599057498bea3a75a590ae
class VirtualAdversarialAttack(BatchAttack): <NEW_LINE> <INDENT> def _clip_perturbation(self, a, perturbation, epsilon): <NEW_LINE> <INDENT> norm = np.sqrt(np.mean(np.square(perturbation))) <NEW_LINE> norm = max(1e-12, norm) <NEW_LINE> min_, max_ = a.bounds() <NEW_LINE> s = max_ - min_ <NEW_LINE> factor = min(1, epsilo...
Calculate an untargeted adversarial perturbation by performing a approximated second order optimization step on the KL divergence between the unperturbed predictions and the predictions for the adversarial perturbation. This attack was introduced in [1]_. References ---------- .. [1] Takeru Miyato, Shin-ichi Maeda, Ma...
625990578a43f66fc4bf3715
class AddressSchema(Schema): <NEW_LINE> <INDENT> identifierList = fields.List(fields.Str(), many=True, allow_none=True) <NEW_LINE> addressId = fields.UUID() <NEW_LINE> addressTypeList = fields.List(fields.Str(), many=True, allow_none=True) <NEW_LINE> addressName = fields.Str() <NEW_LINE> label = fields.Str() <NEW_LINE>...
The equivalent Schema of Address Class
625990573617ad0b5ee076d1
class TokenResponse(object): <NEW_LINE> <INDENT> def __init__(self, response): <NEW_LINE> <INDENT> self.response = response <NEW_LINE> try: <NEW_LINE> <INDENT> self.access_token = response.json.get("access_token") <NEW_LINE> self.refresh_token = response.json.get("refresh_token") <NEW_LINE> self.id_token = response.jso...
Note that the ID token is not part of the OAuth2 spec, but is part of the OIDC core spec and therefore this implementation. Attributes: access_token (dict) refresh_token (dict) id_token (dict)
62599057009cb60464d02abc
class PermissionDeniedError(Exception): <NEW_LINE> <INDENT> def __init__(self, username, pathsAndOperations): <NEW_LINE> <INDENT> self.username = username <NEW_LINE> self.pathsAndOperations = pathsAndOperations <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> pathsAndOperations = ['%s on %r' % (operation, pat...
Raised when an attempt to perform an unauthorized operation is made.
625990578da39b475be04774
class PTBAxesInputException(Exception): <NEW_LINE> <INDENT> pass
Exception for PTBAxes input
6259905745492302aabfda5f
class DiscNumberTagFormatter(NumberTagFormatter): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> TagFormatter.__init__(self, 'discnumber')
A formatter for the discnumber of a track
62599057097d151d1a2c25f3
class AutomationActions(BaseApi): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(AutomationActions, self).__init__(*args, **kwargs) <NEW_LINE> self.endpoint = 'automations' <NEW_LINE> self.workflow_id = None <NEW_LINE> <DEDENT> def pause(self, workflow_id): <NEW_LINE> <INDENT> self.w...
Actions for the Automations endpoint.
62599057507cdc57c63a632d
class ILoginForm(Interface): <NEW_LINE> <INDENT> login = schema.BytesLine(title=u'Username', required=True) <NEW_LINE> password = schema.Password(title=u'Password', required=True)
Our login form implements login and password schema fields.
6259905745492302aabfda60
class ChartLine(chart.Chart): <NEW_LINE> <INDENT> def __init__(self, options=None): <NEW_LINE> <INDENT> super(ChartLine, self).__init__() <NEW_LINE> if options is None: <NEW_LINE> <INDENT> options = {} <NEW_LINE> <DEDENT> self.default_marker = {'type': 'none'} <NEW_LINE> self.smooth_allowed = True <NEW_LINE> self.label...
A class for writing the Excel XLSX Line charts.
62599057e76e3b2f99fd9f87
class GeometryMap: <NEW_LINE> <INDENT> def __init__(self, syms, exprs): <NEW_LINE> <INDENT> from sympy import Array, oo <NEW_LINE> if not isinstance(exprs, list) and not isinstance(exprs, Array): <NEW_LINE> <INDENT> raise ValueError("The ctor arg of GeometryMap -- exprs -- should be a list of sympy expressions.") <NEW_...
Base class for geometry map.
625990574e4d56256637398f
class registarPage(BasePage): <NEW_LINE> <INDENT> url = "http://39.98.138.157/shopxo/index.php?s=/index/user/reginfo.html" <NEW_LINE> user =(By.NAME,"accounts") <NEW_LINE> pwd = (By.NAME,"pwd") <NEW_LINE> xuyi =(By.XPATH,'/html/body/div[4]/div/div/div/div[2]/div/div/div[1]/form/div[3]/label/span/i[2]') <NEW_LINE> regis...
registarPage的核心业务是注册流程的实现 1.登陆关联的元素(element)获取 2.基于元素实现的方式
625990572ae34c7f260ac66f
class GoogleWebSearchPage(Top25Page): <NEW_LINE> <INDENT> def __init__(self, page_set): <NEW_LINE> <INDENT> super(GoogleWebSearchPage, self).__init__( url='https://www.google.com/#hl=en&q=barack+obama', page_set=page_set) <NEW_LINE> <DEDENT> def RunNavigateSteps(self, action_runner): <NEW_LINE> <INDENT> action_runner.N...
Why: top google property; a google tab is often open
625990574e4d562566373990
class TestGuestPlayable(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 testGuestPlayable(self): <NEW_LINE> <INDENT> pass
GuestPlayable unit test stubs
6259905723e79379d538da85
class CorrectAnswer(object): <NEW_LINE> <INDENT> def __init__(self, answer): <NEW_LINE> <INDENT> self.answer = answer <NEW_LINE> <DEDENT> def __call__(self, form, field): <NEW_LINE> <INDENT> error_messages = ['Sorry, that\'s not the correct answer.', 'Try that again...', 'Incorrect answer.', 'Please check this answer.....
Custom validator for WTForms to check if the correct answer was submitted
625990578e71fb1e983bd052
@pytest.mark.django_db <NEW_LINE> class TestPaymentMethod: <NEW_LINE> <INDENT> @pytest.mark.django_db <NEW_LINE> def test_payment_method_fees(self): <NEW_LINE> <INDENT> b = BasePaymentMethod({ 'name': 'testpaymentmethod', 'fee_per_transaction': Decimal('0.30'), 'fee_percent': Decimal('2.9'), 'display_name': 'test_displ...
Base class for all the payment method.
62599057b7558d58954649ef
class HyphenSeparatedParticleAnalyzer(AnalogyAnalizerUnit): <NEW_LINE> <INDENT> ESTIMATE_DECAY = 0.9 <NEW_LINE> PARTICLES_AFTER_HYPHEN = [ "-то", "-ка", "-таки", "-де", "-тко", "-тка", "-с", "-ста", ] <NEW_LINE> def parse(self, word, word_lower, seen_parses): <NEW_LINE> <INDENT> result = [] <NEW_LINE> for unsuffixed_wo...
Parse the word by analyzing it without a particle after a hyphen. Example: смотри-ка -> смотри + "-ка". .. note:: This analyzer doesn't remove particles from the result so for normalization you may need to handle particles at tokenization level.
62599057dc8b845886d54b4f
class OrderInfo(BaseModel): <NEW_LINE> <INDENT> status_choices = ( (0, '未支付'), (1, '已支付'), (2, '待发货'), (3, '已发货'), (4, '已完成'), (5, '待退款'), (6, '已关闭'), (7, '退款成功') ) <NEW_LINE> wx_user = models.ForeignKey(WxUser,on_delete=models.CASCADE, verbose_name='微信用户') <NEW_LINE> address = models.CharField(max_length=255,null=True...
订单表
62599057435de62698e9d38d
class Trip(object): <NEW_LINE> <INDENT> def __init__(self, trip): <NEW_LINE> <INDENT> items = trip.split('-') <NEW_LINE> self.startFloor = int(items[0]) <NEW_LINE> self.endFloor = int(items[1]) <NEW_LINE> if self.startFloor < self.endFloor: <NEW_LINE> <INDENT> self.direction = 'up' <NEW_LINE> <DEDENT> else: <NEW_LINE> ...
represents one elevator trip code from https://raw.githubusercontent.com/mxvanzant/pyelevator/master/elevator.py
62599057f7d966606f74937d
class MountPointTest(shared_test_lib.BaseTestCase): <NEW_LINE> <INDENT> def testGetAttributeNames(self): <NEW_LINE> <INDENT> attribute_container = storage_media.MountPoint() <NEW_LINE> expected_attribute_names = ['mount_path', 'path_specification'] <NEW_LINE> attribute_names = sorted(attribute_container.GetAttributeNam...
Tests for the mount point attribute container.
625990574428ac0f6e659ac5
class OffPolicyBuffer: <NEW_LINE> <INDENT> def __init__(self, buffer_size=int(1e6), epoch_size=5000, batch_size=100): <NEW_LINE> <INDENT> self.buffer_size, self.path_start_idx = buffer_size, 0 <NEW_LINE> self.batch_size = batch_size <NEW_LINE> self.epoch_size = epoch_size or buffer_size <NEW_LINE> if buffer_size % self...
Stores episode experience (rewards, observations, actions, etc), calculates the advantage and rewards-to-go at the end of trajectories. These stored values can then be used for training by the agent.
6259905721bff66bcd7241ee
class ConsistencyCheck : <NEW_LINE> <INDENT> def __init__(self, checks = list()): <NEW_LINE> <INDENT> self.checks = checks; <NEW_LINE> <DEDENT> def __call__(self, paver) : <NEW_LINE> <INDENT> count = 0; <NEW_LINE> for sr in paver.solvedata : <NEW_LINE> <INDENT> for i in paver.instancedata.index : <NEW_LINE> <INDENT> pa...
Methods to check consistency of solver outcomes. Stores a list of checks that can be executed to check a particular solver run or that crosscheck all solver outcomes for a particular instance.
62599057d7e4931a7ef3d609
class Repeat(ComplexNode): <NEW_LINE> <INDENT> def __init__(self, count, children=[]): <NEW_LINE> <INDENT> ComplexNode.__init__(self, children) <NEW_LINE> self.count = Expr(count) <NEW_LINE> <DEDENT> def __nonzero__(self): <NEW_LINE> <INDENT> return bool(self.count) and len(self) > 0 <NEW_LINE> <DEDENT> @property <NEW_...
Repeat node. Repeat[count; ...] executes its body count times. Count can be an expression, but only evaluated once before the loop.
6259905707f4c71912bb09c5
class NNCfg(object): <NEW_LINE> <INDENT> def __init__(self, optimizer=None, metrics=None): <NEW_LINE> <INDENT> self.loss_fn = 'mean_squared_error' <NEW_LINE> self.optimizer = 'adadelta' if optimizer is None else optimizer <NEW_LINE> self.pdb_batch_size = 1 <NEW_LINE> self.pdb_shuffle = True <NEW_LINE> self.steps_per_ep...
NNCfg describes base model configuration for neural network.
6259905701c39578d7f141fc
class ServiceStateTransitionsEnum(EnumDefinitionImpl): <NEW_LINE> <INDENT> correct_service = PermissibleValue(text="correct_service", description="A correct service is delivered when the observed behavior matches those of the corresponding function described in the specification.") <NEW_LINE> service_failure = Permissi...
System behavior represented by a sequence of internal/external states.
6259905724f1403a92686394
class PyMutTestGeom: <NEW_LINE> <INDENT> def __init__(self, geom_type, coords_fcn=random_list, subtype=tuple, **kwargs): <NEW_LINE> <INDENT> self.geom_type = geom_type <NEW_LINE> self.subtype = subtype <NEW_LINE> self.coords_fcn = coords_fcn <NEW_LINE> self.fcn_args = kwargs <NEW_LINE> self.coords = self.coords_f...
The Test Geometry class container.
6259905773bcbd0ca4bcb81d
class SuitabilityCircumstancesDetailsForm(NannyForm): <NEW_LINE> <INDENT> field_label_classes = "form-label-bold" <NEW_LINE> error_summary_title = "There was a problem" <NEW_LINE> error_summary_template_name = "standard-error-summary.html" <NEW_LINE> auto_replace_widgets = True <NEW_LINE> suitability_circumstances_deta...
GOV.UK form for the suitability details page
62599057adb09d7d5dc0baf5
class executionManager: <NEW_LINE> <INDENT> def __init__(self, server_manager, system_manager, test_manager , executor_type, variables, matrix_manager, xtrabackup_manager): <NEW_LINE> <INDENT> self.server_manager = server_manager <NEW_LINE> self.system_manager = system_manager <NEW_LINE> self.matrix_manager = matrix_ma...
Manages the mode-specific test-executors and serves as an intermediary between the executors and the other management code (system, server, test)
62599057be383301e0254d52
@implements('FIFOReliableBroadcast') <NEW_LINE> @uses('ReliableBroadcast', 'rb') <NEW_LINE> class BroadcastWithSequenceNumber(ABC): <NEW_LINE> <INDENT> def upon_Init(self): <NEW_LINE> <INDENT> self.lsn = itertools.count(0) <NEW_LINE> self.pending = defaultdict(dict) <NEW_LINE> self.next = defaultdict(int) <NEW_LINE> <D...
Algorithm 3.12 FIFO delivery: if some process broadcasts message m1 before it broadcasts message m2, then no correct process delivers m2 unless it has already delivered m1.
6259905732920d7e50bc75d2
class Sink(Component): <NEW_LINE> <INDENT> bogus_path = Str('', iotype='in') <NEW_LINE> text_data = Str(iotype='out') <NEW_LINE> binary_data = Array(dtype='d', iotype='out') <NEW_LINE> text_file = File(iotype='in') <NEW_LINE> binary_file = File(iotype='in') <NEW_LINE> def execute(self): <NEW_LINE> <INDENT> if self.bogu...
Consumes files.
62599057a79ad1619776b583
class GobjectIntrospection(Package): <NEW_LINE> <INDENT> homepage = "https://wiki.gnome.org/Projects/GObjectIntrospection" <NEW_LINE> url = "http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/1.49/gobject-introspection-1.49.2.tar.xz" <NEW_LINE> version('1.49.2', 'c47a76b05b2d8438089f519922180747') <NEW_L...
The GObject Introspection is used to describe the program APIs and collect them in a uniform, machine readable format.Cairo is a 2D graphics library with support for multiple output
62599057435de62698e9d38f
class CreativeWork(Thing): <NEW_LINE> <INDENT> _validation = { '_type': {'required': True}, 'id': {'readonly': True}, 'web_search_url': {'readonly': True}, 'name': {'readonly': True}, 'url': {'readonly': True}, 'image': {'readonly': True}, 'description': {'readonly': True}, 'alternate_name': {'readonly': True}, 'bing_i...
CreativeWork. You probably want to use the sub-classes and not this class directly. Known sub-classes are: MediaObject Variables are only populated by the server, and will be ignored when sending a request. :param _type: Constant filled by server. :type _type: str :ivar id: A String identifier. :vartype id: str :iva...
6259905707d97122c4218236
class Human(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.player = None <NEW_LINE> <DEDENT> def set_player_ind(self, p): <NEW_LINE> <INDENT> self.player = p <NEW_LINE> <DEDENT> def get_action(self, board): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> location = input("Your move: ") <NEW_LINE...
human player
6259905799cbb53fe683246a
class PDFDisplay(BoxLayout): <NEW_LINE> <INDENT> def __init__(self, controller, template, display_type, **kwargs): <NEW_LINE> <INDENT> super(PDFDisplay, self).__init__(**kwargs) <NEW_LINE> self.controller = controller <NEW_LINE> self.template = template <NEW_LINE> self.pdf_canvas = PDFCanvas(controller, display_type) <...
PDFDisplay class handles displaying PDF as images functionalities on GUI Attributes: boxes: a list of rectangles objects drawn controller: the overall layout fig, ax: matplotlib object pdf_canvas: kivy backend Figure Canvas object templates_text_input: see main.kv; a boxlayout that has all text bo...
6259905745492302aabfda63
class Absolute(Container): <NEW_LINE> <INDENT> _command = "\\absolute"
Absolute block.
62599057507cdc57c63a6331