code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class Environment: <NEW_LINE> <INDENT> def __init__(self, polygons): <NEW_LINE> <INDENT> self.polygons = polygons <NEW_LINE> min_x, max_x, min_y, max_y = np.inf, -np.inf, np.inf, -np.inf <NEW_LINE> for polygon in self.polygons: <NEW_LINE> <INDENT> for vertex in polygon.vertices: <NEW_LINE> <INDENT> min_x = min(min_x, v...
ProblemConfigurations description of the environment, given by a list of polygons.
62598fa38e71fb1e983bb94b
class Group(models.Model): <NEW_LINE> <INDENT> class Meta(object): <NEW_LINE> <INDENT> verbose_name = u"Група" <NEW_LINE> verbose_name_plural = u"Групи" <NEW_LINE> <DEDENT> title = models.CharField( max_length=256, blank=False, verbose_name=u"Назва групи") <NEW_LINE> leader = models.OneToOneField('Student', verbose_nam...
Group Model
62598fa345492302aabfc36a
class ModelMutatedDuringJobError(base_validation_errors.BaseAuditError): <NEW_LINE> <INDENT> def __init__(self, model): <NEW_LINE> <INDENT> message = ( 'published_on=%r is later than the audit job\'s start time' % ( model.published_on)) <NEW_LINE> super(ModelMutatedDuringJobError, self).__init__(message, model)
Error class for models mutated during a job.
62598fa33539df3088ecc14e
class Humanoid(base.Task): <NEW_LINE> <INDENT> def __init__(self, move_speed, pure_state, random=None): <NEW_LINE> <INDENT> self._move_speed = move_speed <NEW_LINE> self._pure_state = pure_state <NEW_LINE> super(Humanoid, self).__init__(random=random) <NEW_LINE> <DEDENT> def initialize_episode(self, physics): <NEW_LINE...
A humanoid task.
62598fa3498bea3a75a579bc
class SaImmAttrDefinitionT(Structure): <NEW_LINE> <INDENT> _fields_ = [('attrName', SaImmAttrNameT), ('attrValueType', SaImmValueTypeT), ('attrFlags', SaImmAttrFlagsT), ('attrNtfId', SaUint32T), ('attrDefaultValue', SaImmAttrValueT)]
Contain characteristics of an attribute belonging to an object class.
62598fa33eb6a72ae038a4de
class HelloView(tk.Frame): <NEW_LINE> <INDENT> def __init__(self, parent, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(parent, *args, **kwargs) <NEW_LINE> self.name = tk.StringVar() <NEW_LINE> self.hello_string = tk.StringVar() <NEW_LINE> self.hello_string.set("Hello") <NEW_LINE> name_label = ttk.Label(self, ...
A friendly little module
62598fa3be383301e0253692
class Room(object): <NEW_LINE> <INDENT> def __init__(self, size): <NEW_LINE> <INDENT> self.size = size <NEW_LINE> self.grid = {} <NEW_LINE> <DEDENT> def fetch(self, x, y): <NEW_LINE> <INDENT> return self.grid.setdefault((x, y), ' ') <NEW_LINE> <DEDENT> def store(self, x, y, c): <NEW_LINE> <INDENT> self.grid[(x, y)] = c...
A square grid of characters. >>> r = Room(3) >>> r.store(0, 0, 'a') >>> r.store(1, 0, 'b') >>> r.store(2, 0, 'c') >>> r.store(0, 1, '-') >>> r.store(0, 2, 'A') >>> r.store(2, 2, 'Z') >>> print r abc - A Z
62598fa34f88993c371f0457
class Person(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.status='hungry' <NEW_LINE> self.defense=100+lmao['durability'] <NEW_LINE> self.atk=1+lmao['atk'] <NEW_LINE> self.xp=300 <NEW_LINE> self.health=500+self.defense <NEW_LINE> self.know=0+lmao['atk'] <NEW_LINE> <DEDENT> def attack(self, some_an...
All elements of person
62598fa3f548e778e596b43e
class ProductionConfig(Config): <NEW_LINE> <INDENT> DEBUG = False <NEW_LINE> TESTING = False
Production configurations
62598fa3baa26c4b54d4f14b
class PluginTestCase(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(PluginTestCase, self).setUp() <NEW_LINE> self.old_horizon_config = conf.HORIZON_CONFIG <NEW_LINE> conf.HORIZON_CONFIG = conf.LazySettings() <NEW_LINE> base.Horizon._urls() <NEW_LINE> self.client.get("/") <NEW_LINE> self._disc...
The ``PluginTestCase`` class is for use with tests which deal with the pluggable dashboard and panel configuration, it takes care of backing up and restoring the Horizon configuration.
62598fa3e5267d203ee6b7a7
class MemcacheStore(OpenIDStore): <NEW_LINE> <INDENT> def storeAssociation(self, server_url, assoc): <NEW_LINE> <INDENT> for handle in [assoc.handle, None]: <NEW_LINE> <INDENT> memcache.set(assoc_key(server_url, handle), assoc, assoc.getExpiresIn()) <NEW_LINE> <DEDENT> <DEDENT> def getAssociation(self, server_url, hand...
Memcached-backed OpenID authentication store.
62598fa3b7558d58954634c9
class CodeImageIterator(object): <NEW_LINE> <INDENT> def __init__(self, size, stepsize): <NEW_LINE> <INDENT> self.stepsize = stepsize <NEW_LINE> self.imageSize = size <NEW_LINE> self.size = size[0] + size[0] % stepsize, size[1] + size[1] % stepsize <NEW_LINE> self.code = codeForLength((size[0] / stepsize) * (size[1] / ...
Generates a sequence of cv2 images (binary arrays) in which numbered pixels flicker their respective number in a binary code.
62598fa33d592f4c4edbad68
class VueSame: <NEW_LINE> <INDENT> def __init__(self,same): <NEW_LINE> <INDENT> self.__same=same <NEW_LINE> self.__fen=Tk() <NEW_LINE> self.__fen.title("SAMEEEEEEEEEEEEE") <NEW_LINE> self.__images=[] <NEW_LINE> for i in range(self.__same.nbcouleur()): <NEW_LINE> <INDENT> self.__images.append(PhotoImage(file="img/medium...
Defini la vue du jeu
62598fa35fdd1c0f98e5de33
class GroupViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> permission_classes = [permissions.IsAuthenticated, TokenHasScope] <NEW_LINE> required_scopes = ['groups'] <NEW_LINE> queryset = Group.objects.all() <NEW_LINE> serializer_class = GroupSerializer
Group View
62598fa3435de62698e9bc8f
class SerializerException(SDKError): <NEW_LINE> <INDENT> pass
Encountered an issue when seralizing a request or event
62598fa3b7558d58954634ca
class Button(BaseButton): <NEW_LINE> <INDENT> class JS(object): <NEW_LINE> <INDENT> def _init_phosphor_and_node(self): <NEW_LINE> <INDENT> self.phosphor = window.phosphor.createWidget('button') <NEW_LINE> self.node = self.phosphor.node <NEW_LINE> self.node.addEventListener('click', self.mouse_click, 0) <NEW_LINE> <DEDE...
A push button.
62598fa367a9b606de545e66
class Establishment(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'establishments' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> name = db.Column(db.String(255)) <NEW_LINE> location = db.Column(db.String(255)) <NEW_LINE> description = db.Column(db.Text()) <NEW_LINE> open_time = db.Column(db.Time()...
This class represents the establishments table.
62598fa391af0d3eaad39ca9
class testEnum_args(TBase): <NEW_LINE> <INDENT> def __init__(self, thing=None,): <NEW_LINE> <INDENT> self.thing = thing <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] <NEW_LINE> return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) <N...
Attributes: - thing
62598fa3925a0f43d25e7eda
class Post(db.Model): <NEW_LINE> <INDENT> subject = db.StringProperty(required = True) <NEW_LINE> content = db.TextProperty(required = True) <NEW_LINE> created = db.DateTimeProperty(auto_now_add = True) <NEW_LINE> last_modified = db.DateTimeProperty(auto_now = True) <NEW_LINE> user_id = db.StringProperty(required = Tru...
Post : This is Post Class, which holds blog post information. And helps to store/retrieve User data from database Attributes : subject(str) : This is subject line of the post content(txt) : This is content of the post. created(text) : This is date of the post. user_id : This is user_id, who w...
62598fa345492302aabfc36d
class StaticHelperTest(StaticTests): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self._old_views_urlpatterns = urls.urlpatterns[:] <NEW_LINE> urls.urlpatterns += static('/media/', document_root=media_dir) <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> super().tearDow...
Test case to make sure the static URL pattern helper works as expected
62598fa392d797404e388ab3
class Command(object): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self._help = kwargs['help'] <NEW_LINE> <DEDENT> @property <NEW_LINE> def help(self): <NEW_LINE> <INDENT> return self._help <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def do(self, m...
An abstract base class representing a Discord bot command Requires the method `do (self, message, subreddit)` to be implemented by all inheriting classes. Also requires `help` data to be passed to Command at creation time.
62598fa32c8b7c6e89bd3661
class ReadTest(unittest.TestCase): <NEW_LINE> <INDENT> loaded_db = 0 <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> load_database("GenBank/cor6_6.gb") <NEW_LINE> self.server = BioSeqDatabase.open_database( driver=DBDRIVER, user=DBUSER, passwd=DBPASSWD, host=DBHOST, db=TESTDB ) <NEW_LINE> self.db = self.server["biosql-...
Test reading a database from an already built database.
62598fa3dd821e528d6d8dd1
class Organization(TimeStampedModel): <NEW_LINE> <INDENT> key = models.CharField( help_text=_('The string value of an org key identifying this organization in the LMS.'), unique=True, max_length=64, db_index=True, ) <NEW_LINE> display_name = models.CharField( help_text=_('The display name of this organization.'), max_l...
Represents the organization offering one or more courses and/or programs. At present, Studio (edx-platform) hosts the source of truth for this data; a minimal subset of that data is replicated into this system in order to enforce referential integrity internally.
62598fa3dd821e528d6d8dd0
class VnicWwnnHistory(ManagedObject): <NEW_LINE> <INDENT> consts = VnicWwnnHistoryConsts() <NEW_LINE> naming_props = set([]) <NEW_LINE> mo_meta = MoMeta("VnicWwnnHistory", "vnicWwnnHistory", "wwnn-history", VersionMeta.Version212a, "InputOutput", 0x1f, [], ["read-only"], [u'vnicFcNode'], [], [None]) <NEW_LINE> prop_met...
This is VnicWwnnHistory class.
62598fa3a8ecb033258710ab
class EditorOverlay(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_property(self, name): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def name(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def set_property(self, name, value): <NEW_LINE> <INDENT> pass
This class represents properties that can be applied to one or more ranges of text. This can be used to change the display properties of the text (colors, fonts,...) or store any user-specific attributes that can be retrieved later. GPS itself uses overlays to do syntax highlighting. If two or more overlays are applied...
62598fa356ac1b37e6302088
class Titulo(models.Model): <NEW_LINE> <INDENT> nombre = models.CharField(max_length=255) <NEW_LINE> descripcion = models.TextField() <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.nombre <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> ordering = ['nombre', ] <NEW_LINE> db_table = 'oeu\".\"titulo' <N...
Modelo para gestionar los titulos que se otorgan en las IEU.
62598fa367a9b606de545e67
class UserIdentifier(object): <NEW_LINE> <INDENT> swagger_types = { 'id': 'str' } <NEW_LINE> attribute_map = { 'id': 'id' } <NEW_LINE> def __init__(self, id=None): <NEW_LINE> <INDENT> self._id = None <NEW_LINE> self.id = id <NEW_LINE> <DEDENT> @property <NEW_LINE> def id(self): <NEW_LINE> <INDENT> return self._id <NEW_...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fa3009cb60464d013c1
class TemplateVersionRequestDTO(object): <NEW_LINE> <INDENT> openapi_types = { 'comments': 'str', 'template_id': 'str' } <NEW_LINE> attribute_map = { 'comments': 'comments', 'template_id': 'templateId' } <NEW_LINE> def __init__(self, comments=None, template_id=None): <NEW_LINE> <INDENT> self._comments = None <NEW_LINE>...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598fa3796e427e5384e630
@keras_export('keras.layers.ELU') <NEW_LINE> class ELU(Layer): <NEW_LINE> <INDENT> def __init__(self, alpha=1.0, **kwargs): <NEW_LINE> <INDENT> super(ELU, self).__init__(**kwargs) <NEW_LINE> self.supports_masking = True <NEW_LINE> self.alpha = K.cast_to_floatx(alpha) <NEW_LINE> <DEDENT> def call(self, inputs): <NEW_LIN...
Exponential Linear Unit. It follows: `f(x) = alpha * (exp(x) - 1.) for x < 0`, `f(x) = x for x >= 0`. Input shape: Arbitrary. Use the keyword argument `input_shape` (tuple of integers, does not include the samples axis) when using this layer as the first layer in a model. Output shape: Same shape as...
62598fa3a8370b77170f0276
class EncryptionUI(Tk): <NEW_LINE> <INDENT> def __init__(self,all_data): <NEW_LINE> <INDENT> Tk.__init__(self) <NEW_LINE> self.all_data=all_data <NEW_LINE> self.title("QuEST Encryption tool") <NEW_LINE> self.console=TDCFrames.AllConsole(self,self.all_data) <NEW_LINE> self.setting_frame=TDCFrames.SettingsFrame(self,self...
classdocs
62598fa31b99ca400228f47d
class AsyncRequestHandler: <NEW_LINE> <INDENT> _dResponseClasses = {EncodeableType.ReadResponse: ReadResponse, EncodeableType.WriteResponse: WriteResponse, EncodeableType.BrowseResponse: BrowseResponse, } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._dRequestContexts = {} <NEW_LINE> self._dPendingResponses =...
MixIn that implements asynchronous request handling: associates a response to a request. This should be derived to implement the `_send_request` method. See `request.LibSubAsyncRequestHandler` and `request.LocalAsyncRequestHandler`.
62598fa31f037a2d8b9e3f86
class Chunk_collector (object): <NEW_LINE> <INDENT> collector_is_simple = False <NEW_LINE> chunk_extensions = None <NEW_LINE> def __init__ (self, collector, set_terminator, headers=None): <NEW_LINE> <INDENT> self.chunk_collector = collector <NEW_LINE> self.set_terminator = set_terminator <NEW_LINE> self.collector_heade...
a wrapping collector for chunked transfer encoding
62598fa3e5267d203ee6b7a9
class FSFlipCommand: <NEW_LINE> <INDENT> def GetResources(self): <NEW_LINE> <INDENT> icon = os.path.join(iconPath, 'IconFlip.svg') <NEW_LINE> return { 'Pixmap': icon, 'MenuText': "Invert fastener", 'ToolTip': "Invert fastener orientation" } <NEW_LINE> <DEDENT> def Activated(self): <NEW_LINE> <INDENT> selObjs = self.Get...
Flip Screw command
62598fa33617ad0b5ee05fef
class ExpressionFunction(GenericFunction): <NEW_LINE> <INDENT> functions = {k: getattr(np, k) for k in {'sin', 'cos', 'tan', 'arcsin', 'arccos', 'arctan', 'sinh', 'cosh', 'tanh', 'arcsinh', 'arccosh', 'arctanh', 'exp', 'exp2', 'log', 'log2', 'log10', 'array', 'min', 'minimum', 'max', 'maximum', 'pi', 'e', 'sum', 'prod'...
Turns a Python expression given as a string into a |Function|. Some |NumPy| arithmetic functions like 'sin', 'log', 'min' are supported. For a full list see the `functions` class attribute. .. warning:: :meth:`eval` is used to evaluate the given expression. Using this class with expression strings from untruste...
62598fa3498bea3a75a579bf
class MethodSignatureProcessor(object): <NEW_LINE> <INDENT> def __init__(self, class_dict, ext_type, method_maker, validators): <NEW_LINE> <INDENT> self.class_dict = class_dict <NEW_LINE> self.ext_type = ext_type <NEW_LINE> self.method_maker = method_maker <NEW_LINE> self.validators = validators <NEW_LINE> <DEDENT> def...
Processes signatures of extension types.
62598fa39c8ee823130400bd
class Event: <NEW_LINE> <INDENT> def __init__(self, name, date=None, place=None, distance=None, url=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.date = date <NEW_LINE> self.place = place <NEW_LINE> self.distance = distance <NEW_LINE> self.url = url <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDEN...
Class with information about events: name, date, place, distance(s) and URL
62598fa3a79ad16197769efd
class ObsData(object): <NEW_LINE> <INDENT> swagger_types = { 'feature': 'object', 'geometry': 'object', 'scalar_data': 'ScalarData' } <NEW_LINE> attribute_map = { 'feature': 'feature', 'geometry': 'geometry', 'scalar_data': 'scalarData' } <NEW_LINE> def __init__(self, feature=None, geometry=None, scalar_data=None): <NE...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fa355399d3f056263bf
class NewWindow(Toplevel): <NEW_LINE> <INDENT> def __init__(self, file, master): <NEW_LINE> <INDENT> super().__init__(master) <NEW_LINE> self.title("Underlying Data") <NEW_LINE> self.geometry("1000x500") <NEW_LINE> self.file = file <NEW_LINE> self.fill_window() <NEW_LINE> <DEDENT> def fill_window(self): <NEW_LINE> <IND...
Adapted from https://www.geeksforgeeks.org/open-a-new-window-with-a-button-in-python-tkinter/ and https://gist.github.com/RamonWill/0686bd8c793e2e755761a8f20a42c762 This class was built to allow a new window to open with information uploaded from a csv or json present in the new window. It was utilized to allow a use...
62598fa32ae34c7f260aaf7d
class tokensGoogle(object): <NEW_LINE> <INDENT> listaTokens = [] <NEW_LINE> linha = 0 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.listaTokens.append("AIzaSyCWhAnQ80OxbOCineGjTzaL0obPgswJKq8") <NEW_LINE> self.listaTokens.append("AIzaSyB2mD3gR8vXSmWIgCQpkDAjF4ySJMMaH6U") <NEW_LINE> self.listaTokens.append("AI...
description of class
62598fa301c39578d7f12c1c
class IterFile(object): <NEW_LINE> <INDENT> __slots__ = ('_iter', '_buf') <NEW_LINE> def __init__(self, it): <NEW_LINE> <INDENT> self._iter = iter(it) <NEW_LINE> self._buf = '' <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return iter(self.readline, '') <NEW_LINE> <DEDENT> def read(self, size=None): <NEW_...
A file like-object wrapping an iterator that yields strings. Take an iterable, for example: >>> def hello_iter(): ... yield 'hello ' ... yield 'world!' ... Wrap it in IterFile, and turn it into a file-like object: >>> file_like = IterFile(hello_iter()) >>> file_like.read() 'hello world!'
62598fa3be8e80087fbbeefe
class RateCountModel(BaseModel): <NEW_LINE> <INDENT> __tablename__ = 'rate_count' <NEW_LINE> category = Column('category', Enum(UserCategory)) <NEW_LINE> problem_uid = Column('problem_uid', Integer, ForeignKey(ProblemModel.uid, onupdate='CASCADE', ondelete='CASCADE')) <NEW_LINE> index = Column('index', Integer, index=T...
Rate accepted count model.
62598fa30c0af96317c5621f
class ObjectTypeMibTableTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> ast = parserFactory()().parse(self.__class__.__doc__)[0] <NEW_LINE> mibInfo, symtable = SymtableCodeGen().genCode(ast, {}, genTexts=True) <NEW_LINE> self.mibInfo, pycode = PySnmpCodeGen().genCode(ast, {mibInfo....
TEST-MIB DEFINITIONS ::= BEGIN IMPORTS OBJECT-TYPE FROM SNMPv2-SMI; testTable OBJECT-TYPE SYNTAX SEQUENCE OF TestEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "Test table" ::= { 1 3 } testEntry OBJECT-TYPE SYNTAX TestEntry MAX-ACCES...
62598fa367a9b606de545e68
class Requirements(object): <NEW_LINE> <INDENT> def __init__(self, is_admin=None, services=None): <NEW_LINE> <INDENT> self.is_admin = is_admin <NEW_LINE> self.services = services or ["trove"] <NEW_LINE> self.services = [str(service) for service in self.services] <NEW_LINE> <DEDENT> def satisfies(self, reqs): <NEW_LINE>...
Defines requirements a test has of a user.
62598fa3d7e4931a7ef3bf38
class didyoumean_contextmanager(object): <NEW_LINE> <INDENT> def __enter__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __exit__(self, type_, value, traceback): <NEW_LINE> <INDENT> assert (type_ is None) == (value is None) <NEW_LINE> if value is not None: <NEW_LINE> <INDENT> if isinstance(value, type_): <NEW...
Context manager to add suggestions to exceptions. To use it, create a context: with didyoumean_contextmanager(): some_code.
62598fa34f88993c371f0459
class CallTime: <NEW_LINE> <INDENT> def __init__(self, func): <NEW_LINE> <INDENT> self.func = func <NEW_LINE> self.Entries = [] <NEW_LINE> <DEDENT> def Measure(self, args, avs): <NEW_LINE> <INDENT> time_start = timeit.default_timer() <NEW_LINE> retval = self.func(*args) <NEW_LINE> time_end = timeit.default_timer() <NEW...
Description: Simple timer class. Time function calls and saves to CSV file. Usage: func = CallTime.Test args = (1, 2, 3) CallTime.Measure_Single( func, args, args ) or func = Test # any valid function name ... args = (1, 2, 3) obj_ct = CallTime(func) obj_ct.Measure( args, a...
62598fa37047854f4633f276
class PasswordChangeView(LoginRequiredMixin, SuccessMessageMixin, FormView): <NEW_LINE> <INDENT> template_name = 'change_password.html' <NEW_LINE> model = User <NEW_LINE> form_class = PasswordChangeForm <NEW_LINE> success_url = reverse_lazy('accounts:password_change_done') <NEW_LINE> def get_form_kwargs(self): <NEW_LIN...
更新密码(登录状态下,个人修改自己的密码) https://docs.djangoproject.com/zh-hans/2.2/topics/auth/customizing/ https://it.ismy.fun/2019/08/09/django-change-password-views/ 密码修改后不会自动退出
62598fa3009cb60464d013c2
class TradeChannelCheckFail(CommandError): <NEW_LINE> <INDENT> pass
Exception raised checks.tradereport fails
62598fa399cbb53fe6830d72
class CropRenderer(BaseRenderer): <NEW_LINE> <INDENT> def __init__(self, width, height, bleed=0., *args, **kwargs): <NEW_LINE> <INDENT> self.width = int(width) <NEW_LINE> self.height = int(height) <NEW_LINE> self.bleed = float(bleed) <NEW_LINE> super(CropRenderer, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def...
Renders an image cropped to a given width and height.
62598fa3cc0a2c111447aead
class TempgresDatabaseService: <NEW_LINE> <INDENT> def __init__(self, url, **kwargs): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> self.response = None <NEW_LINE> self.data = kwargs <NEW_LINE> if self.url: <NEW_LINE> <INDENT> if kwargs: <NEW_LINE> <INDENT> logger.warning( "Tempgres will use the database information " ...
Connection to a tempgres service instance defined by an URL.
62598fa357b8e32f5250806a
class BaseCompound(Expression): <NEW_LINE> <INDENT> __slots__ = 'terms', <NEW_LINE> operator = None <NEW_LINE> def __init__(self, terms): <NEW_LINE> <INDENT> self.terms = terms <NEW_LINE> <DEDENT> def _render(self): <NEW_LINE> <INDENT> scoped_terms = [term.render(self.precedence) for term in self.terms] <NEW_LINE> if l...
Combine multiple expressions with a single operator.
62598fa33539df3088ecc152
class BinaryClassifier(nn.Module): <NEW_LINE> <INDENT> def __init__(self, input_features, hidden_dim, output_dim): <NEW_LINE> <INDENT> super(BinaryClassifier, self).__init__() <NEW_LINE> self.fc1 = nn.Linear(input_features, hidden_dim) <NEW_LINE> self.fc2 = nn.Linear(hidden_dim, output_dim) <NEW_LINE> self.dropout = nn...
Define a neural network that performs binary classification. The network should accept your number of features as input, and produce a single sigmoid value, that can be rounded to a label: 0 or 1, as output. Notes on training: To train a binary classifier in PyTorch, use BCELoss. BCELoss is binary cross entropy loss,...
62598fa33cc13d1c6d46560a
class GunExperiment(GaussianExperiment): <NEW_LINE> <INDENT> def _get_data(self, model=None, *args, **kwargs): <NEW_LINE> <INDENT> sim = Gun(**kwargs) <NEW_LINE> simdata = sim({'eos': model}) <NEW_LINE> return simdata[0], simdata[1][0], np.zeros(simdata[0].shape) <NEW_LINE> <DEDENT> def get_sigma(self): <NEW...
A class representing pseudo experimental data for a gun show
62598fa3460517430c431faa
class MSWingParms(XMLContainer): <NEW_LINE> <INDENT> XMLTAG = 'Mswing_Parms' <NEW_LINE> total_span = Float(low=0.1, high=10000., iotype='in', xmltag='Total_Span', desc='') <NEW_LINE> total_proj_span = Float(low=0.1, high=10000., iotype='in', xmltag='Total_Proj_Span', desc='') <NEW_LINE> avg_chord = Float(low=0.1, high=...
XML parameters specific to a Multi-Section Wing.
62598fa3e5267d203ee6b7ab
class Responses(Route): <NEW_LINE> <INDENT> name = "form_responses" <NEW_LINE> path = "/{form_id:str}/responses" <NEW_LINE> @requires(["authenticated"]) <NEW_LINE> @api.validate( resp=Response(HTTP_200=ResponseList), tags=["forms", "responses"] ) <NEW_LINE> async def get(self, request: Request) -> JSONResponse: <NEW_LI...
Returns all form responses by form ID.
62598fa39c8ee823130400be
class Sim(Treant): <NEW_LINE> <INDENT> _treanttype = 'Sim' <NEW_LINE> def __init__(self, sim, categories=None, tags=None): <NEW_LINE> <INDENT> super(Sim, self).__init__(sim, categories=categories, tags=tags) <NEW_LINE> self._universedef = metadata.UniverseDefinition(self) <NEW_LINE> self._universe = None <NEW_LINE> sel...
The Sim object is an interface to data for a single simulation. `sim` should be a base directory of a new or existing Sim. An existing Sim will be regenerated if a state file is found. If no state file is found, a new Sim will be created. A Tree object may also be used in the same way as a directory string. If mult...
62598fa37047854f4633f277
class UnorderedLaminate(MembraneLaminate): <NEW_LINE> <INDENT> def is_symmetric(self): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> def __init__(self, layup, material): <NEW_LINE> <INDENT> assert isinstance(material, TransverseIsotropicPlyMaterial) <NEW_LINE> assert all(isinstance(x, tuple) for x in layup) <NEW_...
Defines a laminate where layer count and orientations are given, but not stacking sequence. Works for single material only. Works for in-plane properties only.
62598fa3e5267d203ee6b7ac
class InlineResponse20014(object): <NEW_LINE> <INDENT> swagger_types = { 'id': 'str', 'message': 'list[str]' } <NEW_LINE> attribute_map = { 'id': 'id', 'message': 'message' } <NEW_LINE> def __init__(self, id=None, message=None): <NEW_LINE> <INDENT> self._id = None <NEW_LINE> self._message = None <NEW_LINE> self.discrim...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fa3e1aae11d1e7ce772
class SystemRebootError(Exception): <NEW_LINE> <INDENT> pass
There was a problem executing a system reboot
62598fa338b623060ffa8f33
@dataclass(order=True) <NEW_LINE> class OkOutgoingMessage(LinterFix): <NEW_LINE> <INDENT> Schema: ClassVar[Type[marshmallow.Schema]] = marshmallow.Schema <NEW_LINE> recipient: OkRecipient <NEW_LINE> message: OkMessage
Класс данных для хранения информации об исходящем сообщении ОК.
62598fa3a17c0f6771d5c0d8
class LinearTriInterpolator(TriInterpolator): <NEW_LINE> <INDENT> def __init__(self, triangulation, z, trifinder=None): <NEW_LINE> <INDENT> TriInterpolator.__init__(self, triangulation, z, trifinder) <NEW_LINE> self._plane_coefficients = self._triangulation.calculate_plane_coefficients(self._z) <NEW_LINE> se...
A LinearTriInterpolator performs linear interpolation on a triangular grid. Each triangle is represented by a plane so that an interpolated value at point (x,y) lies on the plane of the triangle containing (x,y). Interpolated values are therefore continuous across the triangulation, but their first derivatives are dis...
62598fa344b2445a339b68bd
class HelpedWidget(Frame): <NEW_LINE> <INDENT> def __init__(self, master, help): <NEW_LINE> <INDENT> Frame.__init__(self, master) <NEW_LINE> self.help = help <NEW_LINE> <DEDENT> def helpme(self): <NEW_LINE> <INDENT> from tkMessageBox import showinfo <NEW_LINE> showinfo(self.help, parent=self)
This class simply binds the 'help' function
62598fa3be8e80087fbbef00
class DeliveryMeterSensor(YoulessBaseSensor): <NEW_LINE> <INDENT> _attr_native_unit_of_measurement = ENERGY_KILO_WATT_HOUR <NEW_LINE> _attr_device_class = DEVICE_CLASS_ENERGY <NEW_LINE> _attr_state_class = STATE_CLASS_TOTAL_INCREASING <NEW_LINE> def __init__( self, coordinator: DataUpdateCoordinator, device: str, dev_t...
The Youless delivery meter value sensor.
62598fa3435de62698e9bc94
class ItemsApiTestCasesGetAllItems(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.factory = RequestFactory() <NEW_LINE> test_utils.setup() <NEW_LINE> test_utils.create_dummyuser() <NEW_LINE> test_utils.create_items("Item A") <NEW_LINE> test_utils.create_items("Item B") <NEW_LINE> test_utils.cr...
TestCase for items view
62598fa3236d856c2adc938a
class BartEncoder(nn.Module): <NEW_LINE> <INDENT> def __init__(self, config: BartConfig, embed_tokens): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.dropout = config.dropout <NEW_LINE> self.layerdrop = config.encoder_layerdrop <NEW_LINE> embed_dim = embed_tokens.embedding_dim <NEW_LINE> self.embed_scale = mat...
Transformer encoder consisting of *config.encoder_layers* self attention layers. Each layer is a :class:`EncoderLayer`. Args: config: BartConfig
62598fa3adb09d7d5dc0a42a
class Dummy1x1ExampleBottomShortcutsWidget(Dummy1x1ExampleMainWidget): <NEW_LINE> <INDENT> placeholder_uid = 'bottom_shortcuts'
Dummy1x1 plugin widget for Example layout (placeholder `bottom_shortcuts`).
62598fa307f4c71912baf2e3
class SubWorkflow1(WorkflowRunner) : <NEW_LINE> <INDENT> def workflow(self2) : <NEW_LINE> <INDENT> self2.addTask("A",getSleepCmd()+["5"]) <NEW_LINE> self2.addTask("B","boogyman!",dependencies="A")
This workflow should fail.
62598fa38e7ae83300ee8f40
class OBJECT_OT_images_half_res(Operator): <NEW_LINE> <INDENT> bl_idname = "apogee.textures_half_size" <NEW_LINE> bl_label = "half size textures" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> preferences = context.preferences <NEW_LINE> addon_prefs = preferences...
Change the path of all the textures in file to half of their resolution
62598fa376e4537e8c3ef44c
class GPMeanFunction(ABC): <NEW_LINE> <INDENT> def __init__(self, input_dim: int, use_single_gp: bool = False): <NEW_LINE> <INDENT> self.dimensionality = tf.constant(input_dim, dtype=tf.int32) <NEW_LINE> self._initialize_variables(use_single_gp) <NEW_LINE> return <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def _init...
Abstract class for the mean functions in the GP.
62598fa3627d3e7fe0e06d4c
class TestResp2448145Root(): <NEW_LINE> <INDENT> def test_resp2448145_root_serialization(self): <NEW_LINE> <INDENT> resp2448145_root_model_json = {} <NEW_LINE> resp2448145_root_model_json['active'] = True <NEW_LINE> resp2448145_root_model_json['enabled'] = True <NEW_LINE> resp2448145_root_model_json['last_active'] = 38...
Test Class for Resp2448145Root
62598fa3dd821e528d6d8dd4
class AmcData(object): <NEW_LINE> <INDENT> logger = logging.getLogger('AmcData') <NEW_LINE> logger.setLevel(logging.DEBUG) <NEW_LINE> formatter = logging.Formatter('%(levelname)s %(asctime)s %(name)s Line: %(lineno)d | %(message)s') <NEW_LINE> handler = logging.StreamHandler() <NEW_LINE> handler.setFormatter(formatter...
This is a class that contains data in the AMC Mocap data format.
62598fa33539df3088ecc154
class TestFloat: <NEW_LINE> <INDENT> obj = 4.2 <NEW_LINE> common = [ (obj, obj), (None, 0.0), ("1.0", 1.0), ("1.1", 1.1), ] <NEW_LINE> data_value = [ ] + common <NEW_LINE> value_data = [ ] + common <NEW_LINE> @pytest.mark.parametrize("data,value", data_value) <NEW_LINE> def test_to_value(self, data, value): <NEW_LINE> ...
Unit tests for the `Float` converter.
62598fa3a8370b77170f027a
class LPStorage(JSONLP): <NEW_LINE> <INDENT> def __init__( self, name, capacity: int, var_capacity: Union[Variable, float], flow_in: float, var_flow_in: Union[Variable, float], flow_out: float, var_flow_out: Union[Variable, float], cost: float = 0, init_capacity: int = 0, eff: float = 0.99, ): <NEW_LINE> <INDENT> self....
Storage element
62598fa316aa5153ce4003a2
class EntityFormatter(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def _list_objects(obj_list): <NEW_LINE> <INDENT> columns = [] <NEW_LINE> data = (obj._get_generic_data() for obj in obj_list) <NEW_LINE> if obj_list: <NEW_LINE> <INDENT> columns = obj_list[0]._get_generic_columns() <NEW_LINE> <DEDENT> return co...
Base Mixin class providing functions that format entities for display. Must be used in conjunction with a Formatter mixin that provides the function _get_formatted_data().
62598fa3aad79263cf42e680
class CreateTokenRequest(object): <NEW_LINE> <INDENT> _names = { "mtype":'type', "card":'card' } <NEW_LINE> def __init__(self, mtype='card', card=None): <NEW_LINE> <INDENT> self.mtype = mtype <NEW_LINE> self.card = card <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_dictionary(cls, dictionary): <NEW_LINE> <INDENT...
Implementation of the 'CreateTokenRequest' model. Token data Attributes: mtype (string): Token type card (CreateCardTokenRequest): Card data
62598fa33d592f4c4edbad6e
class LaunchApkTool: <NEW_LINE> <INDENT> __DIRECTORY = "apktool" <NEW_LINE> __FILE = "apktool.jar" <NEW_LINE> def __init__(self, logger: Logger = default_logger): <NEW_LINE> <INDENT> self.logger = logger <NEW_LINE> self.apktool = os.path.join( os.path.dirname(__file__), "..", LaunchApkTool.__DIRECTORY, LaunchApkTool.__...
Extract the (decrypted) AndroidManifest.xml, the resources and generate the disassembled smali files.
62598fa3d486a94d0ba2be73
class Human(Auxiliary, Thread): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Thread.__init__(self) <NEW_LINE> self.do_run = True <NEW_LINE> <DEDENT> def stop(self): <NEW_LINE> <INDENT> self.do_run = False <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> while self.do_run: <NEW_LINE> <INDENT> move_m...
Human after all
62598fa330dc7b766599f6ee
class IoK8sApiCoreV1PersistentVolumeClaimStatus(object): <NEW_LINE> <INDENT> swagger_types = { 'access_modes': 'list[str]', 'capacity': 'dict(str, IoK8sApimachineryPkgApiResourceQuantity)', 'conditions': 'list[IoK8sApiCoreV1PersistentVolumeClaimCondition]', 'phase': 'str' } <NEW_LINE> attribute_map = { 'access_modes': ...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fa38c0ade5d55dc35e0
class TransmitShipments(ServiceBase): <NEW_LINE> <INDENT> URL ="https://{server}/rs/{customer}/{mobo}/manifest" <NEW_LINE> log = logging.getLogger('canada_post.service.contract_shipping' '.TransmitShipments') <NEW_LINE> headers = {'Accept': "application/vnd.cpc.manifest-v7+xml", 'Content-Type': 'application/vnd.cpc.man...
Used to specify shipments to be included in a manifest. Inclusion in a manifest is specified by group. Specific shipments may be excluded if desired. http://www.canadapost.ca/cpo/mc/business/productsservices/developers/services/shippingmanifest/transmitshipments.jsf
62598fa3dd821e528d6d8dd5
class Binding(BindingBase): <NEW_LINE> <INDENT> pass
A binding from an (interface, annotation) to a provider in a scope.
62598fa3cb5e8a47e493c0c7
class Signalizable(GObject.GObject): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> GObject.GObject.__init__(self) <NEW_LINE> <DEDENT> def install_signal(self, signal): <NEW_LINE> <INDENT> if not GObject.signal_lookup(signal, self.__class__): <NEW_LINE> <INDENT> GObject.signal_new(signal, self.__class__, G...
This class represents a GObject-like signalized object
62598fa3435de62698e9bc95
class ContextWrapper(object): <NEW_LINE> <INDENT> def __init__(self, context): <NEW_LINE> <INDENT> self.context = context <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> self.context.push() <NEW_LINE> return self <NEW_LINE> <DEDENT> def __exit__(self,type,value,traceback): <NEW_LINE> <INDENT> self.context....
Context Manager Wrapper for CUDA Contexts!
62598fa3a8370b77170f027b
class WishartCholesky(_WishartOperatorPD): <NEW_LINE> <INDENT> def __init__(self, df, scale, cholesky_input_output_matrices=False, validate_args=False, allow_nan_stats=True, name="WishartCholesky"): <NEW_LINE> <INDENT> parameters = locals() <NEW_LINE> with ops.name_scope(name, values=[scale]) as ns: <NEW_LINE> <INDENT>...
The matrix Wishart distribution on positive definite matrices. This distribution is defined by a scalar degrees of freedom `df` and a lower, triangular Cholesky factor which characterizes the scale matrix. Using WishartCholesky is a constant-time improvement over WishartFull. It saves an O(nbk^3) operation, i.e., a m...
62598fa3adb09d7d5dc0a42c
class SpatialRepresentationType(models.Model): <NEW_LINE> <INDENT> identifier = models.CharField(max_length=255, editable=False) <NEW_LINE> description = models.CharField(max_length=255, editable=False) <NEW_LINE> gn_description = models.CharField('GeoNode description', max_length=255) <NEW_LINE> is_choice = models.Boo...
Metadata information about the spatial representation type. It should reflect a list of codes from TC211 See: http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml <CodeListDictionary gml:id="MD_SpatialRepresentationTypeCode">
62598fa36aa9bd52df0d4d6b
class Command(BaseCommand): <NEW_LINE> <INDENT> def handle(self, *args, **options): <NEW_LINE> <INDENT> apps = [] <NEW_LINE> models_d = {} <NEW_LINE> tables_list = [] <NEW_LINE> for app in settings.INSTALLED_APPS: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> app_label = app.split('.')[-1] <NEW_LINE> apps.append(app_lab...
Generate a list of tables and sort them based on the relations for db migration from mysql to postgresql. Usage: manage.py list_tables
62598fa330bbd722464698c8
class UniquePart(models.Model): <NEW_LINE> <INDENT> objects = UniquePartManager() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> unique_together = ('part', 'serial') <NEW_LINE> <DEDENT> part = models.ForeignKey(Part, on_delete=models.CASCADE) <NEW_LINE> creation_date = models.DateField(auto_now_add=True, editable=False) <N...
A unique instance of a Part object. Used for tracking parts based on serial numbers, and tracking all events in the life of a part
62598fa38e7ae83300ee8f43
class UserRegSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> code = serializers.CharField(label="验证码", write_only=True, required=True, max_length=4, min_length=4, error_messages={ "blank": "请输入验证码", "required": "请输入验证码", "max_length": "验证码格式错误", "min_length": "验证码格式错误" }, help_text="验证码") <NEW_LINE> userna...
用户注册序列化
62598fa33c8af77a43b67e92
class Main(FlyAI): <NEW_LINE> <INDENT> def __init__(self, args, logger): <NEW_LINE> <INDENT> print('main func init') <NEW_LINE> set_seed(cfg.SOLVER.SEED) <NEW_LINE> cfg.OUTPUT_DIR = MODEL_PATH <NEW_LINE> cfg.DATASETS.ROOT_DIR = os.path.join(sys.path[0], 'data', 'input', DataID) <NEW_LINE> os.environ["CUDA_VISIBLE_DEVIC...
项目中必须继承FlyAI类,否则线上运行会报错。
62598fa366673b3332c3026a
class IEC104_IO_C_CI_NA_1(IEC104_IO_Packet): <NEW_LINE> <INDENT> name = 'C_CI_NA_1' <NEW_LINE> _DEFINED_IN = [IEC104_IO_Packet.DEFINED_IN_IEC_101, IEC104_IO_Packet.DEFINED_IN_IEC_104] <NEW_LINE> _IEC104_IO_TYPE_ID = IEC104_IO_ID_C_CI_NA_1 <NEW_LINE> fields_desc = IEC104_IE_QCC.informantion_element_fields
counter interrogation command EN 60870-5-101:2003, sec. 7.3.4.2 (p. 108)
62598fa376e4537e8c3ef44f
class Identifier(object): <NEW_LINE> <INDENT> def set(self, source): <NEW_LINE> <INDENT> self.a, self.formatfile = path.splitext(source) <NEW_LINE> self.d = { '.txt': self.metod_txt, '.format_1': self.metod_2, '.format_2': self.metod_3 }
Суперкласс идентификатор для определения формата переданного файла и координации метода чтения/записи
62598fa367a9b606de545e6d
class TestFunctions(unittest.TestCase): <NEW_LINE> <INDENT> def test_find_grating_insr_retr(self): <NEW_LINE> <INDENT> [action, grating, tstart, tstop] = find_grating_insr_retr(0) <NEW_LINE> k = 100 <NEW_LINE> print(str(action[k]) + '<-->' + str(grating[k]) + '<-->' + str(tstart[k]) + '<-->' + str(tstop[k])) <NEW_LINE...
testing functions
62598fa3627d3e7fe0e06d4e
class update_managed_post(Updater, GenerateUpdateMixin): <NEW_LINE> <INDENT> def execute(self, **options): <NEW_LINE> <INDENT> (restart, update_list) = self.generate_update(True) <NEW_LINE> return restart, update_list
Update managed entries
62598fa3d7e4931a7ef3bf3d
class ActiveDOMsTask(CnCSingleThreadTask): <NEW_LINE> <INDENT> __NAME = "ActiveDOMs" <NEW_LINE> __PERIOD = 60 <NEW_LINE> REPORT_NAME = "ActiveReport" <NEW_LINE> REPORT_PERIOD = 600 <NEW_LINE> def create_detail_timer(self, task_mgr): <NEW_LINE> <INDENT> return task_mgr.create_interval_timer(self.REPORT_NAME, self.REPORT...
Essentially a timer, so every REPORT_PERIOD an ActiveDOMsThread is created and run. This sends three chunks of information off to live: 'totalDOMS' which is a count of the total number of active doms in the array along with a count of the number of doms (active or inactive). 'LBMOverflows' which is a dictionary rela...
62598fa345492302aabfc372
class HardTripletLoss(nn.Module): <NEW_LINE> <INDENT> def __init__(self, margin= 1 ): <NEW_LINE> <INDENT> super(HardTripletLoss, self).__init__() <NEW_LINE> self.margin = margin <NEW_LINE> <DEDENT> def forward(self, attributes, embeddings, labels): <NEW_LINE> <INDENT> relations = _pairwise_distance(attributes, embeddin...
Hard/Hardest Triplet Loss (pytorch implementation of https://omoindrot.github.io/triplet-loss) For each anchor, we get the hardest positive and hardest negative to form a triplet.
62598fa3d6c5a102081e1fe8
class ImproperXmlFormatError(ProjexError): <NEW_LINE> <INDENT> def __init__( self, location ): <NEW_LINE> <INDENT> msg = '"%s" contains improperly formated xml data.' % location <NEW_LINE> ProjexError.__init__( self, msg )
Thrown when the XML file cannot be parsed.
62598fa3e5267d203ee6b7af
class GroupMeterInviteInfoView(RetrieveAPIView): <NEW_LINE> <INDENT> serializer_class = GroupMeterInviteInfoSerializer <NEW_LINE> GET_permissions = [permissions.IsAuthenticated] <NEW_LINE> lookup_field = 'invitation_key' <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> return GroupMeter.objects.filter(allow_invit...
View to get group meter information when joining a group, based on the invitation key of a group. Available request methods: GET `GET`: Returns basic group meter info to show user what group he is joining
62598fa316aa5153ce4003a4
class ModLogForm(DocumentForm): <NEW_LINE> <INDENT> buffered = BooleanField(required=False) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(ModLogForm, self).__init__(*args, **kwargs) <NEW_LINE> self = bootstrap_tooltips(self, exclude='repository_choices') <NEW_LINE> repo_lst = BaseAbstractRep...
Mod Log form representation
62598fa37047854f4633f27b
class DiseaseSynonym(Base): <NEW_LINE> <INDENT> table_suffix = "disease__synonym" <NEW_LINE> __tablename__ = TABLE_PREFIX + table_suffix <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> disease__id = foreign_key_to('disease') <NEW_LINE> synonym = Column(String(255)) <NEW_LINE> disease = relationship(Disease...
Synonyms to Disease vocabulary (MEDIC) reference: - `CTD Disease synonym <http://ctdbase.org/downloads/#alldiseases>`_
62598fa356b00c62f0fb2754
class BiosVfXPTPrefetch(ManagedObject): <NEW_LINE> <INDENT> consts = BiosVfXPTPrefetchConsts() <NEW_LINE> naming_props = set([]) <NEW_LINE> mo_meta = { "classic": MoMeta("BiosVfXPTPrefetch", "biosVfXPTPrefetch", "xpt-prefetch", VersionMeta.Version311d, "InputOutput", 0x1f, [], ["admin"], [u'biosPlatformDefaults', u'bio...
This is BiosVfXPTPrefetch class.
62598fa3dd821e528d6d8dd7
class SimpleBase (object) : <NEW_LINE> <INDENT> @rus.takes ('SimpleBase') <NEW_LINE> @rus.returns (rus.nothing) <NEW_LINE> def __init__ (self) : <NEW_LINE> <INDENT> if not hasattr (self, '_apitype') : <NEW_LINE> <INDENT> self._apitype = self._get_apitype () <NEW_LINE> <DEDENT> self._logger = ru.get_logger ('radica...
This is a very simple API base class which just initializes the self._logger and self._engine members, but does not perform any further initialization, nor any adaptor binding. This base is used for API classes which are not backed by multiple adaptors (no session, tasks, etc).
62598fa3e1aae11d1e7ce774
class State(IntEnum): <NEW_LINE> <INDENT> CONNECTING=0 <NEW_LINE> OPEN=1 <NEW_LINE> CLOSING=2 <NEW_LINE> CLOSED=3
Eventbus state see https://github.com/vert-x3/vertx-bus-bower/blob/master/vertx-eventbus.js
62598fa338b623060ffa8f37