code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
@serialization.register("ColumnStorage") <NEW_LINE> class ColumnStorage(mapping.Configurations): <NEW_LINE> <INDENT> def __getitem__(self, key, dict_getitem=dict.__getitem__): <NEW_LINE> <INDENT> key = self._keychecker(key) <NEW_LINE> return dict_getitem(self, key) <NEW_LINE> <DEDENT> def insert_block(self, type_, *col... | Column storage definitions | 6259900f56b00c62f0fb3525 |
class Test_Readline(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.s = serial.serial_for_url(PORT, timeout=1) <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> self.s.close() <NEW_LINE> <DEDENT> def test_readline(self): <NEW_LINE> <INDENT> self.s.write(serial.to_bytes(b"1\n2... | Test readline function | 6259900f0a366e3fb87dd65a |
class MPQFactory(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def create(): <NEW_LINE> <INDENT> return multiprocessing.Queue() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def destroy(queue): <NEW_LINE> <INDENT> pass | Creator pattern for multiprocessing.Queue, also include destruction
Note this is a singleton object | 6259900fd18da76e235b7781 |
class UnauthenticatedTT(BaseTT): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(UnauthenticatedTT, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def get_locales(self, *args, **kwargs): <NEW_LINE> <INDENT> url = self.config['get_locales'] <NEW_LINE> return self.get_content(url, ... | This mixin provider the UNauthenticated API access for Toptranslation | 6259900f56b00c62f0fb3527 |
class Singleton(type): <NEW_LINE> <INDENT> _instances = {} <NEW_LINE> def __call__(cls, *args, **kwargs): <NEW_LINE> <INDENT> if cls not in cls._instances: <NEW_LINE> <INDENT> cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) <NEW_LINE> <DEDENT> return cls._instances[cls] | This is a class for ensuring classes are not duplicated. | 6259900fbf627c535bcb211a |
class _DecoratorClass(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.function = None <NEW_LINE> <DEDENT> def __call__(self, function): <NEW_LINE> <INDENT> if self.function is not None: <NEW_LINE> <INDENT> raise ValueError("Already hooked to a function") <NEW_LINE> <DEDENT> if not callable(function)... | :type function: callable | 6259900f925a0f43d25e8cac |
class IContentListingTileLayer(Interface): <NEW_LINE> <INDENT> pass | Layer (request marker interface) for content listing tile views | 625990103cc13d1c6d4663b5 |
class BadgeManagementProxy(Badge): <NEW_LINE> <INDENT> @property <NEW_LINE> def can_revoke(self): <NEW_LINE> <INDENT> return self.person is None <NEW_LINE> <DEDENT> @property <NEW_LINE> def can_unrevoke(self): <NEW_LINE> <INDENT> return self.can_revoke <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> proxy = True | Contains extra methods for Badge used by the management views. | 6259901056b00c62f0fb352d |
class ITree(object): <NEW_LINE> <INDENT> def parent(self, vtx_id): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def children(self, vtx_id): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def nb_children(self, vtx_id): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDE... | Rooted Tree interface.
depth(vid), depth() and sub_tree(vid) can be extenal algorithms. | 62599010d18da76e235b7786 |
class GroupUpdateError(GroupSelectorWithTeamGroupError): <NEW_LINE> <INDENT> group_name_already_used = None <NEW_LINE> group_name_invalid = None <NEW_LINE> external_id_already_in_use = None <NEW_LINE> def is_group_name_already_used(self): <NEW_LINE> <INDENT> return self._tag == 'group_name_already_used' <NEW_LINE> <DED... | This class acts as a tagged union. Only one of the ``is_*`` methods will
return true. To get the associated value of a tag (if one exists), use the
corresponding ``get_*`` method.
:ivar group_name_already_used: The requested group name is already being
used by another group.
:ivar group_name_invalid: Group name is... | 62599010bf627c535bcb2123 |
class FaxList(ListResource): <NEW_LINE> <INDENT> def __init__(self, version): <NEW_LINE> <INDENT> super(FaxList, self).__init__(version) <NEW_LINE> self._solution = {} <NEW_LINE> self._uri = '/Faxes'.format(**self._solution) <NEW_LINE> <DEDENT> def stream(self, from_=values.unset, to=values.unset, date_created_on_or_be... | PLEASE NOTE that this class contains beta products that are subject to
change. Use them with caution. | 625990103cc13d1c6d4663bb |
class EXT(SEQ): <NEW_LINE> <INDENT> TYPE = TYPE_EXT <NEW_LINE> TAG = 8 | ASN.1 context switching type EXTERNAL object
associated type:
[UNIVERSAL 8] IMPLICIT SEQUENCE {
identification [0] EXPLICIT CHOICE {
syntaxes [0] SEQUENCE {
abstract [0] OBJECT IDENTIFIER,
transfer [1] OBJECT IDENTIFIER
},
syntax [1] O... | 62599010925a0f43d25e8cb4 |
class RegistroH010(Registro): <NEW_LINE> <INDENT> campos = [ CampoFixo(1, 'REG', 'H010'), Campo(2, 'COD_ITEM'), Campo(3, 'UNID'), CampoNumerico(4, 'QTD'), CampoNumerico(5, 'VL_UNIT', precisao=2), CampoNumerico(6, 'VL_ITEM', precisao=2), Campo(7, 'IND_PROP'), Campo(8, 'COD_PART'), Campo(9, 'TXT_COMPL'), Campo(10, 'COD_C... | INVENTÁRIO | 62599010627d3e7fe0e07b0e |
class EKF(object): <NEW_LINE> <INDENT> def __init__(self,x,P,V,R=0,L=0.2): <NEW_LINE> <INDENT> self.L=L <NEW_LINE> self.x = x <NEW_LINE> self.P = P <NEW_LINE> self.V = V <NEW_LINE> self.R = R <NEW_LINE> <DEDENT> def Fx(self,x,u): <NEW_LINE> <INDENT> return np.array([[1,0,-u[0]*math.sin(x[2])], [0,1, u[0]*math.cos(x[2])... | Implements an EKF to the localization of the famous bicycle model.
Ist control inputs must be in meters and radians, as well for its state. | 6259901056b00c62f0fb3533 |
class MainDashboard(Component): <NEW_LINE> <INDENT> def __init__(self, parent, **props): <NEW_LINE> <INDENT> super(MainDashboard, self).__init__(parent, **props) <NEW_LINE> self.state = {} <NEW_LINE> self.status = StringVar() <NEW_LINE> self.dashboard = Frame(self, bg=BG_COLOR, frame=self.parent_frame, width=self.width... | MainDashboard Component.
The React Component that contains either the GUI's plot or a waiting screen if the device is not connected or the
.hive file is not ready.
Attributes:
status (react.widget_wrappers.StringVar): Stores the current title of the main dashboard.
dashboard (react.widget_wrappers.Frame): The... | 625990103cc13d1c6d4663be |
class Base(object): <NEW_LINE> <INDENT> def __init__(self, driver): <NEW_LINE> <INDENT> self.driver = driver <NEW_LINE> <DEDENT> def base_find_element(self, loc, time_out=10, poll_fre=0.5): <NEW_LINE> <INDENT> element = WebDriverWait(self.driver, time_out, poll_fre).until(lambda x:x.find_element(*loc)) <NEW_LINE> retur... | 定义一个基类 | 625990103cc13d1c6d4663c0 |
class RecoveryServicesClientConfiguration(Configuration): <NEW_LINE> <INDENT> def __init__( self, credential, subscription_id, **kwargs ): <NEW_LINE> <INDENT> if credential is None: <NEW_LINE> <INDENT> raise ValueError("Parameter 'credential' must not be None.") <NEW_LINE> <DEDENT> if subscription_id is None: <NEW_LINE... | Configuration for RecoveryServicesClient.
Note that all parameters used to create this instance are saved as instance
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription Id.
:type subscr... | 62599010627d3e7fe0e07b12 |
@admin.register(Friendship) <NEW_LINE> class FriendshipAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = [ "pk", "user_from", "user_to", "status" ] <NEW_LINE> search_fields = [ "user_from", "user_to", "status" ] | Friendship for the admin panel | 625990106fece00bbaccc62f |
class PyfacePythonWidget(PythonWidget): <NEW_LINE> <INDENT> def __init__(self, pyface_widget, *args, **kw): <NEW_LINE> <INDENT> self._pyface_widget = pyface_widget <NEW_LINE> super().__init__(*args, **kw) <NEW_LINE> <DEDENT> def keyPressEvent(self, event): <NEW_LINE> <INDENT> kstr = event.text() <NEW_LINE> try: <NEW_LI... | A PythonWidget customized to support the IPythonShell interface.
| 62599010d164cc6175821bf6 |
class RedirectsPanel(Panel): <NEW_LINE> <INDENT> has_content = False <NEW_LINE> nav_title = _("Intercept redirects") <NEW_LINE> def process_request(self, request): <NEW_LINE> <INDENT> response = super().process_request(request) <NEW_LINE> if 300 <= response.status_code < 400: <NEW_LINE> <INDENT> redirect_to = response.... | Panel that intercepts redirects and displays a page with debug info. | 62599010507cdc57c63a5a1a |
class PowerTransformerEnd(TransformerEnd): <NEW_LINE> <INDENT> def __init__(self, g0=0.0, ratedS=0.0, b0=0.0, r0=0.0, connectionKind="Z", b=0.0, r=0.0, ratedU=0.0, x0=0.0, x=0.0, g=0.0, *args, **kw_args): <NEW_LINE> <INDENT> self.g0 = g0 <NEW_LINE> self.ratedS = ratedS <NEW_LINE> self.b0 = b0 <NEW_LINE> self.r0 = r0 <N... | A PowerTransformerEnd is associated with each Terminal of a PowerTransformer. The impdedance values r, r0, x, and x0 of a PowerTransformerEnd represents a star equivalentas follows 1) for a two Terminal PowerTransformer the high voltage PowerTransformerEnd has non zero values on r, r0, x, and x0 while the low voltage P... | 62599010462c4b4f79dbc683 |
class BaseSchemaField(BaseField): <NEW_LINE> <INDENT> def __init__(self, id='', default=None, enum=None, title=None, description=None, **kwargs): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.title = title <NEW_LINE> self.description = description <NEW_LINE> self._enum = enum <NEW_LINE> self._default = default <NEW_... | A base class for fields that directly map to JSON Schema validator.
:param required:
If the field is required. Defaults to ``False``.
:type required: bool or :class:`.Resolvable`
:param str id:
A string to be used as a value of the `"id" keyword`_ of the resulting schema.
:param default:
The default value ... | 62599010627d3e7fe0e07b16 |
class ToppingForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = models.Topping <NEW_LINE> fields = { 'name', } | Define admin form view for Topping model. | 6259901021a7993f00c66bfa |
class MockResponse(object): <NEW_LINE> <INDENT> def __init__(self, json_data, status_code): <NEW_LINE> <INDENT> self.json_data = json_data <NEW_LINE> self.status_code = status_code <NEW_LINE> <DEDENT> def json(self): <NEW_LINE> <INDENT> return self.json_data | Mock response object for mocking | 625990105166f23b2e244050 |
class FixedOffset(_dt.tzinfo, metaclass=utils.MetaClassForClassesWithEnums): <NEW_LINE> <INDENT> def __init__(self, offsetInMinutes=0): <NEW_LINE> <INDENT> _dt.tzinfo.__init__(self) <NEW_LINE> self.__offset = _dt.timedelta(minutes=offsetInMinutes) <NEW_LINE> <DEDENT> def utcoffset(self, unused): <NEW_LINE> <INDENT> ret... | Time zone information.
Represents time zone information to be used with Python standard library
datetime classes.
FixedOffset(offsetInMinutes) creates an object that implements
datetime.tzinfo interface and represents a timezone with the specified
'offsetInMinutes' from UTC.
This class is intended to be used as 'tzi... | 625990105166f23b2e244054 |
class HelloAPIView(APIView): <NEW_LINE> <INDENT> serializer_class = serializers.HelloSerializer <NEW_LINE> def get(self, request, format=None): <NEW_LINE> <INDENT> an_apiview = [ "Uses HTTP methods as function (get, post, patch, put, delete)", "Is similar to a traditional Django View", "Gives you the most control over ... | Test API View | 625990106fece00bbaccc63b |
class Link(Component): <NEW_LINE> <INDENT> @_explicitize_args <NEW_LINE> def __init__(self, children=None, block=Component.UNDEFINED, className=Component.UNDEFINED, color=Component.UNDEFINED, component=Component.UNDEFINED, href=Component.UNDEFINED, id=Component.UNDEFINED, style=Component.UNDEFINED, TypographyClasses=Co... | A Link component.
ExampleComponent is an example component.
It takes a property, `label`, and
displays it.
It renders an input with the property `value`
which is editable by the user.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): The content of the link.
- block (b... | 625990105166f23b2e244056 |
class Bool(Type): <NEW_LINE> <INDENT> PACKER = struct.Struct('<c') <NEW_LINE> TRUE = chr(1) <NEW_LINE> FALSE = chr(0) <NEW_LINE> def check(self, value): <NEW_LINE> <INDENT> if not isinstance(value, bool): <NEW_LINE> <INDENT> raise TypeError <NEW_LINE> <DEDENT> <DEDENT> def serialize(self, value): <NEW_LINE> <INDENT> if... | Bool type | 62599010bf627c535bcb2139 |
class UserData(DataDict[str, t.Any]): <NEW_LINE> <INDENT> id: int <NEW_LINE> username: str <NEW_LINE> discriminator: str <NEW_LINE> social: SocialData <NEW_LINE> color: str <NEW_LINE> supporter: bool <NEW_LINE> certified_dev: bool <NEW_LINE> mod: bool <NEW_LINE> web_mod: bool <NEW_LINE> admin: bool <NEW_LINE> def __ini... | Model that contains information about a top.gg user. The data this model contains can be found `here
<https://docs.top.gg/api/user/#structure>`__. | 6259901056b00c62f0fb3547 |
class emulator(device): <NEW_LINE> <INDENT> def __init__(self, width, height, rotate, mode, transform, scale): <NEW_LINE> <INDENT> super(emulator, self).__init__(serial_interface=noop()) <NEW_LINE> try: <NEW_LINE> <INDENT> import pygame <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> raise RuntimeError("Emulator requir... | Base class for emulated display driver classes | 62599010d18da76e235b7792 |
class BigWig(Binary): <NEW_LINE> <INDENT> edam_format = "format_3006" <NEW_LINE> edam_data = "data_3002" <NEW_LINE> track_type = "LineTrack" <NEW_LINE> data_sources = { "data_standalone": "bigwig" } <NEW_LINE> def __init__( self, **kwd ): <NEW_LINE> <INDENT> Binary.__init__( self, **kwd ) <NEW_LINE> self._magic = 0x888... | Accessing binary BigWig files from UCSC.
The supplemental info in the paper has the binary details:
http://bioinformatics.oxfordjournals.org/cgi/content/abstract/btq351v1 | 625990105166f23b2e24405a |
class DistributionManager: <NEW_LINE> <INDENT> def __init__(self, session): <NEW_LINE> <INDENT> self.session = session <NEW_LINE> self.client = self.session.client('cloudfront') <NEW_LINE> <DEDENT> def find_matching_dist(self, domain_name): <NEW_LINE> <INDENT> paginator = self.client.get_paginator('list_distributions')... | Class for CDN Distribution. | 625990103cc13d1c6d4663d4 |
class RateChanges(APIView): <NEW_LINE> <INDENT> def get(self, request, format=None): <NEW_LINE> <INDENT> currencies = Currency.objects.exclude(code= u'EUR') <NEW_LINE> legend = ["Year"]; <NEW_LINE> rate_dict = collections.OrderedDict(); <NEW_LINE> for currency in currencies: <NEW_LINE> <INDENT> rates = currency.rates.o... | Return dynamic of changes curencies | 6259901015fb5d323ce7f9ca |
class HanderUpdateOSServer(tornado.web.RequestHandler): <NEW_LINE> <INDENT> _thread_pool = ThreadPoolExecutor(3) <NEW_LINE> @run_on_executor(executor='_thread_pool') <NEW_LINE> def handler_update_task(self): <NEW_LINE> <INDENT> aliyun_ecs_update() <NEW_LINE> time.sleep(2) <NEW_LINE> aws_ec2_update() <NEW_LINE> time.sle... | 前端手动触发从云厂商更新资产,使用异步方法 | 625990100a366e3fb87dd680 |
class OneTimeReportFactory(ReportFactory): <NEW_LINE> <INDENT> task = factory.SubFactory(OneTimeTaskFactory) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = OneTimeReport | Factory for ``OneTimeReport`` model | 625990116fece00bbaccc643 |
class Users(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'users' <NEW_LINE> username = db.Column(String(30), primary_key=True) <NEW_LINE> role = db.Column(String(30), nullable=False) | DB model representing a category associated with a building | 62599011925a0f43d25e8cce |
class FormTemplate(Base): <NEW_LINE> <INDENT> __tablename__ = "form_template" <NEW_LINE> id = id_column(__tablename__) <NEW_LINE> system_template_id = Column(Integer, unique=True, default=None) <NEW_LINE> system_template_name = Column(UnicodeText(32)) <NEW_LINE> @property <NEW_LINE> def system(self): <NEW_LINE> <INDENT... | Represents a visual template of a form. | 6259901156b00c62f0fb354d |
class AdminLoginForm(FlaskForm): <NEW_LINE> <INDENT> account = StringField( label="账号", validators=[DataRequired("请输入账号")], description="账号", render_kw={ "class": "form-control", "placeholder": "请输入账号", } ) <NEW_LINE> pwd = PasswordField( label="密码", validators=[DataRequired("请输入密码")], description="密码", render_kw={ "cl... | 管理员登录表单 | 62599011627d3e7fe0e07b28 |
class UploadCommand(Command): <NEW_LINE> <INDENT> description = 'Build and publish the package.' <NEW_LINE> user_options = [] <NEW_LINE> @staticmethod <NEW_LINE> def status(s): <NEW_LINE> <INDENT> print('\033[1m{0}\033[0m'.format(s)) <NEW_LINE> <DEDENT> def initialize_options(self): <NEW_LINE> <INDENT> pass <NEW_LINE> ... | Support setup.py upload. | 625990115166f23b2e244060 |
class FBFCurveEditor (FBVisualComponent): <NEW_LINE> <INDENT> def FBFCurveEditor(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def AddAnimationNode(self,pNode): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Clear(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def RemoveAnimationNode(self,pNode): <NEW_LINE... | FCurve editor.
| 62599011925a0f43d25e8cd0 |
class ManagedInstancePairInfo(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'primary_managed_instance_id': {'key': 'primaryManagedInstanceId', 'type': 'str'}, 'partner_managed_instance_id': {'key': 'partnerManagedInstanceId', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, primary_managed_inst... | Pairs of Managed Instances in the failover group.
:ivar primary_managed_instance_id: Id of Primary Managed Instance in pair.
:vartype primary_managed_instance_id: str
:ivar partner_managed_instance_id: Id of Partner Managed Instance in pair.
:vartype partner_managed_instance_id: str | 6259901115fb5d323ce7f9ce |
class Graph: <NEW_LINE> <INDENT> def __init__(self, commodity_name, nodes: dict, arcs: dict): <NEW_LINE> <INDENT> self.commodity_name = commodity_name <NEW_LINE> self.arcs_cost_cap = arcs <NEW_LINE> self.nodes_demands = nodes <NEW_LINE> <DEDENT> def get_trip_arcs(self): <NEW_LINE> <INDENT> trip_arcs = [] <NEW_LINE> for... | arcs: dict Arc -> (cost, capacity) | 625990118c3a8732951f71f3 |
class SponsorInfo(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.SponsorOpenId = None <NEW_LINE> self.SponsorDeviceNumber = None <NEW_LINE> self.SponsorPhone = None <NEW_LINE> self.SponsorIp = None <NEW_LINE> self.CampaignUrl = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <... | 网赚防刷相关参数
| 625990110a366e3fb87dd684 |
class Extension(object): <NEW_LINE> <INDENT> def __init__(self, name, supported, requires, comment=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.supported = set(supported or ()) <NEW_LINE> self.requires = requires <NEW_LINE> self.comment = comment <NEW_LINE> <DEDENT> def get_apis(self): <NEW_LINE> <INDENT... | Extension
| 625990118c3a8732951f71f5 |
class RteProcessor(DataProcessor): <NEW_LINE> <INDENT> def get_example_from_tensor_dict(self, tensor_dict): <NEW_LINE> <INDENT> return InputExample(tensor_dict['idx'].numpy(), tensor_dict['sentence1'].numpy().decode('utf-8'), tensor_dict['sentence2'].numpy().decode('utf-8'), str(tensor_dict['label'].numpy())) <NEW_LINE... | Processor for the RTE data set (GLUE version). | 62599011925a0f43d25e8cd4 |
class Defaults: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def PolicyDocument(Version="2012-10-17", **kwargs): <NEW_LINE> <INDENT> return raw.PolicyDocument(**kwargs) | Standard implementation of all raw classes with sensible defaults | 62599011bf627c535bcb2145 |
class EMNA(object): <NEW_LINE> <INDENT> def __init__(self, centroid, sigma, mu, lambda_): <NEW_LINE> <INDENT> self.dim = len(centroid) <NEW_LINE> self.centroid = numpy.array(centroid) <NEW_LINE> self.sigma = numpy.array(sigma) <NEW_LINE> self.lambda_ = lambda_ <NEW_LINE> self.mu = mu <NEW_LINE> <DEDENT> def generate(se... | Estimation of Multivariate Normal Algorithm (EMNA) as described
by Algorithm 1 in:
Fabien Teytaud and Olivier Teytaud. 2009.
Why one must use reweighting in estimation of distribution algorithms.
In Proceedings of the 11th Annual conference on Genetic and
evolutionary computation (GECCO '09). ACM, New York, NY, U... | 62599011462c4b4f79dbc69d |
class ApplicationGatewayBackendHealthOnDemand(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'backend_address_pool': {'key': 'backendAddressPool', 'type': 'ApplicationGatewayBackendAddressPool'}, 'backend_health_http_settings': {'key': 'backendHealthHttpSettings', 'type': 'ApplicationGatewayBackend... | Result of on demand test probe.
:param backend_address_pool: Reference of an ApplicationGatewayBackendAddressPool resource.
:type backend_address_pool:
~azure.mgmt.network.v2019_02_01.models.ApplicationGatewayBackendAddressPool
:param backend_health_http_settings: Application gateway BackendHealthHttp settings.
:type... | 625990118c3a8732951f71f7 |
class TestCCT_to_xy_CIE_D(unittest.TestCase): <NEW_LINE> <INDENT> def test_CCT_to_xy_CIE_D(self): <NEW_LINE> <INDENT> np.testing.assert_almost_equal( CCT_to_xy_CIE_D(4000), (0.38234362499999996, 0.3837662610155782), decimal=7) <NEW_LINE> np.testing.assert_almost_equal( CCT_to_xy_CIE_D(7000), (0.3053574314868805, 0.3216... | Defines :func:`colour.temperature.cct.CCT_to_xy_CIE_D` definition
unit tests methods. | 6259901156b00c62f0fb3553 |
class MatchedRoute(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'properties': {'key': 'properties', 'type': 'RouteProperties'}, } <NEW_LINE> def __init__( self, *, properties: Optional["RouteProperties"] = None, **kwargs ): <NEW_LINE> <INDENT> super(MatchedRoute, self).__init__(**kwargs) <NEW_LIN... | Routes that matched.
:ivar properties: Properties of routes that matched.
:vartype properties: ~azure.mgmt.iothub.v2019_03_22.models.RouteProperties | 6259901121a7993f00c66c10 |
class TestSetup(unittest.TestCase): <NEW_LINE> <INDENT> layer = RJ_SITE_INTEGRATION_TESTING <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.portal = self.layer['portal'] <NEW_LINE> self.installer = api.portal.get_tool('portal_quickinstaller') <NEW_LINE> <DEDENT> def test_product_installed(self): <NEW_LINE> <INDENT... | Test that rj.site is properly installed. | 62599011925a0f43d25e8cd6 |
class DigitalOutput(MDigitalOutput): <NEW_LINE> <INDENT> def __init__(self, pin): <NEW_LINE> <INDENT> MDigitalOutput.__init__(self, pin) <NEW_LINE> output(pin) <NEW_LINE> <DEDENT> def set_low(self): <NEW_LINE> <INDENT> digitalWrite(self.pin, 0) <NEW_LINE> <DEDENT> def set_high(self): <NEW_LINE> <INDENT> digitalWrite(se... | Digital output pin. | 625990118c3a8732951f71f9 |
class ZoneExists(DMSError): <NEW_LINE> <INDENT> def __init__(self, domain): <NEW_LINE> <INDENT> message = "Zone '%s' already exists, can't create it." % domain <NEW_LINE> super().__init__(message) <NEW_LINE> self.data['name'] = domain <NEW_LINE> self.jsonrpc_error = -31 | For a DMI, can't create the requested zone as it already exists.
* JSONRPC Error: -31
* JSONRPC data keys:
* 'name' - domain name | 62599011462c4b4f79dbc6a1 |
@dataclass <NEW_LINE> class E63BeginningofExistence(E5Event): <NEW_LINE> <INDENT> TYPE_URI = "http://erlangen-crm.org/current/E63_Beginning_of_Existence" | Scope note:
This class comprises events that bring into existence any instance of E77 Persistent Item.
It may be used for temporal reasoning about things (intellectual products, physical items, groups of people, living beings) beginning to exist; it serves as a hook for determination of a “terminus post quemR... | 6259901156b00c62f0fb3557 |
class SV(object): <NEW_LINE> <INDENT> NamedTuple = collections.namedtuple('SV', ['prn', 'elev', 'azi', 'snr']) <NEW_LINE> def __init__(self, sv_data_tuple): <NEW_LINE> <INDENT> self.prn = sv_data_tuple[0] <NEW_LINE> self.elev = sv_data_tuple[1] <NEW_LINE> self.azi = sv_data_tuple[2] <NEW_LINE> self.snr = sv_data_tuple[... | classdocs | 62599011d164cc6175821c16 |
class DoExcel: <NEW_LINE> <INDENT> def __init__(self, file_name, sheet_name): <NEW_LINE> <INDENT> self.file_name = file_name <NEW_LINE> self.sheet_name = sheet_name <NEW_LINE> try: <NEW_LINE> <INDENT> self.wb = load_workbook(self.file_name) <NEW_LINE> self.sheet = self.wb[self.sheet_name] <NEW_LINE> <DEDENT> except Ex... | 来获取excel对应表单数据的类 | 625990113cc13d1c6d4663e2 |
class Dpaste(BasePaste): <NEW_LINE> <INDENT> TITLE = 'Dpaste' <NEW_LINE> URL = 'http://dpaste.com/' <NEW_LINE> SYNTAX_DICT = { 'xml': 'XML', 'python': 'Python', 'rhtml': 'Ruby HTML (ERB)', 'pyconsol': 'Python Interactive/Traceback', 'js': 'JavaScript', 'haskell': 'Haskell', 'bash': 'Bash script', 'Sql': 'SQL', 'Apache'... | The django based `dpaste.com` paste service | 6259901115fb5d323ce7f9d8 |
class ListApplicationsInputSet(InputSet): <NEW_LINE> <INDENT> def set_AccountSID(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'AccountSID', value) <NEW_LINE> <DEDENT> def set_AuthToken(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'AuthToken', value) <NEW_LINE> <DEDENT> def set_FriendlyName... | An InputSet with methods appropriate for specifying the inputs to the ListApplications
Choreo. The InputSet object is used to specify input parameters when executing this Choreo. | 62599011462c4b4f79dbc6a3 |
@registry.register_problem <NEW_LINE> class QuoraQuestionPairs(text_problems.TextConcat2ClassProblem): <NEW_LINE> <INDENT> _QQP_URL = ("https://firebasestorage.googleapis.com/v0/b/" "mtl-sentence-representations.appspot.com/o/" "data%2FQQP.zip?alt=media&token=700c6acf-160d-" "4d89-81d1-de4191d02cb5") <NEW_LINE> @proper... | Quora duplicate question pairs binary classification problems. | 62599011d164cc6175821c18 |
class Example: <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> allowed_kwargs = {"clipnorm", "clipvalue"} <NEW_LINE> for k in kwargs: <NEW_LINE> <INDENT> if k not in allowed_kwargs: <NEW_LINE> <INDENT> raise TypeError( "Unexpected keyword argument passed to optimizer: " + str(k) ) <NEW_LINE> <DEDE... | Example of class with a restriction on allowed arguments
source: https://github.com/keras-team/keras/blob/master/keras/optimizers.py | 625990110a366e3fb87dd68f |
class ProposalSubmission(_ProposalHappening, Action, WorldAssembly): <NEW_LINE> <INDENT> def __init__(self, text, params): <NEW_LINE> <INDENT> match = re.match( '@@(.+?)@@ submitted a proposal to the ' '(General Assembly|Security Council) (.+?) Board entitled "(.+?)"', text ) <NEW_LINE> if not match: <NEW_LINE> <INDENT... | A nation submitting a World Assembly proposal. | 625990113cc13d1c6d4663e4 |
class ProjectsLocationsService(base_api.BaseApiService): <NEW_LINE> <INDENT> _NAME = u'projects_locations' <NEW_LINE> def __init__(self, client): <NEW_LINE> <INDENT> super(RunV1alpha1.ProjectsLocationsService, self).__init__(client) <NEW_LINE> self._upload_configs = { } <NEW_LINE> <DEDENT> def List(self, request, globa... | Service class for the projects_locations resource. | 6259901156b00c62f0fb355b |
class CalendarEvent(models.Model): <NEW_LINE> <INDENT> CSS_CLASS_CHOICES = ( ('', _('Ezer ez')), ('event-warning', _('Partida')), ('event-info', _('Jokoa')), ('event-success', _('Hitzaldia')), ('event-inverse', _('Lehiaketa')), ('event-special', _('Txapelketa')), ('event-important', _('Berezia')), ) <NEW_LINE> title = ... | Calendar Events | 625990118c3a8732951f7201 |
class SignUp(Form): <NEW_LINE> <INDENT> first_name = StringField(validators=[DataRequired()], description='First Name', label="First Name") <NEW_LINE> last_name = StringField(validators=[DataRequired()], description='') <NEW_LINE> email = StringField(validators=[DataRequired(), Email()], description='', render_kw={'onb... | User signup form. | 625990115166f23b2e244070 |
class PotentialTransformerInfo(AssetInfo): <NEW_LINE> <INDENT> def __init__(self, ptClass='', accuracyClass='', nominalRatio=None, primaryRatio=None, tertiaryRatio=None, PTs=None, secondaryRatio=None, *args, **kw_args): <NEW_LINE> <INDENT> self.ptClass = ptClass <NEW_LINE> self.accuracyClass = accuracyClass <NEW_LINE> ... | Properties of potential transformer asset.Properties of potential transformer asset.
| 62599011d18da76e235b779d |
class TargetPoolsAddInstanceRequest(_messages.Message): <NEW_LINE> <INDENT> instances = _messages.MessageField('InstanceReference', 1, repeated=True) | A TargetPoolsAddInstanceRequest object.
Fields:
instances: URLs of the instances to be added to targetPool. | 62599011462c4b4f79dbc6a9 |
class UserQueries(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=100) <NEW_LINE> email = models.EmailField() <NEW_LINE> subject = models.CharField(max_length=100) <NEW_LINE> message = models.TextField(max_length=255) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return str(self. subject) | store users' feedback | 625990118c3a8732951f7203 |
class CommandConsole(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.propertyname = 'test_propertyname' <NEW_LINE> self.id_number = 00000 <NEW_LINE> self.color = 'red' <NEW_LINE> <DEDENT> def set_member_value(self, obj, member, value): <NEW_LINE> <INDENT> original_type = type(vars(obj)[member]... | This class allows for editing of a particular object
Since it is an editing class, it should only need two functions:
- Get and Set of the various members | 62599011d18da76e235b779e |
class PEND(M4ACommand): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__(CMD.PEND) <NEW_LINE> <DEDENT> def __call__(self, track: M4ATrack): <NEW_LINE> <INDENT> if track.call_stack: <NEW_LINE> <INDENT> return_ctr = track.call_stack.pop() <NEW_LINE> track.program_ctr = track.base_ctr = return_... | Denote end of pattern block. | 62599011507cdc57c63a5a42 |
class _Node: <NEW_LINE> <INDENT> def __init__(self, parent, dep_parent, state, action, rules, used, breadth): <NEW_LINE> <INDENT> self.parent = parent <NEW_LINE> self.dep_parent = dep_parent <NEW_LINE> self.state = state <NEW_LINE> self.action = action <NEW_LINE> self.rules = rules <NEW_LINE> self.used = used <NEW_LINE... | A node in a chain being generated.
Each node is aware of its position (depth, breadth) in the dependency tree
induced by the chain. To avoid duplication when generating parallel chains,
each node stores the actions that have already been used at that depth. | 6259901121a7993f00c66c1e |
class ResultItem(BaseResultItem, SyncModelMixin, ExportTrackingFieldsMixin, BaseUuidModel): <NEW_LINE> <INDENT> test_code = models.ForeignKey(TestCode, related_name='+') <NEW_LINE> result = models.ForeignKey(Result) <NEW_LINE> subject_type = models.CharField(max_length=25, null=True) <NEW_LINE> objects = ResultItemMana... | Stores each result item in a result in one-to-many relation with :class:`Result`. | 625990115166f23b2e244074 |
class CreateMmsInstanceResp(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ReturnCode = None <NEW_LINE> self.ReturnMsg = None <NEW_LINE> self.InstanceId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.ReturnCode = params.get("ReturnCode") <NEW_LINE> ... | 创建超级短信样例返回结果
| 62599011d18da76e235b77a0 |
class OpPost(object): <NEW_LINE> <INDENT> def __init__(self, script=None, callback_url=None): <NEW_LINE> <INDENT> self.swagger_types = { 'script': 'str', 'callback_url': 'str' } <NEW_LINE> self.attribute_map = { 'script': 'script', 'callback_url': 'callback_url' } <NEW_LINE> self._script = script <NEW_LINE> self._callb... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259901115fb5d323ce7f9e4 |
class SendmailHandlerBase(object): <NEW_LINE> <INDENT> def send(self, invitation, **kwargs): <NEW_LINE> <INDENT> raise NotImplementedError | Abstract class for Sendmail Handlers | 6259901156b00c62f0fb3565 |
class VerbatimEnvironment(NoCharSubEnvironment): <NEW_LINE> <INDENT> blockType = True <NEW_LINE> captionable = True <NEW_LINE> def invoke(self, tex): <NEW_LINE> <INDENT> if self.macroMode == Environment.MODE_END: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> escape = self.ownerDocument.context.categories[0][0] <NEW_LI... | A subclass of Environment that prevents processing of the contents. This is
used for the verbatim environment.
It is also useful in cases where you want to leave the processing to the
renderer (e.g. via the imager) and the content is sufficiently complex that
we don't want plastex to deal with the commands within it.
... | 62599011507cdc57c63a5a48 |
class ExcelLib(object): <NEW_LINE> <INDENT> READ_MODE = 'r' <NEW_LINE> WRITE_MODE = 'w' <NEW_LINE> def __init__(self, fileName = None, mode = READ_MODE): <NEW_LINE> <INDENT> if ExcelLib.READ_MODE == mode: <NEW_LINE> <INDENT> self.__operation = ExcelRead(fileName) <NEW_LINE> <DEDENT> elif ExcelLib.WRITE_MODE == mode: <N... | lib for accessing excel | 625990110a366e3fb87dd69d |
class TimerField(TypedField): <NEW_LINE> <INDENT> def __init__(self, *other_types, attr_name=None): <NEW_LINE> <INDENT> super().__init__(str, int, float, *other_types, attr_name=attr_name) <NEW_LINE> <DEDENT> def __set__(self, obj, value): <NEW_LINE> <INDENT> value = remove_convertible(value) <NEW_LINE> self._check_typ... | Stores a timer in the form of a :class:`datetime.timedelta` object | 62599011d18da76e235b77a2 |
class NBNSNameRegistrationRequest(NBNSRequest): <NEW_LINE> <INDENT> def __init__( self, name_trn_id, q_name, nb_address, for_group=False, ont=None, ttl=None, broadcast=False, ): <NEW_LINE> <INDENT> if broadcast: <NEW_LINE> <INDENT> ttl = 0 <NEW_LINE> <DEDENT> elif ttl is None: <NEW_LINE> <INDENT> raise ValueError("NBNS... | NetBIOS Name Service Name Registration request.
See also: section 4.2.2 of RFC 1002 (https://tools.ietf.org/html/rfc1002). | 625990116fece00bbaccc660 |
class ProductAttributeSelectionOption(ModelSQL, ModelView): <NEW_LINE> <INDENT> __name__ = 'product.attribute.selection_option' <NEW_LINE> name = fields.Char("Name", required=True, select=True, translate=True) <NEW_LINE> attribute = fields.Many2One( "product.attribute", "Attribute", required=True, ondelete='CASCADE' ) | Attribute Selection Option | 625990115166f23b2e24407d |
class StateViewer(wx.Window, garlicsim_wx.widgets.WorkspaceWidget): <NEW_LINE> <INDENT> def __init__(self, frame): <NEW_LINE> <INDENT> wx.Window.__init__(self, frame, style=wx.SUNKEN_BORDER) <NEW_LINE> garlicsim_wx.widgets.WorkspaceWidget.__init__(self, frame) <NEW_LINE> self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM) <NEW... | Widget for showing a state onscreen. | 625990115166f23b2e24407f |
class FlowcellsInfoDataHandler(tornado.web.RequestHandler): <NEW_LINE> <INDENT> def get(self, flowcell): <NEW_LINE> <INDENT> self.set_header("Content-type", "application/json") <NEW_LINE> self.write(json.dumps(self.flowcell_info(flowcell))) <NEW_LINE> <DEDENT> def flowcell_info(self, flowcell): <NEW_LINE> <INDENT> fc_v... | Serves brief information about a given flowcell.
| 6259901221a7993f00c66c2a |
class ResolveAliasResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.FleetId = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.FleetId = params.get("FleetId") <NEW_LINE> self.RequestId = params.get("RequestId") | ResolveAlias返回参数结构体
| 62599012d18da76e235b77a5 |
class UserUpdateTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> response = client.post('/users/', data=json.dumps({ "username": "test2", "password": "test2", "firstName": "test", "lastName": "test", }), content_type='application/json') <NEW_LINE> self.token = response.data['token'] <NEW_LINE> s... | Test module to update user profile | 6259901256b00c62f0fb356e |
class IPermissionsDeclarationViewlet(IViewlet): <NEW_LINE> <INDENT> pass | Will return to the client side all of our security declaritives | 625990120a366e3fb87dd6a3 |
class RandomHtmlDocumentProvider(RandomParagraphProvider): <NEW_LINE> <INDENT> def getValue(self): <NEW_LINE> <INDENT> html = '<html><body>' <NEW_LINE> for _ in range(random.randint(5, 10)): <NEW_LINE> <INDENT> html += '<h1>' + RandomPhraseProvider.getValue(self) + '</h1>' <NEW_LINE> html += '<p>' + RandomParagraphProv... | Data provider that returns a random HTML document. | 62599012d164cc6175821c2e |
class APIError(Exception): <NEW_LINE> <INDENT> _default_status_code = 400 <NEW_LINE> def __init__(self, message, status_code=None): <NEW_LINE> <INDENT> Exception.__init__(self) <NEW_LINE> self.message = message <NEW_LINE> if status_code is None: <NEW_LINE> <INDENT> self.status_code = self._default_status_code <NEW_LINE... | Исключение при обработке запроса. | 62599012be8e80087fbbfd22 |
class ratelimit_access_token(RateLimitDecorator): <NEW_LINE> <INDENT> def normalize_key(self, request, *args, **kwargs): <NEW_LINE> <INDENT> if self.path_in_key: <NEW_LINE> <INDENT> ret = "{}{}".format(request.access_token, request.path) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> ret = request.access_token <NEW_LINE... | Limit by the requested client's access token, because certain endpoints can
only be requested a certain amount of times for the given access token | 62599012d18da76e235b77a6 |
class TushareGateway(VtGateway): <NEW_LINE> <INDENT> def __init__(self, eventEngine, gatewayName='Tushare'): <NEW_LINE> <INDENT> super(TushareGateway, self).__init__(eventEngine, gatewayName) <NEW_LINE> self.mdConnected = False <NEW_LINE> self.tdConnected = False <NEW_LINE> self.qryEnabled = False <NEW_LINE> self.subSy... | CTP接口 | 6259901215fb5d323ce7f9f0 |
class IssueCommentEdge(sgqlc.types.Type): <NEW_LINE> <INDENT> __schema__ = github_schema <NEW_LINE> __field_names__ = ('cursor', 'node') <NEW_LINE> cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='cursor') <NEW_LINE> node = sgqlc.types.Field('IssueComment', graphql_name='node') | An edge in a connection. | 62599012462c4b4f79dbc6bd |
class User(model.Model, Storm): <NEW_LINE> <INDENT> __metaclass__ = model.MambaStorm <NEW_LINE> __storm_table__ = 'users' <NEW_LINE> name = Unicode(size=128) <NEW_LINE> realname = Unicode(size=256) <NEW_LINE> email = Unicode(primary=True, size=128) <NEW_LINE> key = Unicode(size=128) <NEW_LINE> access_level = Int(unsign... | Users model for BlackMamba | 62599012be8e80087fbbfd26 |
class OpenPGPKeys(object) : <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_ascii_armor(cls, keyAsc) : <NEW_LINE> <INDENT> return OpenPGPKeys(keyAsc) <NEW_LINE> <DEDENT> def __init__(self, keyAsc, encoding = 'utf-8'): <NEW_LINE> <INDENT> self._keyAsc = keyAsc <NEW_LINE> self._loadedKeys = load_keys(keyAsc) <NEW_LI... | Facade do decouple users of 'openpgp' from underlying implementation,
currently 'PGPy'. | 6259901221a7993f00c66c30 |
class ModifyCharacterResponseSchema(schema.ResponseSchema): <NEW_LINE> <INDENT> fields = {} | ModifyCharacter - 修改角色 | 62599012925a0f43d25e8cf6 |
class _ReceiverThread(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, listen_port, client, callback_container, in_socket=None): <NEW_LINE> <INDENT> logging.info("NH: Thread created") <NEW_LINE> threading.Thread.__init__(self) <NEW_LINE> if in_socket is None: <NEW_LINE> <INDENT> self._network_socket = socket.s... | Runs the network communication in a thread so that all other execution
remains unaffected. | 62599012462c4b4f79dbc6bf |
class Executor(object): <NEW_LINE> <INDENT> def submit(self, fn, *args, **kwargs): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def map(self, fn, *iterables, timeout=None): <NEW_LINE> <INDENT> if timeout is not None: <NEW_LINE> <INDENT> end_time = timeout + time.time() <NEW_LINE> <DEDENT> fs = [s... | This is an abstract base class for concrete asynchronous executors. | 62599012be8e80087fbbfd28 |
@admin.register(Transaction) <NEW_LINE> class TransactionAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> date_hierarchy = 'request_ts' <NEW_LINE> list_filter = ('server', ResponseFilter, 'request_type', 'response_type') <NEW_LINE> list_display = ('admin_duid', 'admin_interface_id', 'admin_remote_id', 'server', 'admin_requ... | Admin interface for transactions | 6259901256b00c62f0fb3576 |
class NewFilesHandler(): <NEW_LINE> <INDENT> def __init__(self, book): <NEW_LINE> <INDENT> self.book = book <NEW_LINE> self.add_new_files() <NEW_LINE> <DEDENT> def add_new_files(self): <NEW_LINE> <INDENT> self.template_readme() <NEW_LINE> self.copy_files() <NEW_LINE> <DEDENT> def template_readme(self): <NEW_LINE> <INDE... | NewFilesHandler - templates and copies additional files to book repos
| 62599012507cdc57c63a5a58 |
class Lookback: <NEW_LINE> <INDENT> STATS = ["mean", "max", "min", "std"] <NEW_LINE> def __init__(self, lookback_time: float = 0): <NEW_LINE> <INDENT> self.lookback_time = lookback_time <NEW_LINE> self._entries = collections.deque() <NEW_LINE> <DEDENT> def add(self, time: float, mode_amplitudes: np.ndarray): <NEW_LINE>... | A helper class for a RamanSimulation that "looks backward" from the end of the simulation and collects summary data on the mode amplitudes. | 6259901256b00c62f0fb3578 |
class MaxCubeHandle: <NEW_LINE> <INDENT> def __init__(self, cube, scan_interval): <NEW_LINE> <INDENT> self.cube = cube <NEW_LINE> self.scan_interval = scan_interval <NEW_LINE> self.mutex = Lock() <NEW_LINE> self._updatets = time.time() <NEW_LINE> <DEDENT> def update(self): <NEW_LINE> <INDENT> with self.mutex: <NEW_LINE... | Keep the cube instance in one place and centralize the update. | 62599012462c4b4f79dbc6c3 |
class TCellNaiveHelperRecruitmentBronchialByCytokine(RecruitmentBronchialByExternals): <NEW_LINE> <INDENT> def __init__(self, probability): <NEW_LINE> <INDENT> RecruitmentBronchialByExternals.__init__(self, probability, recruited_compartment=T_CELL_NAIVE_HELPER, external_compartments=CYTOKINE_PRODUCING_COMPARTMENTS, ba... | Naive helper T-cell recruited into bronchial tree based on cytokine levels | 625990126fece00bbaccc672 |
class MultiCheckboxField(form.Field): <NEW_LINE> <INDENT> def __init__(self, name, values, value=None, **kwargs): <NEW_LINE> <INDENT> if value is None: <NEW_LINE> <INDENT> value = [] <NEW_LINE> <DEDENT> if not isinstance(value, list): <NEW_LINE> <INDENT> raise Exception('Value must be a list for multi-checkbox field') ... | This field renders as multiple checkboxes in a vertical column. The must pass in a list of
object with select_name and select_value properties defined. Each checkbox will have
select_name as a label, and select_value (which must be unique) will be submitted as the
value of the checkbox.
When reading form data, the or... | 62599012507cdc57c63a5a5c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.