code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class DHOpTimerService(UInt8Service): <NEW_LINE> <INDENT> unit = 'Hr' <NEW_LINE> def to_cmd_help(self) -> SACmdHelp: <NEW_LINE> <INDENT> _help = super(DHOpTimerService, self).to_cmd_help() <NEW_LINE> _help.update_kwargs_params({ 0: '關閉設定時間功能', '非0': '代表運轉時間' }) <NEW_LINE> _help.update_kwargs_unit('Hr') <NEW_LINE> retur... | 運轉時間設定功能 | 62598fb05fc7496912d48299 |
@dataclasses.dataclass <NEW_LINE> class TensorboardConfig(base_config.Config): <NEW_LINE> <INDENT> track_lr: bool = True <NEW_LINE> write_model_weights: bool = False | Configuration for Tensorboard.
Attributes:
track_lr: Whether or not to track the learning rate in Tensorboard. Defaults
to True.
write_model_weights: Whether or not to write the model weights as images in
Tensorboard. Defaults to False. | 62598fb07b25080760ed74e0 |
class SteveESWrapper(object): <NEW_LINE> <INDENT> def __init__(self, ES): <NEW_LINE> <INDENT> self.ES = ES <NEW_LINE> <DEDENT> def get(self, index, doc_type, id): <NEW_LINE> <INDENT> return self.ES.get(index = index+'_'+doc_type, doc_type = '_doc', id = id) <NEW_LINE> <DEDENT> def exists(self, index, doc_type, id): <NE... | Class for rewriting old-style queries to the new ones,
where doc_type is an integral part of the DB name | 62598fb063b5f9789fe85199 |
class TestGamePlayPlayers(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 testGamePlayPlayers(self): <NEW_LINE> <INDENT> pass | GamePlayPlayers unit test stubs | 62598fb0cc0a2c111447b043 |
class BERTLoaderTransform: <NEW_LINE> <INDENT> def __init__(self, use_avg_len, batch_size, shuffle, num_ctxes, num_buckets, vocab): <NEW_LINE> <INDENT> self._sampler_fn = BERTSamplerFn(use_avg_len, batch_size, shuffle, num_ctxes, num_buckets) <NEW_LINE> self._data_fn = BERTDataLoaderFn(use_avg_len, num_ctxes, vocab) <N... | Create dataloader for a BERT dataset. | 62598fb03d592f4c4edbaef2 |
class LiveJournalOpenId(OpenIdAuth): <NEW_LINE> <INDENT> name = 'livejournal' <NEW_LINE> def get_user_details(self, response): <NEW_LINE> <INDENT> values = super().get_user_details(response) <NEW_LINE> values['username'] = values.get('username') or urlsplit(response.identity_url).netloc.split('.', 1)[0] <NEW... | LiveJournal OpenID authentication backend | 62598fb0a8370b77170f040d |
class JSONEventHandler(EventHandler): <NEW_LINE> <INDENT> name = 'json' <NEW_LINE> encoding = 'utf-8' <NEW_LINE> def start(self): <NEW_LINE> <INDENT> self.data = {} <NEW_LINE> <DEDENT> def jsonFn(self, comic): <NEW_LINE> <INDENT> fn = os.path.join(self.basepath, comic, 'dosage.json') <NEW_LINE> fn = os.path.abspath(fn)... | Output metadata for comics in JSON format. | 62598fb099fddb7c1ca62e02 |
class MixedSizePartitionMeasurer(PartitionMeasurer): <NEW_LINE> <INDENT> def get_weight(self, _): <NEW_LINE> <INDENT> return 1 <NEW_LINE> <DEDENT> def get_size(self, partition_name): <NEW_LINE> <INDENT> if partition_name[1] == 0: <NEW_LINE> <INDENT> return 2 <NEW_LINE> <DEDENT> return 1 | An implementation of PartitionMeasurer that provides 2-size for
partition 0 and 1-size for partition 1 | 62598fb056ac1b37e630221e |
class ArgPos: <NEW_LINE> <INDENT> BODY = "body" <NEW_LINE> PATH = "path" <NEW_LINE> PARAM = "param" | Argument positions
| 62598fb0a05bb46b3848a89d |
class JsonWriterPipeline(object): <NEW_LINE> <INDENT> def __init__(self, items): <NEW_LINE> <INDENT> self.items_ = items <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_settings(cls, settings): <NEW_LINE> <INDENT> return cls(settings['PIPELINE_OUTPUT']) <NEW_LINE> <DEDENT> def process_item(self, item, scraper): <N... | JSON extracting spider pipeline | 62598fb07d847024c075c3f4 |
class InvalidScoreLengthForFrame(ScoringException): <NEW_LINE> <INDENT> def __init__(self, score_type, score, frame): <NEW_LINE> <INDENT> super(InvalidScoreLengthForFrame, self).__init__( ('{type} {score} has incorrect number of tries for ' 'frame: {frame}.'.format(type=score_type, score=score, frame=frame))) | Every frame should have
1. in case of a strike, a minimum of 1 attemptfor all frames except
the last frame in which case it will have 3 attempts.
2. in case of a spare, a minimum of 2 attemptfor all frames except
the last frame in which case it will have 3 attempts.
3. exactly 2 attempts for all frames in case of... | 62598fb0442bda511e95c48a |
class StatusLocacao(models.Model): <NEW_LINE> <INDENT> status_locacao = models.CharField(max_length=100) <NEW_LINE> icone = models.CharField(max_length=100) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.status_locacao <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = 'Status da Locação'... | Define o `estado da locação`: 'Realizada', 'Com Pendências', 'Cancelada' e 'Finalizada' | 62598fb0e5267d203ee6b93b |
class Algorithm: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.algorithm_name = "ILP" <NEW_LINE> self.ilp_time_limit = 60 <NEW_LINE> self.ilp_tune = False <NEW_LINE> self.ch_alpha = 1.0 <NEW_LINE> self.ch_seed = None <NEW_LINE> <DEDENT> def use_ilp(self, time_limit = 60, tune = False): <NEW_LINE> <IN... | Class to select algorithm for solving the subproblems.
Attributes:
algorithm_name (string): Name of selected algorithm.
Options: "ILP", "CH".
Default: "ILP".
ilp_time_limit (float): Time limit for algorithm "ILP" in seconds.
If <= 0, no time limit is enforced.
Default: 60.
... | 62598fb023849d37ff8510e6 |
class Dashboard: <NEW_LINE> <INDENT> pass | The robot side to store and send updates of Dashboard values | 62598fb0aad79263cf42e806 |
class CommitStripFr(GenericCommitStrip): <NEW_LINE> <INDENT> name = "commit_fr" <NEW_LINE> long_name = "Commit Strip (Fr)" <NEW_LINE> url = "http://www.commitstrip.com/fr" <NEW_LINE> _categories = ("FRANCAIS",) <NEW_LINE> first_url = "http://www.commitstrip.com/fr/2012/02/22/interview/" | Class to retrieve Commit Strips in French. | 62598fb04428ac0f6e658558 |
class DaskSLURMBackend(BaseDaskJobQueueBackend): <NEW_LINE> <INDENT> def __init__( self, minimum_number_of_workers=1, maximum_number_of_workers=1, resources_per_worker=QueueWorkerResources(), queue_name="default", setup_script_commands=None, extra_script_options=None, adaptive_interval="10000ms", disable_nanny_process=... | An openff-evaluator backend which uses a `dask_jobqueue.SLURMCluster`
object to run calculations within an existing SLURM queue.
See Also
--------
dask_jobqueue.SLURMCluster
DaskSLURMBackend | 62598fb02c8b7c6e89bd37f8 |
class AllDistComp(om.ExplicitComponent): <NEW_LINE> <INDENT> def initialize(self): <NEW_LINE> <INDENT> self.options.declare('num_nodes', types=int) <NEW_LINE> self.options.declare('limit', types=float, default=1.0) <NEW_LINE> <DEDENT> def setup(self): <NEW_LINE> <INDENT> nn = self.options['num_nodes'] <NEW_LINE> self.a... | For computing complete pairwise distance constraints.
| 62598fb07047854f4633f40d |
class CarouselPluginItem(BaseLink, LinkMethodsMixin): <NEW_LINE> <INDENT> plugin = models.ForeignKey(CarouselPlugin, related_name="carousel_item") <NEW_LINE> image = FilerImageField() <NEW_LINE> link_title = models.CharField(max_length=35) | The item in a carousel - basically a Link, with an image | 62598fb0091ae35668704c52 |
class DecodeFailureMode(enum.Enum): <NEW_LINE> <INDENT> ABORT = 1 <NEW_LINE> SKIP = 2 | This enum is used to identify the two possible modes to handle any
error that can occur while decoding the payload received from the
server table monitors.
In both the cases (``SKIP`` and ``ABORT``) it will try to
recover once by default. | 62598fb05fdd1c0f98e5dfbe |
class event_dispatcher(dispatcher): <NEW_LINE> <INDENT> def __init__(self, cleanup, processors=None): <NEW_LINE> <INDENT> dispatcher.__init__(self, cleanup, processors) <NEW_LINE> self.__starttime = time.time() <NEW_LINE> <DEDENT> def post_event(self, event): <NEW_LINE> <INDENT> self._events.append(event) <NEW_LINE> re... | Class to dispatch non-timed event
@author ykk
@date Feb 2011 | 62598fb0627d3e7fe0e06ee1 |
class TargetDiscretizer(BaseEstimator): <NEW_LINE> <INDENT> def __init__(self, discretizer: Callable) -> None: <NEW_LINE> <INDENT> if callable(discretizer): <NEW_LINE> <INDENT> self.discretizer = discretizer <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> raise TypeError(f"{self.__class__.__name__} constructor expect a c... | Discretize numerical target variable.
The `TargetDiscretizer` transformer maps target variable values to discrete values using
a user defined function.
Parameters:
discretizer: user defined function. | 62598fb0460517430c432077 |
@dataclass <NEW_LINE> class ExtendedInfo: <NEW_LINE> <INDENT> other_element: Optional[object] = field( default=None, metadata={ "type": "Wildcard", "namespace": "##other", "required": True, } ) <NEW_LINE> id: Optional[str] = field( default=None, metadata={ "type": "Attribute", "required": True, } ) <NEW_LINE> other_att... | :ivar other_element:
:ivar id: An internal ID to identify this object.
:ivar other_attributes: A placeholder so that content creators can add attributes as desired. | 62598fb099cbb53fe6830f0c |
class BanditArm(object): <NEW_LINE> <INDENT> def __init__(self, true_params=None, prior_params=None): <NEW_LINE> <INDENT> if true_params: <NEW_LINE> <INDENT> self.true_distribution = true_params.get('distribution', 'bernoulli') <NEW_LINE> self.p = true_params.get('p', 0.5) <NEW_LINE> self.n = true_params.get('n', 1) <N... | Arm is just one possible control or decision configuration available to us
(which arm to pick / which action to take)
This can be a:
- bernoulli arm (just 1/0 reward like a click or conversion)
- binomial or poisson arm (prob of click or arrival rate)
- normal or lognormal (value per click or value per conv... | 62598fb05166f23b2e24340d |
class Bool(BooleanLogics.Bool, AtomicProposition): <NEW_LINE> <INDENT> pass | The class of Boolean atomic propositions. | 62598fb0f548e778e596b5d8 |
class RpcCallBacks(object): <NEW_LINE> <INDENT> def __init__(self, vdpd, ipt_drvr): <NEW_LINE> <INDENT> self._vdpd = vdpd <NEW_LINE> self._iptd = ipt_drvr <NEW_LINE> <DEDENT> def _enqueue_event(self, vm): <NEW_LINE> <INDENT> oui = vm.get('oui') <NEW_LINE> if oui and oui.get('ip_addr') != '0.0.0.0' and self._iptd: <NEW_... | RPC call back methods. | 62598fb0851cf427c66b82ef |
class Events(ItemIterator): <NEW_LINE> <INDENT> nickname = 'events' <NEW_LINE> requires_path = False <NEW_LINE> def __init__(self, *args, **kargs): <NEW_LINE> <INDENT> super(Events, self).__init__(*args, **kargs) <NEW_LINE> self.md5er = self.subagent(Md5er) <NEW_LINE> self.collisions = dict(md5=[], fname=[]) <NEW_LINE>... | saves size info | 62598fb0796e427e5384e7c8 |
class MigratePrivateIpAddressRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.SourceNetworkInterfaceId = None <NEW_LINE> self.DestinationNetworkInterfaceId = None <NEW_LINE> self.PrivateIpAddress = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.... | MigratePrivateIpAddress请求参数结构体
| 62598fb0be8e80087fbbf098 |
class BINARY_MULTIPLY(BINARY): <NEW_LINE> <INDENT> def touch_value(self, stack, frame): <NEW_LINE> <INDENT> (TOS1, TOS) = stack[-2:] <NEW_LINE> stack[-2:] = [TOS1 * TOS] | Implements TOS = TOS1 * TOS. | 62598fb085dfad0860cbfa8d |
class IncomingFriendshipsResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None) <NEW_LINE> <DEDENT> def get_Limit(self): <NEW_LINE> <INDENT> return se... | A ResultSet with methods tailored to the values returned by the IncomingFriendships Choreo.
The ResultSet object is used to retrieve the results of a Choreo execution. | 62598fb0a8370b77170f0410 |
class LambdaExpression(VariableBinderExpression): <NEW_LINE> <INDENT> PREFIX = '\\' <NEW_LINE> def _skolemise(self, bound_vars, counter): <NEW_LINE> <INDENT> bv = bound_vars.copy() <NEW_LINE> bv.add(self.variable) <NEW_LINE> return self.__class__(self.variable, self.term._skolemise(bv, counter)) <NEW_LINE> <DEDENT> def... | A lambda expression: \x.M. | 62598fb0a05bb46b3848a89f |
class M3_10(models.Model): <NEW_LINE> <INDENT> name = models.CharField(_("name"), max_length=500) <NEW_LINE> name_fr = models.CharField(_("name fr"), max_length=500) <NEW_LINE> name_es = models.CharField(_("name es"), max_length=500) <NEW_LINE> name_ar = models.CharField(_("name ar"), max_length=500) <NEW_LINE> name_ru... | M3_10 | 62598fb0e76e3b2f99fd8a6a |
class StudioApiFixture(object): <NEW_LINE> <INDENT> @lazy <NEW_LINE> def session(self): <NEW_LINE> <INDENT> session = requests.Session() <NEW_LINE> response = session.get(STUDIO_BASE_URL + "/auto_auth?staff=true") <NEW_LINE> if response.ok: <NEW_LINE> <INDENT> return session <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT... | Base class for fixtures that use the Studio restful API. | 62598fb0cb5e8a47e493c193 |
@xs.process <NEW_LINE> class MarineSedimentTransport: <NEW_LINE> <INDENT> ss_ratio_land = xs.variable( description='sand/silt ratio of continental sediment source' ) <NEW_LINE> ss_ratio_sea = xs.variable( dims=('y', 'x'), intent='out', description='sand/silt ratio of marine sediment layer' ) <NEW_LINE> porosity_sand = ... | Marine sediment transport, deposition and compaction.
The source of sediment used for marine transport originates from
channel erosion and/or transport, which, integrated over the whole
continental area, provides a volume of sediment yielded through
the shoreline.
A uniform, user-defined ratio of sand/silt is conside... | 62598fb071ff763f4b5e77a5 |
class PKTestCase(ModelsBaseTestCase): <NEW_LINE> <INDENT> def test_behaviour(self): <NEW_LINE> <INDENT> from django.db import models <NEW_LINE> class Publication(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=30) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.title <NEW_LINE> ... | See ticket #599 for this. Check to make sure that django pk fields
are set first | 62598fb066656f66f7d5a424 |
class EncoderWrapper(ModelPart, Attentive): <NEW_LINE> <INDENT> def __init__(self, name: str, encoders: List[Any], attention_type: Type, attention_state_size: int, use_sentinels=False, share_attn_projections=False) -> None: <NEW_LINE> <INDENT> ModelPart.__init__(self, name, None, None) <NEW_LINE> Attentive.__init__(sel... | Wrapper doing attention combination behaving as a single encoder.
This class wraps encoders and performs the attention combination in such a
way that for the decoder, it looks like a single encoder capable to
generate a single context vector. | 62598fb0379a373c97d99048 |
class Example11App(pygubu.TkApplication): <NEW_LINE> <INDENT> def _create_ui(self): <NEW_LINE> <INDENT> self.builder = builder = pygubu.Builder() <NEW_LINE> builder.add_from_file("exampleB.ui") <NEW_LINE> builder.add_resource_path(".") <NEW_LINE> self.mainwindow = builder.get_object("MainWindow", self.master) <NEW_LINE... | Class representing a Tkinter based application. | 62598fb00c0af96317c563b0 |
class PropertyCreateListView(generics.ListCreateAPIView): <NEW_LINE> <INDENT> queryset = Property.objects.all() <NEW_LINE> serializer_class = PropertyListSerializer <NEW_LINE> filter_fields = ( 'area_unit', 'bathrooms', 'bedrooms', 'home_size', 'home_type', 'price', 'area_unit', 'bathrooms', 'bedrooms', 'price_last_sol... | This class allows creation and query of Property objects. | 62598fb023849d37ff8510e8 |
class PlayerDeleteView(DeleteView): <NEW_LINE> <INDENT> model = Player <NEW_LINE> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> if not request.user.is_authenticated: <NEW_LINE> <INDENT> raise PermissionDenied <NEW_LINE> <DEDENT> return super().get(request, args, kwargs) <NEW_LINE> <DEDENT> def post(self,... | View that deletes a new category. | 62598fb05fcc89381b266166 |
class SelectorBIC(ModelSelector): <NEW_LINE> <INDENT> def select(self): <NEW_LINE> <INDENT> warnings.filterwarnings("ignore", category=DeprecationWarning) <NEW_LINE> bestScore = np.inf <NEW_LINE> bestModel = None <NEW_LINE> for n_components in range(self.min_n_components,self.max_n_components+1 ): <NEW_LINE> <INDENT> t... | select the model with the lowest Bayesian Information Criterion(BIC) score
http://www2.imm.dtu.dk/courses/02433/doc/ch6_slides.pdf
Bayesian information criteria: BIC = -2 * logL + p * logN | 62598fb099cbb53fe6830f0d |
class _PosixLock(_InterProcessLock): <NEW_LINE> <INDENT> def trylock(self): <NEW_LINE> <INDENT> fcntl.fcntl(self.lockfile, fcntl.LOCK_EX | fcntl.LOCK_NB) <NEW_LINE> <DEDENT> def unlock(self): <NEW_LINE> <INDENT> fcntl.fcntl(self.lockfile, fcntl.LOCK_UN) | LOCK_UN - unlock
LOCK_SH - acquire a shared lock
LOCK_EX -acquire an exclusive lock
When operation is LOCK_SH or LOCK_EX, it can also be bitwise ORed with LOCK_NB
to avoid blocking on lock acquisition. If LOCK_NB is used and the lock cannot be acquired,
an IOError will be raised and the exception will have an errno att... | 62598fb032920d7e50bc6089 |
class OTPAuthentication(Form): <NEW_LINE> <INDENT> secret = OTPSecretKeyField(qrcode_url="/qrcode", render_kw={ "data-ng-model": "model.secret", "module": "OTPApp" }) <NEW_LINE> check = fld.IntegerField(validators=[ vld.NumberRange(min=0, max=999999), OTPCheck( secret=lambda form, field: form.secret.data, method="TOTP"... | OTP Authentication form. | 62598fb03317a56b869be565 |
class Recipe(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=255) <NEW_LINE> price = models.DecimalField(max_digits=10, decimal_places=2, null=True) <NEW_LINE> cost = models.DecimalField(max_digits=10, decimal_places=2, null=True) <NEW_LINE> shelf_life = models.PositiveSmallIntegerField(default=0) | Example: Guacamole | 62598fb026068e7796d4c98a |
class RetryableError(db_module.Error): <NEW_LINE> <INDENT> pass | Indicates that a transaction can be retried. | 62598fb05fdd1c0f98e5dfc0 |
class HACSSensor(Entity): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._state = None <NEW_LINE> <DEDENT> async def async_update(self): <NEW_LINE> <INDENT> if hacs.store.task_running: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> updates = 0 <NEW_LINE> for repository in hacs.store.repositories: <NEW... | HACS Sensor class. | 62598fb0a17c0f6771d5c26a |
class RateBasedRule(pulumi.CustomResource): <NEW_LINE> <INDENT> def __init__(__self__, __name__, __opts__=None, metric_name=None, name=None, predicates=None, rate_key=None, rate_limit=None): <NEW_LINE> <INDENT> if not __name__: <NEW_LINE> <INDENT> raise TypeError('Missing resource name argument (for URN creation)') <NE... | Provides a WAF Rate Based Rule Resource | 62598fb0097d151d1a2c1060 |
class SparkJob(_messages.Message): <NEW_LINE> <INDENT> @encoding.MapUnrecognizedFields('additionalProperties') <NEW_LINE> class PropertiesValue(_messages.Message): <NEW_LINE> <INDENT> class AdditionalProperty(_messages.Message): <NEW_LINE> <INDENT> key = _messages.StringField(1) <NEW_LINE> value = _messages.StringField... | A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
applications on YARN.
Messages:
PropertiesValue: Optional. A mapping of property names to values, used to
configure Spark. Properties that conflict with values set by the Cloud
Dataproc API may be overwritten. Can include properties set... | 62598fb099cbb53fe6830f0e |
class Container(Instance): <NEW_LINE> <INDENT> klass = None <NEW_LINE> _cast_types = () <NEW_LINE> _valid_defaults = SequenceTypes <NEW_LINE> _trait = None <NEW_LINE> def __init__(self, trait=None, default_value=None, **metadata): <NEW_LINE> <INDENT> if default_value is None and not is_trait(trait): <NEW_LINE> <INDENT>... | An instance of a container (list, set, etc.)
To be subclassed by overriding klass. | 62598fb05166f23b2e24340f |
class DummySocket(HasTraits): <NEW_LINE> <INDENT> queue = Instance(Queue, ()) <NEW_LINE> message_sent = Int(0) <NEW_LINE> context = Instance(zmq.Context) <NEW_LINE> def _context_default(self): <NEW_LINE> <INDENT> return zmq.Context.instance() <NEW_LINE> <DEDENT> def recv_multipart(self, flags=0, copy=True, track=False)... | A dummy socket implementing (part of) the zmq.Socket interface. | 62598fb067a9b606de546003 |
class Decide(callbacks.Plugin): <NEW_LINE> <INDENT> def __init__(self, irc): <NEW_LINE> <INDENT> self.__parent = super(Decide, self) <NEW_LINE> self.__parent.__init__(irc) <NEW_LINE> <DEDENT> def decide(self, irc, msg, args, timestamp, text): <NEW_LINE> <INDENT> time_quotient = timestamp / conf.supybot.plugins.Decide.i... | This plugin has only one command, 'decide'. | 62598fb03346ee7daa337662 |
class EllipticEnvelop(OutlierDetectionMixin, MinCovDet): <NEW_LINE> <INDENT> def __init__(self, store_precision=True, assume_centered=False, support_fraction=None, contamination=0.1): <NEW_LINE> <INDENT> MinCovDet.__init__(self, store_precision=store_precision, assume_centered=assume_centered, support_fraction=support_... | An object for detecting outliers in a Gaussian distributed dataset.
Attributes
----------
`contamination`: float, 0. < contamination < 0.5
The amount of contamination of the data set, i.e. the proportion
of outliers in the data set.
`location_`: array-like, shape (n_features,)
Estimated robust location
`cova... | 62598fb0e1aae11d1e7ce83e |
class DummyTime: <NEW_LINE> <INDENT> def __init__(self, curr_time, increment): <NEW_LINE> <INDENT> self.curr_time = curr_time <NEW_LINE> self.increment = increment <NEW_LINE> self.started = False <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> self.started = True <NEW_LINE> <DEDENT> def __call__(self, *args, *... | Mock replacement for time.time. Increases returned time on access. | 62598fb085dfad0860cbfa8e |
class Parrot: <NEW_LINE> <INDENT> species = "bird" <NEW_LINE> def __init__(self, name, age): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.age = age <NEW_LINE> <DEDENT> def sing(self, song): <NEW_LINE> <INDENT> return "{} sings {}".format(self.name, song) <NEW_LINE> <DEDENT> def dance(self): <NEW_LINE> <INDENT> ... | This is a docstring for the parrot class | 62598fb076e4537e8c3ef5dd |
class gpgTool(RunEnvTool): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> def envNames(self): <NEW_LINE> <INDENT> return ['gpgBin', 'gpgKeyServer'] <NEW_LINE> <DEDENT> def _installTool(self, env): <NEW_LINE> <INDENT> self._install.debrpm('gnupg') <NEW_LINE> self._install.debrpm('gnupg2') <NEW_LINE> self._install.debrpm(... | The GNU Privacy Guard.
Home: https://www.gnupg.org/
gpgKeyServer is hkp://keyserver.ubuntu.com:80 by default | 62598fb0e76e3b2f99fd8a6c |
class account_invoice(models.Model): <NEW_LINE> <INDENT> _inherit = "account.invoice" <NEW_LINE> bvr_reference = fields.Char( "BVR REF.", size=32, track_visibility='onchange') <NEW_LINE> @api.constrains('bvr_reference') <NEW_LINE> def _check_bvr_ref(self): <NEW_LINE> <INDENT> for data in self: <NEW_LINE> <INDENT> if no... | Inherit account.invoice in order to change BVR ref field type | 62598fb0442bda511e95c48e |
class GenericBloomFilter(object): <NEW_LINE> <INDENT> def __init__(self, capacity, error_rate=0.01): <NEW_LINE> <INDENT> self.capacity = capacity <NEW_LINE> self.error_rate = error_rate <NEW_LINE> self.bf = None <NEW_LINE> <DEDENT> def __contains__(self, key): <NEW_LINE> <INDENT> return key in self.bf <NEW_LINE> <DEDEN... | A simple "interface like" class to define how a bloom filter should look
like, methods, attributes, etc.
The idea is to give a consistent API to all the other sections of the code
and allow the use of different bloom filter implementations. | 62598fb0fff4ab517ebcd81b |
class CustomScreen(UssdHandlerAbstract): <NEW_LINE> <INDENT> screen_type = "custom_screen" <NEW_LINE> serializer = CustomScreenSchema <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(CustomScreen, self).__init__(*args, **kwargs) <NEW_LINE> self.custom_screen_instance = str_to_class( self.screen... | If you have a particular user case that's not yet covered by
our existing screens, this is the screen to use.
This screen allows us to define our own ussd screen.
To create it you need the following fields.
1. screen_object
This is the path to be used to import the class
2. serializer (optional)
... | 62598fb01b99ca400228f54b |
class Encoder(nn.Module): <NEW_LINE> <INDENT> def __init__(self, input_shape, n_blocks=4, nz_feat=100, batch_norm=True, input_coord=False, pretrained=True): <NEW_LINE> <INDENT> super(Encoder, self).__init__() <NEW_LINE> if input_coord: <NEW_LINE> <INDENT> self.resnet_conv = ResNetCoord(n_blocks=4) <NEW_LINE> <DEDENT> e... | Current:
Resnet with 4 blocks (x32 spatial dim reduction)
Another conv with stride 2 (x64)
This is sent to 2 fc layers with final output nz_feat. | 62598fb0ac7a0e7691f7253f |
class BtihResolver(NameResolverDir): <NEW_LINE> <INDENT> namespace="btih" <NEW_LINE> def __init__(self, namespace, hash, **kwargs): <NEW_LINE> <INDENT> verbose=kwargs.get("verbose") <NEW_LINE> if verbose: <NEW_LINE> <INDENT> logging.debug("{0}.__init__({1}, {2}, {3})".format(self.__class__.__name__, namespace, hash, kw... | Resolve BitTorrent Hashes
Fields:
btih # BitTorrent hash - in ascii B32 format
This could also easily be extended to
Support "magnetlink" as the thing being looked for (and return btih and other outputs)
Support outputs of itemid, metadata (of item) | 62598fb0e5267d203ee6b93f |
class Index(PynamoDBIndex): <NEW_LINE> <INDENT> Meta = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> if self.Meta is None: <NEW_LINE> <INDENT> raise ValueError("Indexes require a Meta class for settings") <NEW_LINE> <DEDENT> if not hasattr(self.Meta, "projection"): <NEW_LINE> <INDENT> raise ValueError("No pro... | Base class for secondary indexes | 62598fb023849d37ff8510ea |
class Reflect3D(Reflect2D): <NEW_LINE> <INDENT> def __init__(self, xl, xr, yl, yr, zl, zr): <NEW_LINE> <INDENT> self.dim = 3 <NEW_LINE> self.boundaries = [ [xl, xr], [yl, yr], [zl, zr] ] <NEW_LINE> <DEDENT> def reverse_velocities(self, particles, primitive, particles_index): <NEW_LINE> <INDENT> ghost_indices = particle... | 3d refect boundary class | 62598fb04e4d56256637245d |
@api.route("/<int:service_id>") <NEW_LINE> @api.response(404, "service_id not found") <NEW_LINE> @api.param("service_id", "The service identifier") <NEW_LINE> class Service(Resource): <NEW_LINE> <INDENT> @api.marshal_with(service_model) <NEW_LINE> def get(self, service_id): <NEW_LINE> <INDENT> service = get_service(ser... | Show a single service item and lets you delete it. | 62598fb0e5267d203ee6b940 |
class FindProductsInputSet(InputSet): <NEW_LINE> <INDENT> def set_AppID(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'AppID', value) <NEW_LINE> <DEDENT> def set_AvailableItemsOnly(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'AvailableItemsOnly', value) <NEW_LINE> <DEDENT> def set_Category... | An InputSet with methods appropriate for specifying the inputs to the FindProducts
Choreo. The InputSet object is used to specify input parameters when executing this Choreo. | 62598fb07047854f4633f411 |
class JsonWebKeyOperation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): <NEW_LINE> <INDENT> ENCRYPT = "encrypt" <NEW_LINE> DECRYPT = "decrypt" <NEW_LINE> SIGN = "sign" <NEW_LINE> VERIFY = "verify" <NEW_LINE> WRAP_KEY = "wrapKey" <NEW_LINE> UNWRAP_KEY = "unwrapKey" <NEW_LINE> IMPORT_ENUM = "import" <NEW_LINE> RE... | The permitted JSON web key operations of the key. For more information, see
JsonWebKeyOperation. | 62598fb05fc7496912d4829c |
class Grid2LSTMCell(GridRNNCell): <NEW_LINE> <INDENT> def __init__(self, num_units, tied=False, non_recurrent_fn=None, use_peepholes=False, forget_bias=1.0): <NEW_LINE> <INDENT> super(Grid2LSTMCell, self).__init__( num_units=num_units, num_dims=2, input_dims=0, output_dims=0, priority_dims=0, tied=tied, non_recurrent_d... | 2D LSTM cell
This creates a 2D cell which receives input and gives output in the first
dimension.
The first dimension can optionally be non-recurrent if `non_recurrent_fn` is
specified. | 62598fb03539df3088ecc2e9 |
class IdentifierEndpoint(IsThereAnyDealErrorResponse): <NEW_LINE> <INDENT> def __init__(self, response_dict): <NEW_LINE> <INDENT> super().__init__(response_dict) <NEW_LINE> self.plain = None <NEW_LINE> if 'data' in response_dict and response_dict['data']: <NEW_LINE> <INDENT> self.plain = response_dict['data'].get('plai... | IsThereAnyDeal API Identifier endpoint parser
All properties can be None if the value can't be retrieved from the IsThereAnyDeal API
Attributes
----------
plain : str or None
IsThereAnyDeal API game identifier | 62598fb08e7ae83300ee90d9 |
class LdapError(Exception): <NEW_LINE> <INDENT> def __init__(self, msg): <NEW_LINE> <INDENT> self.msg = msg <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.msg | exception about ldap update. | 62598fb0f7d966606f74801c |
class PUTAttachmentType(object): <NEW_LINE> <INDENT> swagger_types = { 'description': 'str', 'file_name': 'str' } <NEW_LINE> attribute_map = { 'description': 'description', 'file_name': 'fileName' } <NEW_LINE> def __init__(self, description=None, file_name=None): <NEW_LINE> <INDENT> self._description = None <NEW_LINE> ... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fb04a966d76dd5eef0e |
class JSONEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, o): <NEW_LINE> <INDENT> if isinstance(o, datetime): <NEW_LINE> <INDENT> return o.isoformat() <NEW_LINE> <DEDENT> elif isinstance(o, set): <NEW_LINE> <INDENT> return list(o) <NEW_LINE> <DEDENT> elif hasattr(o, 'as_dict'): <NEW_LINE> <INDENT> retu... | JSONEncoder that supports Home Assistant objects. | 62598fb08da39b475be0321d |
class RefExpr(object): <NEW_LINE> <INDENT> def __init__(self, expr_or_var): <NEW_LINE> <INDENT> self.expr = expr_or_var <NEW_LINE> <DEDENT> @property <NEW_LINE> def is_var(self): <NEW_LINE> <INDENT> return type(self.expr) is str <NEW_LINE> <DEDENT> def printables(self): <NEW_LINE> <INDENT> yield 0, "Ref:" <NEW_LINE> yi... | This expression both captures a reference to a cell as well as a reference to a variable. | 62598fb067a9b606de546004 |
class register: <NEW_LINE> <INDENT> url="" <NEW_LINE> phone = "" <NEW_LINE> password = "" <NEW_LINE> authCode = "" <NEW_LINE> inviteCode = "" <NEW_LINE> X_Type= "" <NEW_LINE> code = "" | request | 62598fb05166f23b2e243411 |
@dataclass <NEW_LINE> class EventDetails: <NEW_LINE> <INDENT> sports_mode: SportsMode <NEW_LINE> track: str <NEW_LINE> laps: int <NEW_LINE> maximum_players: int <NEW_LINE> start_type: str <NEW_LINE> car_category: list <NEW_LINE> leaderboard_id: str <NEW_LINE> raw_data: dict = None <NEW_LINE> @classmethod <NEW_LINE> def... | Detailed information of a single race event. | 62598fb0dd821e528d6d8f6c |
class AggregratedTopPlayers: <NEW_LINE> <INDENT> _endpoint = 'topscorers' <NEW_LINE> _include = ['aggregratedGoalscorers.player', 'aggregratedGoalscorers.team', 'aggregratedCardscorers.player', 'aggregratedCardscorers.team', 'aggregratedAssistscorers.player', 'aggregratedAssistscorers.team'] <NEW_LINE> def __init__(sel... | Overview:
Gets a list of top players for each country from the initial players list
Input:
Output:
Notes:
Add stage_id parameter | 62598fb04428ac0f6e65855d |
class IESDRTFile(form.Schema, IImageScaleTraversable): <NEW_LINE> <INDENT> title = schema.TextLine( title=_(u'Title'), required=False, ) <NEW_LINE> form.primary('file') <NEW_LINE> file = NamedBlobFile( title=_(u'File'), required=True, ) | Files with special needs | 62598fb067a9b606de546005 |
class LayerAttributesMangler(DefaultMangler): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> return json.JSONEncoder.default(self, obj) <NEW_LINE> <DEDENT> def decode(self, json_string): <NEW_LINE> <INDENT> default_obj = super(LayerAttributesMangler, self).decode(json_string) <NEW_LINE> for obj in defa... | TODO | 62598fb0a8370b77170f0413 |
class PurchasableState(Enum): <NEW_LINE> <INDENT> PURCHASABLE = "PURCHASABLE" <NEW_LINE> NOT_PURCHASABLE = "NOT_PURCHASABLE" <NEW_LINE> def to_dict(self): <NEW_LINE> <INDENT> result = {self.name: self.value} <NEW_LINE> return result <NEW_LINE> <DEDENT> def to_str(self): <NEW_LINE> <INDENT> return pprint.pformat(self.va... | State determining if the product is purchasable by the user. Note - Any new values introduced later should be treated as 'NOT_PURCHASABLE'. * 'PURCHASABLE' - The product is purchasable by the user. * 'NOT_PURCHASABLE' - The product is not purchasable by the user.
Allowed enum values: [PURCHAS... | 62598fb03346ee7daa337663 |
class Base: <NEW_LINE> <INDENT> def __init__(self, test_mode=False): <NEW_LINE> <INDENT> self.resources_path = 'resources' <NEW_LINE> self.plugins_path = 'plugins' <NEW_LINE> self.init_multiplatform_python_paths() <NEW_LINE> if test_mode: <NEW_LINE> <INDENT> self.run_mode = 'test' <NEW_LINE> self.default_userspace_path... | Default fonts and resource paths. These are used when running in Linux and as a base for Mac/Win | 62598fb0009cb60464d01558 |
class connectBoxClass: <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> self.parent = parent <NEW_LINE> self.builder = hf.load_interface(__file__, 'glade/connectBox.glade') <NEW_LINE> self.save_objects() <NEW_LINE> self.builder.connect_signals(self.setup_signals()) <NEW_LINE> hf.center(self.window, s... | Sets up Connect Box | 62598fb0d486a94d0ba2c007 |
class rule_500(Rule): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Rule.__init__(self, 'case_generate_statement', '500', lTokens) <NEW_LINE> self.groups.append('case::keyword') | This rule checks the *case* keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
**Violation**
.. code-block:: vhdl
CASE expression generate
**Fix**
.. code-block:: vhdl
case expression generate | 62598fb056ac1b37e6302223 |
class UTCtoUT1Warning(MJDWarning): <NEW_LINE> <INDENT> pass | A sub-class of MJDWarning meant for use when astropy.Time cannot interpolate
UT1-UTC as a function of UTC because UTC is out of bounds of the data.
This class exists so that users can filter these warnings out by creating
a simple filter targeted at category=UTCtoUT1Warning. | 62598fb0be7bc26dc9251e79 |
class Command(BaseCommand): <NEW_LINE> <INDENT> def handle(self, *args, **options): <NEW_LINE> <INDENT> if not settings.API_SCHEMA_FILE: <NEW_LINE> <INDENT> logger.error( 'API_SCHEMA_FILE is not defined in settings. Aborting.' ) <NEW_LINE> return <NEW_LINE> <DEDENT> if not os.path.exists(settings.API_SCHEMA_FILE): <NEW... | Generates JSON schema file from it's YAML counterpart identified by
`API_SCHEMA_FILE`, which is expected to be present in settings. Previous
version of such JSON schema will be overwritten.
This command should be executed at every change of schema, as well as when
Scrooge is installed. | 62598fb085dfad0860cbfa8f |
class TestLinks(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 testLinks(self): <NEW_LINE> <INDENT> model = picketer.models.links.Links() | Links unit test stubs | 62598fb0a8370b77170f0414 |
class StratNcaggVersion(Strat): <NEW_LINE> <INDENT> def process(self, attr, nc_obj=None): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def finalize(self, nc_out): <NEW_LINE> <INDENT> return pkg_resources.require("ncagg")[0].version | Include an attribute indicating what version of ncagg was used. | 62598fb063d6d428bbee27e4 |
class ArchiveError(Exception): <NEW_LINE> <INDENT> pass | Internal error handling of this script | 62598fb0379a373c97d9904c |
class VoiceLogConfig(SectionView): <NEW_LINE> <INDENT> voice_text_channel_map: Dict[str, str] <NEW_LINE> role_voice: str | :ivar voice_text_channel_map: Map of channel IDs, from voice channel to text channel.
:ivar role_voice: The voice channel role to set for voice users. | 62598fb0adb09d7d5dc0a5c3 |
class CommandRunner(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.commands = {} <NEW_LINE> self.command('help', self.cmd_help) <NEW_LINE> <DEDENT> def command(self, name, fn): <NEW_LINE> <INDENT> self.commands[name] = fn <NEW_LINE> <DEDENT> def cmd_help(self, *args): <NEW_LINE> <INDENT> retu... | Simple demo. | 62598fb0fff4ab517ebcd81d |
class NotificationResponse(SuccessResponse): <NEW_LINE> <INDENT> ok = True <NEW_LINE> def __init__(self) -> None: <NEW_LINE> <INDENT> super().__init__(jsonrpc="2.0", result=None, id=NOID) <NEW_LINE> <DEDENT> def __repr__(self) -> str: <NEW_LINE> <INDENT> return "<NotificationResponse()>" <NEW_LINE> <DEDENT> def __str__... | Represents a JSON-RPC notification response object. | 62598fb001c39578d7f12db7 |
class User(BaseModel): <NEW_LINE> <INDENT> email = "" <NEW_LINE> password = "" <NEW_LINE> first_name = "" <NEW_LINE> last_name = "" <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) | User Attributes | 62598fb02ae34c7f260ab11a |
class TestPlaceholderShownQuirks(TestPlaceholderShown): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.purge() <NEW_LINE> self.quirks = True | Test placeholder shown selectors with quirks. | 62598fb0fff4ab517ebcd81e |
class LoginView(View, MonthCalendarMixin): <NEW_LINE> <INDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> form = LoginForm() <NEW_LINE> return render(request, 'accounts/login.html', {'form':form}) <NEW_LINE> <DEDENT> """create method for post request""" <NEW_LINE> def post(self, request, *args, **kwar... | create method for get request | 62598fb07b180e01f3e4906c |
class Pattern (object): <NEW_LINE> <INDENT> def __init__(self): pass <NEW_LINE> def match(self, point): return False | Abstract base for data pattern matching routines. | 62598fb03539df3088ecc2eb |
class Person(XmlObj): <NEW_LINE> <INDENT> type = Attribute() <NEW_LINE> source = Attribute() | A person. | 62598fb026068e7796d4c98e |
@functools.total_ordering <NEW_LINE> class User(object): <NEW_LINE> <INDENT> def __init__(self, nick, user, host): <NEW_LINE> <INDENT> assert isinstance(nick, Identifier) <NEW_LINE> self.nick = nick <NEW_LINE> self.user = user <NEW_LINE> self.host = host <NEW_LINE> self.channels = {} <NEW_LINE> self.account = None <NEW... | A representation of a user Sopel is aware of.
:param nick: the user's nickname
:type nick: :class:`~.tools.Identifier`
:param str user: the user's local username ("user" in `user@host.name`)
:param str host: the user's hostname ("host.name" in `user@host.name`) | 62598fb05fc7496912d4829d |
class DebugListener(RegionProfilerListener): <NEW_LINE> <INDENT> def finalize(self): <NEW_LINE> <INDENT> print('RegionProfiler: Finalizing profiler', file=sys.stderr) <NEW_LINE> <DEDENT> def region_entered(self, profiler, region): <NEW_LINE> <INDENT> ts = region.timer.last_event_time - profiler.root.timer.begin_ts() <N... | Log profiler events to console.
This listener log enter/exit events in real time. Sample output::
RegionProfiler: Entered <main> at 0 ns
RegionProfiler: Entered fetch_mnist() at 641 us
RegionProfiler: Exited fetch_mnist() at 643 ms after 642 ms
RegionProfiler: Entered train at 743 ms
RegionProfile... | 62598fb0627d3e7fe0e06ee7 |
class SshTests(unittest.TestCase): <NEW_LINE> <INDENT> def test_parse_ssh_version(self): <NEW_LINE> <INDENT> ver = ssh._parse_ssh_version('Unknown\n') <NEW_LINE> self.assertEqual(ver, ()) <NEW_LINE> ver = ssh._parse_ssh_version('OpenSSH_1.0\n') <NEW_LINE> self.assertEqual(ver, (1, 0)) <NEW_LINE> ver = ssh._parse_ssh_ve... | Tests the ssh functions. | 62598fb0d58c6744b42dc2f4 |
class OpenAPIClientException(Exception): <NEW_LINE> <INDENT> def __init__(self, message, code=500): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> self.code = code | Raised when there is an error executing requests | 62598fb0a79ad1619776a0a1 |
class EPS_AUTHENTICATION_REJECT(Layer3NASEMM): <NEW_LINE> <INDENT> constructorList = [ie for ie in EMMHeader(Type=84)] | Net -> UE
Dual | 62598fb04f88993c371f0527 |
@patch('doorstop.server.utilities.json_response', Mock(return_value=True)) <NEW_LINE> class TestRoutesJSON(BaseTestCase): <NEW_LINE> <INDENT> def test_get_documents(self): <NEW_LINE> <INDENT> data = self.server.get_documents() <NEW_LINE> self.assertEqual({'prefixes': ['PREFIX', 'PREFIX2']}, data) <NEW_LINE> <DEDENT> de... | Unit tests for the doorstop.web.server module JSON responses. | 62598fb02ae34c7f260ab11b |
class TimestampValidator: <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> self._last_dts: dict[av.stream.Stream, int | float] = defaultdict( lambda: float("-inf") ) <NEW_LINE> self._missing_dts = 0 <NEW_LINE> <DEDENT> def is_valid(self, packet: av.Packet) -> bool: <NEW_LINE> <INDENT> if packet.dts i... | Validate ordering of timestamps for packets in a stream. | 62598fb010dbd63aa1c70bed |
class Company(db.Model): <NEW_LINE> <INDENT> __tablename__ = "companies" <NEW_LINE> company_id = db.Column(db.Integer, autoincrement=True, primary_key=True) <NEW_LINE> key = db.Column(db.String(64), nullable=True, unique=True) <NEW_LINE> company = db.Column(db.String(64), nullable=True) <NEW_LINE> team = db.Column(db.S... | Company contributing data on gender diversity. | 62598fb0283ffb24f3cf38c6 |
class ImageResource ( MImageResource ): <NEW_LINE> <INDENT> _ref = Any <NEW_LINE> def _get_width ( self ): <NEW_LINE> <INDENT> return self.bitmap.width() <NEW_LINE> <DEDENT> def _get_height ( self ): <NEW_LINE> <INDENT> return self.bitmap.height() <NEW_LINE> <DEDENT> def _get_graphics ( self ): <NEW_LINE> <INDENT> retu... | The Qt4 toolkit specific implementation of an ImageResource. See the
i_image_resource module for the API documentation. | 62598fb0cb5e8a47e493c196 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.