code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class Player(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, screen): <NEW_LINE> <INDENT> pygame.sprite.Sprite.__init__(self) <NEW_LINE> self.__pikachuleft = pygame.image.load("1pikachu-left.gif") <NEW_LINE> self.__pikachuleft = self.__pikachuleft.convert() <NEW_LINE> self.__pikachuright = pygame.image.lo...
This class defines the sprite for Player
62598f9e9c8ee82313040068
class deleteStickerFromSet(TelegramMethodBase): <NEW_LINE> <INDENT> ReturnType = bool <NEW_LINE> def __init__(self, sticker: str): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.sticker = sticker
Use this method to delete a sticker from a set created by the bot. Returns True on success. :param sticker: (str) File identifier of the sticker
62598f9e3539df3088ecc0aa
class IotHubClientConfiguration(AzureConfiguration): <NEW_LINE> <INDENT> def __init__( self, credentials, subscription_id, api_version='2016-02-03', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): <NEW_LINE> <INDENT> if credentials is Non...
Configuration for IotHubClient Note that all parameters used to create this instance are saved as instance attributes. :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials object<msrestazure.azure_active_directory>` :param subscription_id: The s...
62598f9e379a373c97d98e0a
class Platforms(object): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> self._config = config <NEW_LINE> <DEDENT> @property <NEW_LINE> def instances(self): <NEW_LINE> <INDENT> return self._config.config['platforms']
Platforms define the instances to be tested, and the groups to which the instances belong. .. code-block:: yaml platforms: - name: instance-1 Multiple instances can be provided. .. code-block:: yaml platforms: - name: instance-1 - name: instance-2 Mapping instances to groups. These grou...
62598f9e442bda511e95c250
class TestAccessLogEntry(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 make_instance(self, include_optional): <NEW_LINE> <INDENT> if include_optional : <NEW_LINE> <INDENT> return AccessLogEntry( ...
AccessLogEntry unit test stubs
62598f9ef7d966606f747ddd
class ListElement: <NEW_LINE> <INDENT> _key = None <NEW_LINE> _next = None <NEW_LINE> _previous = None <NEW_LINE> def __init__(self, key=0): <NEW_LINE> <INDENT> self._key = key <NEW_LINE> <DEDENT> def set_next(self, next_element): <NEW_LINE> <INDENT> self._next = next_element <NEW_LINE> <DEDENT> def get_next(self): <NE...
Class represents elemnt of the list
62598f9e60cbc95b06364142
class Multiplicity (pyxb.binding.basis.complexTypeDefinition): <NEW_LINE> <INDENT> _TypeDefinition = None <NEW_LINE> _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY <NEW_LINE> _Abstract = False <NEW_LINE> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Multiplicity') <NEW_LINE> _XSDL...
Also called "Cardinality". Indicates how many instances of a datatype can/must be associated to a given role. Unless Follows model in XSD, i.e. with explicit lower bound and upper bound on number of instances. maxOccurs must be gte minOccurs, unless it is negative, in which case it corresponds to unbounded.
62598f9e3eb6a72ae038a437
@six.add_metaclass(abc.ABCMeta) <NEW_LINE> class StandardEvaluable(runnable.AbstractEvaluable): <NEW_LINE> <INDENT> def __init__(self, use_tf_function=True): <NEW_LINE> <INDENT> self.eval_use_tf_function = use_tf_function <NEW_LINE> self.eval_dataset = None <NEW_LINE> self.eval_loop_fn = None <NEW_LINE> <DEDENT> @abc.a...
Implements the standard functionality of AbstractEvaluable APIs.
62598f9e66656f66f7d5a1e7
class WebAnnotatorLoader(HtmlLoader): <NEW_LINE> <INDENT> def __init__(self, encoding=None, cleaner=None, known_entities=None): <NEW_LINE> <INDENT> self.known_entities = known_entities <NEW_LINE> super(WebAnnotatorLoader, self).__init__(encoding, cleaner) <NEW_LINE> <DEDENT> def loadbytes(self, data): <NEW_LINE> <INDEN...
Class for loading HTML annotated using `WebAnnotator <https://github.com/xtannier/WebAnnotator>`_. .. note:: Use WebAnnotator's "save format", not "export format".
62598f9e435de62698e9bbea
class Cells: <NEW_LINE> <INDENT> def __init__(self, xi, ori, sim): <NEW_LINE> <INDENT> self.xi = xi <NEW_LINE> self.ori = ori <NEW_LINE> self.vel = {} <NEW_LINE> return <NEW_LINE> <DEDENT> def calculate_ORI(self, sim): <NEW_LINE> <INDENT> ndelay = int(sim.nsteps/2.0) <NEW_LINE> delay = np.zeros((ndelay), dtype=np.float...
data structure for storing cell information
62598f9e24f1403a926857ad
class ConfigApp(Config): <NEW_LINE> <INDENT> def __init__(self, app_id: str, app_key: str, ambiente: str = PRODUCAO): <NEW_LINE> <INDENT> super().__init__(ambiente) <NEW_LINE> self.app_key = app_key <NEW_LINE> self.app_id = app_id <NEW_LINE> <DEDENT> def __repr__(self) -> str: <NEW_LINE> <INDENT> app_key_omitida = '*' ...
Classe que representa uma configuração por app_id e app_key
62598f9efff4ab517ebcd5e3
class League(object): <NEW_LINE> <INDENT> def __init__(self, match_class=Match, teams=[]): <NEW_LINE> <INDENT> self._raw_teams = teams <NEW_LINE> self._wrap_teams() <NEW_LINE> self._round = 0 <NEW_LINE> self._match_class = match_class <NEW_LINE> <DEDENT> @property <NEW_LINE> def round(self): <NEW_LINE> <INDENT> return ...
A generic league-style competition.
62598f9e4e4d56256637221a
class Lightpath(object): <NEW_LINE> <INDENT> _ids = count(0) <NEW_LINE> def __init__(self, route: List[int], wavelength: int): <NEW_LINE> <INDENT> self._id: int = next(self._ids) <NEW_LINE> self._route: List[int] = route <NEW_LINE> self._wavelength: int = wavelength <NEW_LINE> self._holding_time: float = 0.0 <NEW_LINE>...
Emulates a lightpath composed by a route and a wavelength channel Lightpath is pretty much a regular path, but must also specify a wavelength index, since WDM optical networks span multiple wavelength channels over a single fiber link on the topology. A Lightpath object also store a holding time parameter, which is s...
62598f9efbf16365ca793eaf
class BoardJobPost(TimestampMixin, db.Model): <NEW_LINE> <INDENT> __tablename__ = 'board_jobpost' <NEW_LINE> board_id = db.Column(None, db.ForeignKey('board.id'), primary_key=True) <NEW_LINE> board = db.relationship(Board, backref=db.backref('boardposts', lazy='dynamic', cascade='all, delete-orphan')) <NEW_LINE> jobpos...
Link job posts to boards.
62598f9e004d5f362081eef8
class User(CommonModel, db.Model): <NEW_LINE> <INDENT> __tablename__ = 'users' <NEW_LINE> user_id = db.Column(UUID, primary_key=True, default=new_uuid) <NEW_LINE> credentials = db.Column(JSONB, nullable=False) <NEW_LINE> secrets = db.Column(Text) <NEW_LINE> settings = db.Column(JSONB, nullable=False) <NEW_LINE> social ...
Users, many are present in the database.
62598f9ed268445f26639a7e
class Swish(nn.Module): <NEW_LINE> <INDENT> def __init__(self, inplace=False): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.inplace = inplace <NEW_LINE> <DEDENT> def forward(self, x): <NEW_LINE> <INDENT> return swish(x, self.inplace)
Swish activation function [1]. References: [1]: Searching for Activation Functions, https://arxiv.org/abs/1710.05941
62598f9e44b2445a339b6868
class UHF(hf.RHF): <NEW_LINE> <INDENT> def __init__(self, scf_method): <NEW_LINE> <INDENT> hf.RHF.__init__(self, scf_method) <NEW_LINE> if scf_method.with_ssss: <NEW_LINE> <INDENT> self.level = 'SSSS' <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.level = 'LLLL' <NEW_LINE> <DEDENT> <DEDENT> @pyscf.lib.omnimethod <N...
Unrestricted Dirac-Hartree-Fock gradients
62598f9ebaa26c4b54d4f0a4
class MatrixSquareRoot(Function): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def forward(ctx, input): <NEW_LINE> <INDENT> m = input.detach().cpu().numpy().astype(np.float_) <NEW_LINE> sqrtm = torch.from_numpy(scipy.linalg.sqrtm(m).real) <NEW_LINE> ctx.save_for_backward(sqrtm) <NEW_LINE> sqrtm = sqrtm.type_as(input) <...
Square root of a positive definite matrix. Given a positive semi-definite matrix X, X = X^{1/2}X^{1/2}, compute the gradient: dX^{1/2} by solving the Sylvester equation, dX = (d(X^{1/2})X^{1/2} + X^{1/2}(dX^{1/2}).
62598f9e67a9b606de545dbf
class EntityList(list): <NEW_LINE> <INDENT> def __init__(self, data=[], meta=None): <NEW_LINE> <INDENT> list.__init__(self, data) <NEW_LINE> self._meta = meta
EntityList provides an iterable of API entities along with a _meta dictionary that contains information about the query results. This could include result count and pagination details.
62598f9e67a9b606de545dc0
class Windows2008and7(Windows): <NEW_LINE> <INDENT> def __init__(self, tdl, config, auto, output_disk): <NEW_LINE> <INDENT> Windows.__init__(self, tdl, config, output_disk) <NEW_LINE> self.unattendfile = auto <NEW_LINE> if self.unattendfile is None: <NEW_LINE> <INDENT> self.unattendfile = oz.ozutil.generate_full_auto_p...
Class for Windows 2008 and 7 installation.
62598f9e8e7ae83300ee8e96
class ScaledDotProductAttention(nn.Module): <NEW_LINE> <INDENT> def __init__(self, temperature, attn_dropout=0.1): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.temperature = temperature <NEW_LINE> self.dropout = nn.Dropout(attn_dropout) <NEW_LINE> <DEDENT> def forward(self, q, k, v, mask=None): <NEW_LINE> <IN...
Scaled Dot-Product Attention
62598f9e56b00c62f0fb26a6
class RangeBenchmark(benchmark_base.DatasetBenchmarkBase): <NEW_LINE> <INDENT> def _benchmark_range(self, num_elements, autotune, benchmark_id): <NEW_LINE> <INDENT> options = dataset_ops.Options() <NEW_LINE> options.experimental_optimization.autotune = autotune <NEW_LINE> dataset = dataset_ops.Dataset.range(num_element...
Benchmarks for `tf.data.Dataset.range()`.
62598f9ee5267d203ee6b704
class GoogleCloudVisionV1p2beta1WebDetectionWebEntity(_messages.Message): <NEW_LINE> <INDENT> description = _messages.StringField(1) <NEW_LINE> entityId = _messages.StringField(2) <NEW_LINE> score = _messages.FloatField(3, variant=_messages.Variant.FLOAT)
Entity deduced from similar images on the Internet. Fields: description: Canonical description of the entity, in English. entityId: Opaque entity ID. score: Overall relevancy score for the entity. Not normalized and not comparable across different image queries.
62598f9e55399d3f05626318
class HALLink(AttrDict): <NEW_LINE> <INDENT> def __init__(self, *args): <NEW_LINE> <INDENT> AttrDict.__init__(self, *args) <NEW_LINE> if 'href' not in self: <NEW_LINE> <INDENT> raise ValueError( "Missing required href field in link: %s" % self)
Just a normal AttrDict, but one that enforces an 'href' field, so errors get thrown at creation time rather then later when access is attempted
62598f9e8e71fb1e983bb8ad
class StringNode(TreeNodeObject): <NEW_LINE> <INDENT> name = Str() <NEW_LINE> label = Str() <NEW_LINE> value = Str() <NEW_LINE> def tno_allows_children(self, node): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> def tno_has_children(self, node): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> def tno_get_men...
A tree node for strings
62598f9ea219f33f346c6611
class SeveralLagFeature(Feature): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> data = self.load("data") <NEW_LINE> data = data[["id", "sales", "d"]] <NEW_LINE> def shift_lag_feature(shift: int): <NEW_LINE> <INDENT> data[f"shift_{shift}_rolling_mean_t7"] = data.groupby(["id"])[ "sales" ].transform(lambda x: x....
simple feature from kernel(https://www.kaggle.com/ragnar123/very-fst-model)
62598f9e91af0d3eaad39c01
class WorkerPool(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'instance_names': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'worker_size_id': {'key': 'workerSizeId', 'type': 'int'}, 'compute_mode': {'key': 'computeMode', 'type': 'str'}, 'worker_size': {'key': 'workerSize', 'type': 'str'}, 'w...
Worker pool of an App Service Environment. Variables are only populated by the server, and will be ignored when sending a request. :ivar worker_size_id: Worker size ID for referencing this worker pool. :vartype worker_size_id: int :ivar compute_mode: Shared or dedicated app hosting. Possible values include: "Shared",...
62598f9e0c0af96317c56179
class Float(BaseScalar): <NEW_LINE> <INDENT> type = 'F' <NEW_LINE> typename = 'Float_t' <NEW_LINE> def __new__(cls, default=0., **kwargs): <NEW_LINE> <INDENT> return BaseScalar.__new__(cls, 'f', [Float.convert(default)]) <NEW_LINE> <DEDENT> def __init__(self, default=0., **kwargs): <NEW_LINE> <INDENT> BaseScalar.__init...
This is a variable containing a float
62598f9e925a0f43d25e7e34
class PortMetadata(model_base.BASEV2, HasId): <NEW_LINE> <INDENT> __tablename__ = 'port_metadata' <NEW_LINE> port_id = sa.Column(sa.String(36), sa.ForeignKey('ports.id', ondelete="CASCADE"), nullable=False) <NEW_LINE> data = sa.Column(sa.String(1024))
Represents a metadata for port on a Neutron v2 network.
62598f9e85dfad0860cbf970
class NodeUnitInfo(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Id = None <NEW_LINE> self.NodeUnitName = None <NEW_LINE> self.NodeList = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Id = params.get("Id") <NEW_LINE> self.NodeUnitName = params.get("...
NodeUnit信息
62598f9e627d3e7fe0e06ca2
class InstallError(JobError): <NEW_LINE> <INDENT> pass
Indicates an installation error which Terminates and fails the job.
62598f9edd821e528d6d8d2c
class _DictSearch(object): <NEW_LINE> <INDENT> def __init__(self, basedict): <NEW_LINE> <INDENT> self.basedict = basedict <NEW_LINE> <DEDENT> def __getattr__(self, name, PdfName=PdfName): <NEW_LINE> <INDENT> return self[PdfName(name)] <NEW_LINE> <DEDENT> def __getitem__(self, name, set=set, getattr=getattr, id=id): <NE...
Used to search for inheritable attributes.
62598f9e99cbb53fe6830cca
class SPStack(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.stack = [] <NEW_LINE> <DEDENT> def push(self, lmn): <NEW_LINE> <INDENT> self.stack += [lmn] <NEW_LINE> <DEDENT> def top(self): <NEW_LINE> <INDENT> assert not self.empty(), 'stack empty' <NEW_LINE> return self.stack[-1] <NEW_LINE> <D...
simple LIFO
62598f9e009cb60464d0131c
class FeedServiceStub(object): <NEW_LINE> <INDENT> def __init__(self, channel): <NEW_LINE> <INDENT> self.GetFeed = channel.unary_unary( '/google.ads.googleads.v2.services.FeedService/GetFeed', request_serializer=google_dot_ads_dot_googleads__v2_dot_proto_dot_services_dot_feed__service__pb2.GetFeedRequest.SerializeToStr...
Proto file describing the Feed service. Service to manage feeds.
62598f9e8da39b475be02fd7
class DataTriageCSV(object): <NEW_LINE> <INDENT> def __init__(self, data_path, n_tests=1): <NEW_LINE> <INDENT> self.data_path = data_path <NEW_LINE> self.n_tests = n_tests <NEW_LINE> self.X, self.y = self._load_dataset_from_path() <NEW_LINE> self.n = len(self.y) <NEW_LINE> self.y_true, self.y_experimental = self._forma...
This Parent takes a dataset which is to be assessed by the AMI and then performs the necessary pre-processing steps on the data set including: loading the data into numpy arrays, formatting the target values into the correct representation and other values. Children of this class allow for multiple types of files to b...
62598f9ee76e3b2f99fd882f
class ObserverInterface(): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> @abc.abstractmethod <NEW_LINE> def update(self, disaster_signal): <NEW_LINE> <INDENT> pass
Interfaces for displays
62598f9ee5267d203ee6b705
class MetsHdr(MetsBase): <NEW_LINE> <INDENT> tag = "metsHdr" <NEW_LINE> contained_children = ["agent", "altRecordID", "metsDocumentID"] <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.atts = { "RECORDSTATUS": None, "CREATEDATE": None, "LASTMODDATE": None, "ID": None} <NEW_LINE> super(MetsHdr, self)._...
Wrapper for metsHdr element.
62598f9e2ae34c7f260aaed8
class LogOp(Op): <NEW_LINE> <INDENT> def __call__(self, node_A): <NEW_LINE> <INDENT> new_node = Op.__call__(self) <NEW_LINE> new_node.inputs = [node_A] <NEW_LINE> new_node.name = "Log(%s)" % (node_A.name) <NEW_LINE> return new_node <NEW_LINE> <DEDENT> def compute(self, node, input_vals): <NEW_LINE> <INDENT> assert(isin...
Op that calculate cross entropy.
62598f9e5f7d997b871f92db
class str(measure): <NEW_LINE> <INDENT> @property <NEW_LINE> def decl(self): <NEW_LINE> <INDENT> size = self.maxlen <NEW_LINE> return 'TEXT' if size is None else 'VARCHAR({})'.format(size) <NEW_LINE> <DEDENT> def sql(self, value): <NEW_LINE> <INDENT> if value is None: <NEW_LINE> <INDENT> return "'None'" <NEW_LINE> <DED...
Mixin for strings
62598f9edd821e528d6d8d2d
class ReceiptInfo(object): <NEW_LINE> <INDENT> def __init__(self, transaction_number, total, subtotal, tax_edible, tax_non_edible, tax_rate_edible, tax_rate_nonedible, transaction_type): <NEW_LINE> <INDENT> self.transaction_number = transaction_number <NEW_LINE> self.total = total <NEW_LINE> self.subtotal = subtotal <N...
A struct with all the necessary info for the receipt
62598f9ee64d504609df92b4
class BackgroundRunner: <NEW_LINE> <INDENT> def __init__(self, max_workers=None): <NEW_LINE> <INDENT> if max_workers is None: <NEW_LINE> <INDENT> max_workers = multiprocessing.cpu_count() - 1 <NEW_LINE> <DEDENT> if max_workers == 1: <NEW_LINE> <INDENT> self.executor = None <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> ...
Class for running jobs in background processes.Use submit() to add jobs, and then wait() to get the results for each submitted job: either the return value on successful completion, or an exception object. Wait() will only wait until the first exception, and after that will attempt to cancel all pending jobs. If max_...
62598f9e097d151d1a2c0e20
class ShowIpv6MldSsmMapSchema(MetaParser): <NEW_LINE> <INDENT> schema = {'vrf': {Any(): { 'ssm_map': { Any(): { 'source_addr': str, 'group_address': str, 'database': str, 'group_mode_ssm': bool } } }, } }
Schema for: show ipv6 mld ssm-map <group_address> show ipv6 mld vrf <vrf> ssm-map <group_address>
62598f9ed268445f26639a7f
class CustomShMock(object): <NEW_LINE> <INDENT> def fail_on_pep8(self, arg): <NEW_LINE> <INDENT> if "pep8" in arg: <NEW_LINE> <INDENT> paver.easy.sh("exit 1") <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> <DEDENT> def fail_on_pylint(self, arg): <NEW_LINE> <INDENT> if "pylint" in arg: <NEW_LIN...
Diff-quality makes a number of sh calls. None of those calls should be made during tests; however, some of them need to have certain responses.
62598f9e63d6d428bbee25aa
class InvalidObserver(object): <NEW_LINE> <INDENT> def __init__(self, active): <NEW_LINE> <INDENT> self.active = active <NEW_LINE> <DEDENT> def __bool__(self): <NEW_LINE> <INDENT> return self.active <NEW_LINE> <DEDENT> __nonzero__ = __bool__ <NEW_LINE> def __call__(self, change): <NEW_LINE> <INDENT> pass
Silly callable which always evaluate to false.
62598f9e21bff66bcd722a5c
class TransitionFactory(DjangoModelFactory): <NEW_LINE> <INDENT> FACTORY_FOR = Transition <NEW_LINE> name = 'change-hostname' <NEW_LINE> slug = 'change-hostname' <NEW_LINE> to_status = AssetStatus.in_progress <NEW_LINE> required_report = False
Actions in transition must by added manually in tests
62598f9e7d847024c075c1c8
class Package(object): <NEW_LINE> <INDENT> LIST_SCHEMA = '' <NEW_LINE> HISTORY_SCHEMA = '' <NEW_LINE> def __init__(self, project, name): <NEW_LINE> <INDENT> super(Package, self).__init__() <NEW_LINE> self.project = project <NEW_LINE> self.name = name <NEW_LINE> <DEDENT> def get(self, name): <NEW_LINE> <INDENT> return g...
Class used to access /source/project/package data
62598f9e6fb2d068a7693d30
class FilterByServer(HierarchicalBucketFilter): <NEW_LINE> <INDENT> sweepInterval = None <NEW_LINE> def getBucketKey(self, transport): <NEW_LINE> <INDENT> return transport.getHost()[2]
A bucket filter with a bucket for each service.
62598f9e56b00c62f0fb26a8
class QuotaEngine(object): <NEW_LINE> <INDENT> def __init__(self, quota_driver_class=None): <NEW_LINE> <INDENT> self._resources = {} <NEW_LINE> if not quota_driver_class: <NEW_LINE> <INDENT> quota_driver_class = CONF.quota_driver <NEW_LINE> <DEDENT> if isinstance(quota_driver_class, basestring): <NEW_LINE> <INDENT> quo...
Represent the set of recognized quotas.
62598f9e99cbb53fe6830ccb
class SubmapList(metaclass=Metaclass): <NEW_LINE> <INDENT> __slots__ = [ '_header', '_trajectory', ] <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> assert all(['_' + key in self.__slots__ for key in kwargs.keys()]), 'Invalid arguments passed to constructor: %r' % kwargs.keys() <NEW_LINE> from s...
Message class 'SubmapList'.
62598f9e30bbd72246469873
class DiceBaseBlock(nn.Module): <NEW_LINE> <INDENT> def __init__(self, channels, in_size): <NEW_LINE> <INDENT> super(DiceBaseBlock, self).__init__() <NEW_LINE> mid_channels = 3 * channels <NEW_LINE> self.convs = Concurrent() <NEW_LINE> self.convs.add_module("ch_conv", conv3x3( in_channels=channels, out_channels=channel...
Base part of DiCE block (without attention). Parameters: ---------- channels : int Number of input/output channels. in_size : tuple of two ints Spatial size of the expected input image.
62598f9e3539df3088ecc0ae
class Prefs(object): <NEW_LINE> <INDENT> _prefs = {} <NEW_LINE> filename = None <NEW_LINE> autosave = False <NEW_LINE> __borg_state = {} <NEW_LINE> def __init__(self, filename=None): <NEW_LINE> <INDENT> self.__dict__ = self.__borg_state <NEW_LINE> if filename is not None: <NEW_LINE> <INDENT> self.filename = filename <N...
This is a preferences backend object used to: - Hold the ConfigShell preferences - Handle persistent storage and retrieval of these preferences - Share the preferences between the ConfigShell and ConfigNode objects As it is inherently destined to be shared between objects, this is a Borg.
62598f9e4a966d76dd5eecda
class HandleSegFault(GenericCommand): <NEW_LINE> <INDENT> _cmdline_ = "handlesegfault" <NEW_LINE> _syntax_ = "{:s}".format(_cmdline_) <NEW_LINE> @only_if_gdb_running <NEW_LINE> def do_invoke(self, argv): <NEW_LINE> <INDENT> print("segfault pc = {:#x}".format(current_arch.pc)) <NEW_LINE> address = int(gdb.parse_and_eval...
Dummy new command.
62598f9e07f4c71912baf244
class MazeReader: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def read_from_file(self, filename): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> with open(filename) as input_file: <NEW_LINE> <INDENT> content = input_file.readlines() <NEW_LINE> <DEDENT> <DEDENT> except Exception as...
A class to read mazes from input files into a format the MazeGraph class can parse.
62598f9e32920d7e50bc5e4f
class UpdateAttachment(CreateAttachment, UpdateView): <NEW_LINE> <INDENT> permission_required = 'change_attachment'
Use to edit attachments.
62598f9e442bda511e95c254
class ISRES(Optimizer): <NEW_LINE> <INDENT> ISRES_CONFIGURATION = { 'name': 'ISRES', 'description': 'GN_ISRES Optimizer', 'input_schema': { '$schema': 'http://json-schema.org/schema#', 'id': 'isres_schema', 'type': 'object', 'properties': { 'max_evals': { 'type': 'integer', 'default': 1000 } }, 'additionalProperties': ...
ISRES (Improved Stochastic Ranking Evolution Strategy) NLopt global optimizer, derivative-free http://nlopt.readthedocs.io/en/latest/NLopt_Algorithms/#isres-improved-stochastic-ranking-evolution-strategy
62598f9e3d592f4c4edbacc7
class ServerMsgResultDataFixtureEx(ServerMsgResultData): <NEW_LINE> <INDENT> protocol = ServerMsgProtocol.FixtureEx <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._msg = "" <NEW_LINE> self._values = DataFixtureDataValues() <NEW_LINE> self._url = "" <NEW_LINE> <DEDENT> def append(s...
封装可扩展赛程协议。 ServerMsgResultDataFixtureEx类需要调用下面几个method进行设置 ins.msg = str() ins.url = "" # 此处url需要根据league_id进行拼接 ins.append(DataFixtureData()) 例: { "msg": "测试比赛", "url": "", "values": [{ "items": [{ "away_name": "", "away_team_id": 0, "bg": "", ...
62598f9e236d856c2adc9336
class CaseSelectionResource(BaseSelectionResource): <NEW_LINE> <INDENT> case = fields.ForeignKey(CaseResource, "case") <NEW_LINE> productversion = fields.ForeignKey( ProductVersionResource, "productversion") <NEW_LINE> tags = fields.ToManyField(TagResource, "tags", full=True) <NEW_LINE> created_by = fields.ForeignKey( ...
Specialty end-point for an AJAX call in the Suite form multi-select widget for selecting cases.
62598f9ebe8e80087fbbee58
class StateConfig(configparser.ConfigParser): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._filename = os.path.join(standarddir.data(), 'state') <NEW_LINE> self.read(self._filename, encoding='utf-8') <NEW_LINE> qt_version = qVersion() <NEW_LINE> if 'general' in ...
The "state" file saving various application state.
62598f9edd821e528d6d8d2e
class TestMediaWikiCommand(unittest.TestCase): <NEW_LINE> <INDENT> def test_backend_class(self): <NEW_LINE> <INDENT> self.assertIs(MediaWikiCommand.BACKEND, MediaWiki) <NEW_LINE> <DEDENT> def test_setup_cmd_parser(self): <NEW_LINE> <INDENT> parser = MediaWikiCommand.setup_cmd_parser() <NEW_LINE> self.assertIsInstance(p...
Tests for MediaWikiCommand class
62598f9e009cb60464d0131f
class svn_location_segment_receiver_t: <NEW_LINE> <INDENT> __swig_setmethods__ = {} <NEW_LINE> __setattr__ = lambda self, name, value: _swig_setattr(self, svn_location_segment_receiver_t, name, value) <NEW_LINE> __swig_getmethods__ = {} <NEW_LINE> __getattr__ = lambda self, name: _swig_getattr(self, svn_location_segmen...
Proxy of C svn_location_segment_receiver_t struct
62598f9e5f7d997b871f92dc
class CDiscountDataset(Dataset): <NEW_LINE> <INDENT> def __init__(self, root, txt_file, num_classes, transform=None, loader=default_loader): <NEW_LINE> <INDENT> self.root = root <NEW_LINE> self.imgs=[] <NEW_LINE> with open(txt_file,'r') as f: <NEW_LINE> <INDENT> for line in f.readlines(): <NEW_LINE> <INDENT> line=line....
Face Landmarks dataset.
62598f9e097d151d1a2c0e22
class AuditEventSource(fhirelement.FHIRElement): <NEW_LINE> <INDENT> resource_name = "AuditEventSource" <NEW_LINE> def __init__(self, jsondict=None): <NEW_LINE> <INDENT> self.identifier = None <NEW_LINE> self.site = None <NEW_LINE> self.type = None <NEW_LINE> super(AuditEventSource, self).__init__(jsondict) <NEW_LINE> ...
Application systems and processes.
62598f9e0c0af96317c5617c
class PresetButton(QPushButton): <NEW_LINE> <INDENT> def __init__(self, radius, fraction): <NEW_LINE> <INDENT> super(PresetButton, self).__init__() <NEW_LINE> self.fraction = 0 <NEW_LINE> self.angle = 0 <NEW_LINE> self.set_fraction(fraction) <NEW_LINE> stroke_w = apply_dpi_scaling(2) <NEW_LINE> self.padding_y = apply_d...
Subclass for creating and drawing the fraction buttons
62598f9e7d847024c075c1ca
class NOILoginForm(LoginForm): <NEW_LINE> <INDENT> email = StringField(lazy_gettext('Email')) <NEW_LINE> password = PasswordField(lazy_gettext('Password')) <NEW_LINE> remember = BooleanField(lazy_gettext('Remember Me')) <NEW_LINE> submit = SubmitField(lazy_gettext('Log in'))
Localizeable version of Flask-Security's LoginForm
62598f9e379a373c97d98e0f
class SetIndex(PdPipelineStage): <NEW_LINE> <INDENT> _DEF_SETIDX_EXC_MSG = "SetIndex stage failed." <NEW_LINE> _DEF_SETIDX_APP_MSG = "Setting indexes..." <NEW_LINE> _SETINDEX_KWARGS = ['drop', 'append', 'verify_integrity'] <NEW_LINE> def __init__(self, keys, **kwargs): <NEW_LINE> <INDENT> common = set(kwargs.keys()).in...
A pipeline stage that set existing columns as index. Supports all parameter supported by pandas.set_index function except for `inplace`. Example ------- >> import pandas as pd; import pdpipe as pdp; >> df = pd.DataFrame([[1,4],[3, 11]], [1,2], ['a','b']) >> pdp.SetIndex('a').apply(df) b a 1 4 3 11
62598f9e8e71fb1e983bb8b0
class SSLAdapter(HTTPAdapter): <NEW_LINE> <INDENT> __attrs__ = HTTPAdapter.__attrs__ + ['ssl_version'] <NEW_LINE> def __init__(self, ssl_version=None, **kwargs): <NEW_LINE> <INDENT> self.ssl_version = ssl_version <NEW_LINE> super(SSLAdapter, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def init_poolmanager(self, connec...
A HTTPS Adapter for Python Requests that allows the choice of the SSL/TLS version negotiated by Requests. This can be used either to enforce the choice of high-security TLS versions (where supported), or to work around misbehaving servers that fail to correctly negotiate the default TLS version being offered. Example ...
62598f9e498bea3a75a5791b
class TransactionCase(BaseCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> TransactionCase.cr = self.cursor() <NEW_LINE> TransactionCase.uid = openerp.SUPERUSER_ID <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> self.cr.rollback() <NEW_LINE> self.cr.close()
Subclass of BaseCase with a single transaction, rolled-back at the end of each test (method).
62598f9e55399d3f0562631c
class LocalizeStaticMiddleware(object): <NEW_LINE> <INDENT> def process_response(self, request, response): <NEW_LINE> <INDENT> if settings.DEBUG == False: <NEW_LINE> <INDENT> return response <NEW_LINE> <DEDENT> if not hasattr(settings, 'LOCALIZE_STATIC'): <NEW_LINE> <INDENT> return response <NEW_LINE> <DEDENT> if 'text...
Process links for static files, replase external links to local links if file exists.
62598f9ecc0a2c111447ae07
class JsonCharacteristicTypeAssignmentReference(object): <NEW_LINE> <INDENT> swagger_types = { 'id': 'str', 'min': 'float', 'max': 'float', 'type': 'JsonResourceType' } <NEW_LINE> attribute_map = { 'id': 'id', 'min': 'min', 'max': 'max', 'type': 'type' } <NEW_LINE> def __init__(self, id=None, min=None, max=None, type=N...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f9e8e71fb1e983bb8b1
class ServerPackagesRepository(CachedRepository): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def revision(repository_id): <NEW_LINE> <INDENT> from entropy.server.interfaces import Server <NEW_LINE> srv = Server() <NEW_LINE> return srv.local_repository_revision(repository_id) <NEW_LINE> <DEDENT> @staticmethod <NEW_LIN...
This class represents the installed packages repository and is a direct subclass of EntropyRepository.
62598f9e99cbb53fe6830ccd
class Relationship: <NEW_LINE> <INDENT> def __init__(self, name, _from, to, on): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._from = _from <NEW_LINE> self._to = to <NEW_LINE> self._on = on
Classe que representa um relacionamento entre DataTables Essa classe tem todas as informações que identificam um relacionamento entre tabelas. Em qual coluna ele existe, de onde vem e pra onde vai.
62598f9ef548e778e596b3a7
class Catalog(Model): <NEW_LINE> <INDENT> _attribute_map = { 'total_items': {'key': 'total_items', 'type': 'int'}, 'data': {'key': 'data', 'type': '[str]'}, } <NEW_LINE> def __init__(self, total_items=None, data=None): <NEW_LINE> <INDENT> super(Catalog, self).__init__() <NEW_LINE> self.total_items = total_items <NEW_LI...
Catalog. :param total_items: :type total_items: int :param data: :type data: list[str]
62598f9e7047854f4633f1dd
class Car(): <NEW_LINE> <INDENT> def __init__(self,make,model,year): <NEW_LINE> <INDENT> self.make = make <NEW_LINE> self.model = model <NEW_LINE> self.year = year <NEW_LINE> self.odometer_reading = 0 <NEW_LINE> <DEDENT> def fill_gas_tank(self): <NEW_LINE> <INDENT> print('The '+ self.model + 'fuel capacity is 50 litre'...
一次模拟汽车的简单尝试
62598f9e30bbd72246469874
class DiscoveryStub(object): <NEW_LINE> <INDENT> def __init__(self, channel): <NEW_LINE> <INDENT> self.Announce = channel.unary_unary( '/discovery.Discovery/Announce', request_serializer=Announcement.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) <NEW_LINE> self.GetAll =...
The Discovery service is used to discover services within The Things Network.
62598f9ee1aae11d1e7ce722
class Benchmark: <NEW_LINE> <INDENT> def __init__(self, bounds, global_minima, func, **kwargs): <NEW_LINE> <INDENT> self.func = func <NEW_LINE> self._bounds = bounds <NEW_LINE> self._global_minima = global_minima <NEW_LINE> self.kwargs = kwargs <NEW_LINE> for key, value in kwargs.items(): <NEW_LINE> <INDENT> setattr(se...
Benchmark function wrapper. Enables setting and getting of benchmark properties while also acting as a function.
62598f9e9c8ee8231304006b
class AnkiEmpty(AnkiTest): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> (self.fd, self.name) = tempfile.mkstemp(suffix=".anki2") <NEW_LINE> os.close(self.fd) <NEW_LINE> os.unlink(self.name) <NEW_LINE> super().__init__(Anki(path=self.name))
Create Anki collection wrapper for an empty collection
62598f9eac7a0e7691f72306
class HubVirtualNetworkConnection(SubResource): <NEW_LINE> <INDENT> _validation = { 'etag': {'readonly': True}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'remote_virtual_ne...
HubVirtualNetworkConnection Resource. Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str :param name: The name of the resource that is unique within a resource group. This name can be used to access the resource. :type name: str :ivar etag: A...
62598f9e925a0f43d25e7e38
@ComponentFactory("eventadmin-shell-commands-factory") <NEW_LINE> @Requires("_events", pelix.services.SERVICE_EVENT_ADMIN) <NEW_LINE> @Provides(SHELL_COMMAND_SPEC) <NEW_LINE> @Instantiate("eventadmin-shell-commands") <NEW_LINE> class EventAdminCommands(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT...
EventAdmin shell commands
62598f9e3d592f4c4edbacc9
class Port(object): <NEW_LINE> <INDENT> def __init__(self, data_type=MAKE_DATA()): <NEW_LINE> <INDENT> self._data_type = data_type <NEW_LINE> self._pipes = [] <NEW_LINE> <DEDENT> def __delitem__(self, key): <NEW_LINE> <INDENT> del self._pipes[key] <NEW_LINE> <DEDENT> def index(self, pipe): <NEW_LINE> <INDENT> return se...
class to define a connection port in sink or in pump
62598f9e6aa9bd52df0d4cc8
class StringLabeler(Labeler): <NEW_LINE> <INDENT> def __init__(self, labels=[]): <NEW_LINE> <INDENT> self._labels = [] <NEW_LINE> self.setLabels(labels) <NEW_LINE> <DEDENT> def setLabels(self, labels): <NEW_LINE> <INDENT> if isinstance(labels, list) or isinstance(labels, tuple): <NEW_LINE> <INDENT> self._labels = list(...
Labels that are manually specified by the user. If the user specifies fewer labels than the number of locations that are requested, then empty strings are added. If there are too many labels, then the label list is truncated.
62598f9ea8370b77170f01df
class Command(BaseCommand): <NEW_LINE> <INDENT> def handle(self, *args, **options): <NEW_LINE> <INDENT> new_state, created = State.objects.get_or_create( abbreviation='CA', name='California') <NEW_LINE> placeholder, created = State.objects.get_or_create( abbreviation='N/A', name='N/A')
Populate State model.
62598f9e8e7ae83300ee8e9b
class HTMLWriter(object): <NEW_LINE> <INDENT> def __init__(self, build_path, template): <NEW_LINE> <INDENT> self.build_path = build_path <NEW_LINE> self.template = template <NEW_LINE> quiet_mkdir(self.build_path) <NEW_LINE> <DEDENT> def write(self, base, data): <NEW_LINE> <INDENT> path_prefix = '..' <NEW_LINE> quiet_mk...
HTML Writer, builds documentation
62598f9e435de62698e9bbef
class CoordinateParser(PunchParser): <NEW_LINE> <INDENT> def test(self, line, data): <NEW_LINE> <INDENT> return "symbols" in data and line == " COORDINATES OF SYMMETRY UNIQUE ATOMS (ANGS)\n" <NEW_LINE> <DEDENT> def read(self, line, f, data): <NEW_LINE> <INDENT> f.readline() <NEW_LINE> f.readline() <NEW_LINE> N = len(da...
Extracts ``numbers`` and ``coordinates`` from the punch file.
62598f9e8da39b475be02fdb
class MnistMLP(chainer.Chain): <NEW_LINE> <INDENT> def __init__(self, n_in, n_units, n_out): <NEW_LINE> <INDENT> super(MnistMLP, self).__init__( l1=L.Linear(n_in, n_units), l2=L.Linear(n_units, n_units), l3=L.Linear(n_units, n_out), ) <NEW_LINE> <DEDENT> def __call__(self, x): <NEW_LINE> <INDENT> h1 = F.relu(self.l1(x)...
An example of multi-layer perceptron for MNIST dataset. This is a very simple implementation of an MLP. You can modify this code to build your own neural net.
62598f9e24f1403a926857b0
class PublishNoticeView(View): <NEW_LINE> <INDENT> def post(self,request): <NEW_LINE> <INDENT> title = request.POST.get('title','') <NEW_LINE> content = request.POST.get('content','') <NEW_LINE> Note =Notice() <NEW_LINE> Note.title = title <NEW_LINE> Note.content = content <NEW_LINE> Note.save() <NEW_LINE> return HttpR...
管理员在首页快速发布通知
62598f9e462c4b4f79dbb807
class BlogTag(models.Model): <NEW_LINE> <INDENT> objects = BlogTagManager() <NEW_LINE> name = models.CharField(max_length=255, unique=True) <NEW_LINE> slug = models.SlugField(unique=True, max_length=120) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <I...
A blog entry tag TODO: Add a usage counter! So we can easy sort from more to less usages and building a tag cloud is easier.
62598f9e10dbd63aa1c709b1
class LdapConnectionsCommand(DefaultCommand): <NEW_LINE> <INDENT> IDENTIFIER = "label" <NEW_LINE> DEFAULT_SORT = "label" <NEW_LINE> RESOURCE_IDENTIFIER = "uuid" <NEW_LINE> DEFAULT_TOTAL = "Ldap connection found : %(count)s" <NEW_LINE> MSG_RS_NOT_FOUND = "No Ldap connection could be found." <NEW_LINE> MSG_RS_DELETED = (...
For api >= 1.9
62598f9e21a7993f00c65d7f
class Attribute(object): <NEW_LINE> <INDENT> CREATED = "created" <NEW_LINE> CHANGED = "changed" <NEW_LINE> READ = "read" <NEW_LINE> def __init__(self, operation, name, given_value=None, new_value=None): <NEW_LINE> <INDENT> assert operation in [self.CREATED, self.CHANGED, self.READ] <NEW_LINE> assert isinstance(name, st...
Represents mock attribute state for create, read and write and the relating values.
62598f9e44b2445a339b686b
class Galactic(BaseCoordinateFrame): <NEW_LINE> <INDENT> frame_specific_representation_info = { 'spherical': [RepresentationMapping('lon', 'l'), RepresentationMapping('lat', 'b')], 'cartesian': [RepresentationMapping('x', 'w'), RepresentationMapping('y', 'u'), RepresentationMapping('z', 'v')] } <NEW_LINE> frame_specifi...
Galactic Coordinates. Parameters ---------- representation : `BaseRepresentation` or None A representation object or None to have no data (or use the other keywords) l : `Angle`, optional, must be keyword The Galactic longitude for this object (``b`` must also be given and ``representation`` must be None)....
62598f9e1f5feb6acb162a1e
class IpacHeader(BaseHeader): <NEW_LINE> <INDENT> comment = r'\\' <NEW_LINE> splitter_class = BaseSplitter <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.splitter = self.__class__.splitter_class() <NEW_LINE> self.splitter.process_line = None <NEW_LINE> self.splitter.process_val = None <NEW_LINE> self.splitter....
IPAC table header
62598f9e8e7ae83300ee8e9c
class MongoDbLinkedService(LinkedService): <NEW_LINE> <INDENT> _validation = { 'type': {'required': True}, 'server': {'required': True}, 'database_name': {'required': True}, } <NEW_LINE> _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'connect_via': {'key': 'connectVia', 'type': 'Integratio...
Linked service for MongoDb data source. :param additional_properties: Unmatched properties from the message are deserialized this collection :type additional_properties: dict[str, object] :param connect_via: The integration runtime reference. :type connect_via: ~azure.mgmt.datafactory.models.IntegrationRuntimeRefere...
62598f9e656771135c48947f
class retry_scenario(object): <NEW_LINE> <INDENT> def __init__(self, retries, delay, multiplier, context_string=None): <NEW_LINE> <INDENT> self.retries = retries <NEW_LINE> self.delay = delay <NEW_LINE> self.multiplier = multiplier <NEW_LINE> self.context_string = context_string <NEW_LINE> <DEDENT> def munge_delay(self...
Stores context information about a test scenario. See https://docs.irods.org/4.2.4/plugins/composable_resources
62598f9e0a50d4780f7051d6
class TestCreateRecordingParameters(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 testCreateRecordingParameters(self): <NEW_LINE> <INDENT> model = dialmycalls_client.models.create_recording_param...
CreateRecordingParameters unit test stubs
62598f9e67a9b606de545dc5
class TestXmlNs0ChangeAttributeRequest(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 testXmlNs0ChangeAttributeRequest(self): <NEW_LINE> <INDENT> pass
XmlNs0ChangeAttributeRequest unit test stubs
62598f9ee5267d203ee6b70a
class LRDataset(data.Dataset): <NEW_LINE> <INDENT> def __init__(self, opt): <NEW_LINE> <INDENT> super(LRDataset, self).__init__() <NEW_LINE> self.opt = opt <NEW_LINE> self.paths_LR = None <NEW_LINE> self.LR_env = None <NEW_LINE> self.LR_env, self.paths_LR = util.get_image_paths( opt["data_type"], opt["dataroot_LR"] ) <...
Read LR images only in the test phase.
62598f9e7b25080760ed72a4
class StructType(PointerType): <NEW_LINE> <INDENT> def __init__(self, struct_type_getter, nullable=False): <NEW_LINE> <INDENT> PointerType.__init__(self) <NEW_LINE> self._struct_type_getter = struct_type_getter <NEW_LINE> self._struct_type = None <NEW_LINE> self.nullable = nullable <NEW_LINE> <DEDENT> @property <NEW_LI...
Type object for structs.
62598f9e3c8af77a43b67e3d
class Database(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.db_path = notmuch_settings.get('database', 'path') <NEW_LINE> <DEDENT> def do_query(self, query): <NEW_LINE> <INDENT> if hasattr(self, 'query'): <NEW_LINE> <INDENT> if query: <NEW_LINE> <INDENT> query = '(%s) AND (%s)' % (query, se...
Convenience wrapper around `notmuch`.
62598f9e7047854f4633f1e0
class StaticGenome(Genome): <NEW_LINE> <INDENT> pass
Realization of Genome. Basically, a StaticGenome is a python code with quantity of arguments and attributes.
62598f9e91af0d3eaad39c07
class PathPlot(GraphPlot): <NEW_LINE> <INDENT> def __init__(self, xlist, ylist, path=[], labels=None, **keywords): <NEW_LINE> <INDENT> edges = zip(path,path[1:]) <NEW_LINE> GraphPlot.__init__(self, xlist, ylist, edges, labels, **keywords)
Given a set of vertices and a path through those vertices. The path is a sequence (list or tuple) specifying the order in which vertices are visited.
62598f9e30bbd72246469875
@attributes(["going", "coming", "creating", "resizing", "deleting"]) <NEW_LINE> class DatasetChanges(object): <NEW_LINE> <INDENT> pass
The dataset-related changes necessary to change the current state to the desired state. :ivar frozenset going: The ``DatasetHandoff``\ s necessary to let other nodes take over hosting datasets being moved away from a node. These must be handed off. :ivar frozenset coming: The ``Dataset``\ s necessary to let ...
62598f9e85dfad0860cbf973