code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class DataExtractor2003(DataExtractor): <NEW_LINE> <INDENT> def _getSubjectPattern(self): <NEW_LINE> <INDENT> return "Betreff:(.*)Antragstellende Fraktion:" <NEW_LINE> <DEDENT> def _getPartyPattern(self): <NEW_LINE> <INDENT> return "Antragstellende Fraktion:(.*)Vertraulichkeit:" <NEW_LINE> <DEDENT> def _getStatementPat...
classdocs
62598fa7a8370b77170f02f4
class ModifySecretRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.EdgeUnitID = None <NEW_LINE> self.SecretName = None <NEW_LINE> self.Yaml = None <NEW_LINE> self.SecretNamespace = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.EdgeUnitID = para...
ModifySecret请求参数结构体
62598fa73539df3088ecc1ce
class setPrize_result: <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.STRING, 'success', None, None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerate...
Attributes: - success
62598fa7d58c6744b42dc262
class Student: <NEW_LINE> <INDENT> studentCount = 0 <NEW_LINE> def __init__(self, name, sex, age, number): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.sex = sex <NEW_LINE> self.age = age <NEW_LINE> self.number = number <NEW_LINE> Student.studentCount = Student.studentCount + 1 <NEW_LINE> <DEDENT> def printeeee...
这是一个学生类
62598fa7009cb60464d01439
class IIndependenceOfIrrelevantAlternativesCriterion(ICriterion): <NEW_LINE> <INDENT> pass
In voting systems, independence of irrelevant alternatives is often interpreted as, if one candidate (X) wins the election, and a new alternative (Y) is added, only X or Y will win the election. Approval voting and range voting satisfy the independence of irrelevant alternatives criterion. Another cardinal system, cum...
62598fa77b25080760ed73c7
class InterruptException(Exception): <NEW_LINE> <INDENT> def __init__(self, msg=None): <NEW_LINE> <INDENT> msg=msg or "thread interrupt" <NEW_LINE> super().__init__(msg)
Generic interrupt exception (raised by some function to signal interrupts from other threads)
62598fa74f6381625f19944b
class MultinicPolicyTest(base.BasePolicyTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(MultinicPolicyTest, self).setUp() <NEW_LINE> self.controller = multinic.MultinicController() <NEW_LINE> self.req = fakes.HTTPRequest.blank('') <NEW_LINE> self.mock_get = self.useFixture( fixtures.MockPatch('nov...
Test Multinic APIs policies with all possible context. This class defines the set of context with different roles which are allowed and not allowed to pass the policy checks. With those set of context, it will call the API operation and verify the expected behaviour.
62598fa74f88993c371f0497
class NotificationFailure(Exception): <NEW_LINE> <INDENT> pass
Custom exception for notification failures, inherits Exception.
62598fa7fff4ab517ebcd700
class EdiLocationDocument(models.AbstractModel): <NEW_LINE> <INDENT> _name = 'edi.location.document' <NEW_LINE> _inherit = 'edi.document.sync' <NEW_LINE> _description = "Stock Locations" <NEW_LINE> @api.model <NEW_LINE> def location_record_model(self, doc, supermodel='edi.location.record'): <NEW_LINE> <INDENT> return s...
EDI location document This is the base model for EDI location documents. Each row represents a collection of EDI location records that, in turn, represent a location that will be created or updated when the document is executed. All input attachments are parsed to generate a list of potential EDI location records, r...
62598fa7627d3e7fe0e06dc7
class Scroller(object): <NEW_LINE> <INDENT> def __init__(self, lines=[], space = " :: ", width=16, height=2): <NEW_LINE> <INDENT> self.width = width <NEW_LINE> self.height = height <NEW_LINE> self.space = space <NEW_LINE> self.setLines(lines) <NEW_LINE> <DEDENT> def setLines(self, lines): <NEW_LINE> <INDENT> if isinsta...
Object designed to auto-scroll text on a LCD screen. Every time the scroll() method is called to, it will scroll the text from right to left by one character on any line that is greater than the provided with. If the lines ever need to be reset \ updated, call to the setLines() method.
62598fa71b99ca400228f4bd
@six.python_2_unicode_compatible <NEW_LINE> class IPO(Node): <NEW_LINE> <INDENT> KNOWN_RELATIONSHIPS = [ 'funded_company', 'stock_exchange', 'images', 'videos', 'news', ] <NEW_LINE> KNOWN_PROPERTIES = [ "api_path", "web_path", "went_public_on", "went_public_on_trust_code", "stock_exchange_symbol", "stock_symbol", "shar...
Represents an IPO on CrunchBase
62598fa7498bea3a75a57a38
class Unsigned(tb.SQLType): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> @lru_cache <NEW_LINE> def __class_getitem__(cls, t): <NEW_LINE> <INDENT> if t == TinyInt: <NEW_LINE> <INDENT> return UnsignedTinyInt <NEW_LINE> <DEDENT> if t == SmallInt: <NEW_LINE> <INDENT> return UnsignedSmallInt <NEW_LINE> <DEDENT> if t == Mediu...
Unsigned sql type
62598fa799fddb7c1ca62d76
class QLearningAgent(ReinforcementAgent): <NEW_LINE> <INDENT> def __init__(self, **args): <NEW_LINE> <INDENT> ReinforcementAgent.__init__(self, **args) <NEW_LINE> "*** YOUR CODE HERE ***" <NEW_LINE> self.Q = {} <NEW_LINE> <DEDENT> def getQValue(self, state, action): <NEW_LINE> <INDENT> if (state, action) not in self.Q:...
Q-Learning Agent Functions you should fill in: - computeValueFromQValues - computeActionFromQValues - getQValue - getAction - update Instance variables you have access to - self.epsilon (exploration prob) - self.alpha (learning rate) - self.discount (discount rate) Functions you should use - self.g...
62598fa763d6d428bbee26cd
class DBDataError(DBError): <NEW_LINE> <INDENT> pass
Raised for errors that are due to problems with the processed data. E.g. division by zero, numeric value out of range, incorrect data type, etc
62598fa7a8ecb0332587112b
class PlayQuestionDecoratorTests(test_utils.GenericTestBase): <NEW_LINE> <INDENT> question_id = 'question_id' <NEW_LINE> class MockHandler(base.BaseHandler): <NEW_LINE> <INDENT> GET_HANDLER_ERROR_RETURN_TYPE = feconf.HANDLER_TYPE_JSON <NEW_LINE> URL_PATH_ARGS_SCHEMAS = { 'question_id': { 'schema': { 'type': 'basestring...
Tests the decorator can_play_question.
62598fa7a8370b77170f02f6
class Comment(BaseComment): <NEW_LINE> <INDENT> created_by = models.ForeignKey(User, unique=False, blank=True, null=True) <NEW_LINE> user_url = models.CharField(max_length=100) <NEW_LINE> email_id = models.EmailField() <NEW_LINE> is_spam = models.BooleanField(default=False) <NEW_LINE> is_public = models.NullBooleanFiel...
Comments for each blog. text: The comment text. comment_for: the Post/Page this comment is created for. created_on: The date this comment was written on. created_by: THe user who wrote this comment. user_name = If created_by is null, this comment was by anonymous user. Name in that case. email_id: Email-id, as in user_...
62598fa7d268445f26639b11
class TestRequestResource(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.app = app <NEW_LINE> self.app.config.from_object(app_config['testing']) <NEW_LINE> self.app_context = self.app.app_context() <NEW_LINE> self.app_context.push() <NEW_LINE> init() <NEW_LINE> self.client = self.app....
A class to perform tests for the Request Resource
62598fa72c8b7c6e89bd36e1
class Ipv4Header(object): <NEW_LINE> <INDENT> __slots__ = ['version', 'internet_hdr_length', 'dscp', 'explicit_congestion_notification', 'total_length', 'identification', 'flags', 'fragment_offset', 'time_to_live', 'protocol', 'header_checksum', 'source_ip', 'destination_ip', 'options'] <NEW_LINE> def __init__(self, ve...
RFC791, RFC2474, RFC3168 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Version| IHL | DSCP |ECN| Total Length | +-+-+-+-+-+-+-+...
62598fa78da39b475be030fe
class MockSingleUserServer(SingleUserNotebookApp): <NEW_LINE> <INDENT> def init_signal(self): <NEW_LINE> <INDENT> pass
Mock-out problematic parts of single-user server when run in a thread Currently: - disable signal handler
62598fa7dd821e528d6d8e51
class Data(Statement): <NEW_LINE> <INDENT> match = re.compile(r'data\b', re.I).match <NEW_LINE> def process_item(self): <NEW_LINE> <INDENT> line = self.item.get_line()[4:].lstrip() <NEW_LINE> stmts = [] <NEW_LINE> self.isvalid = False <NEW_LINE> while line: <NEW_LINE> <INDENT> i = line.find('/') <NEW_LINE> if i == -1: ...
DATA <data-stmt-set> [ [ , ] <data-stmt-set> ]... <data-stmt-set> = <data-stmt-object-list> / <data-stmt-value-list> / <data-stmt-object> = <variable> | <data-implied-do> <data-implied-do> = ( <data-i-do-object-list> , <data-i-do-variable> = <scalar-int-expr> , <scalar-int-expr> [ , <scalar-int-expr> ] ) <data-i-do-obj...
62598fa73539df3088ecc1d0
class TestAutoRegOLSConstant(CheckAutoRegMixin): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setup_class(cls): <NEW_LINE> <INDENT> data = sm.datasets.sunspots.load(as_pandas=True) <NEW_LINE> data.endog.index = list(range(len(data.endog))) <NEW_LINE> cls.res1 = AutoReg(data.endog, lags=9, old_names=False).fit() <NEW...
Test AutoReg fit by OLS with a constant.
62598fa77d43ff2487427390
class CloudErrorBody(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, } <NEW_LINE> def __init__( self, **kwargs ...
An error response from the service. :param code: An identifier for the error. Codes are invariant and are intended to be consumed programmatically. :type code: str :param message: A message describing the error, intended to be suitable for display in a user interface. :type message: str :param target: The target of ...
62598fa7d7e4931a7ef3bfb7
class Healpix2SphericalOperator(_HealPixSpherical): <NEW_LINE> <INDENT> def __init__(self, nside, convention, nest=False, **keywords): <NEW_LINE> <INDENT> _HealPixSpherical.__init__( self, nside, convention, nest=nest, reshapein=self._reshapehealpix, reshapeout=self._reshapespherical, validateout=self._validatespherica...
Convert Healpix pixels into spherical coordinates in radians. The last dimension of the operator's output is 2 and it encodes the two spherical angles. Four conventions define what these angles are: - 'zenith,azimuth': (theta, phi) angles commonly used in physics or the (colatitude, longitude) angles used in...
62598fa7be383301e0253714
class ApplicationGatewayRewriteRuleSet(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'}, 'rewrite_rule...
Rewrite rule set of an application gateway. Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str :param name: Name of the rewrite rule set that is unique within an Application Gateway. :type name: str :ivar etag: A unique read-only string that c...
62598fa76e29344779b00578
class TestTransactionAPI(APITestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.user = UserFactory.build() <NEW_LINE> self.user.save() <NEW_LINE> self.ledger = LedgerFactory.build() <NEW_LINE> self.ledger.user = self.user <NEW_LINE> self.ledger.save() <NEW_LINE> self.account = AccountFactory.build(...
Tests the /transactions endpoint.
62598fa767a9b606de545ee8
class AuthenticatedHandler(BaseHandler): <NEW_LINE> <INDENT> __metaclass__ = _HandlerMeta <NEW_LINE> @requires_auth <NEW_LINE> @xsrf_protected <NEW_LINE> def dispatch(self): <NEW_LINE> <INDENT> super(AuthenticatedHandler, self).dispatch() <NEW_LINE> <DEDENT> def _RequestContainsValidXsrfToken(self): <NEW_LINE> <INDENT>...
Base handler for servicing authenticated user requests. Implementations should provide an implementation of DenyAccess() and XsrfFail() to handle unauthenticated requests or invalid XSRF tokens. POST requests will be rejected unless the request contains a parameter named 'xsrf' which is a valid XSRF token for the cur...
62598fa74e4d562566372341
class SBSku(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'name': {'required': True}, } <NEW_LINE> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'tier': {'key': 'tier', 'type': 'str'}, 'capacity': {'key': 'capacity', 'type': 'int'}, } <NEW_LINE> def __init__( self, *, name: Union[str, "S...
SKU of the namespace. All required parameters must be populated in order to send to Azure. :param name: Required. Name of this SKU. Possible values include: "Basic", "Standard", "Premium". :type name: str or ~azure.mgmt.servicebus.v2018_01_01_preview.models.SkuName :param tier: The billing tier of this particular SK...
62598fa76aa9bd52df0d4de5
class RPlogr(RPackage): <NEW_LINE> <INDENT> homepage = "https://cloud.r-project.org/package=plogr" <NEW_LINE> url = "https://cloud.r-project.org/src/contrib/plogr_0.2.0.tar.gz" <NEW_LINE> list_url = "https://cloud.r-project.org/src/contrib/Archive/plogr" <NEW_LINE> version('0.2.0', sha256='0e63ba2e1f624005fe25c67c...
A simple header-only logging library for C++. Add 'LinkingTo: plogr' to 'DESCRIPTION', and '#include <plogr.h>' in your C++ modules to use it.
62598fa7796e427e5384e6af
class MatchOptions: <NEW_LINE> <INDENT> def __init__(self,allowPrefix=False,requireContiguousSublist=False): <NEW_LINE> <INDENT> self.AllowPrefix=allowPrefix <NEW_LINE> self.requireContiguousSublist=requireContiguousSublist
A set of options for how lists of strings are compared. Used in functions like IsSubsetOf and IsSublistOf
62598fa766656f66f7d5a30c
class CollectionRnkMETHOD(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'collection_rnkMETHOD' <NEW_LINE> id_collection = db.Column(db.MediumInteger(9, unsigned=True), db.ForeignKey(Collection.id), primary_key=True, nullable=False) <NEW_LINE> id_rnkMETHOD = db.Column(db.MediumInteger(9, unsigned=True), db.ForeignKey(R...
Represents a CollectionRnkMETHOD record.
62598fa70c0af96317c5629e
class Condition1(Condition): <NEW_LINE> <INDENT> def check(self, instance): <NEW_LINE> <INDENT> return instance.visible
Is visible ?
62598fa726068e7796d4c875
class PasswordForm(Form): <NEW_LINE> <INDENT> password = PasswordField('Password', validators=[validators.Required()])
Used to reset a password.
62598fa71f5feb6acb162b3e
class CertificateCreateParameters(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'certificate_policy': {'key': 'policy', 'type': 'CertificatePolicy'}, 'certificate_attributes': {'key': 'attributes', 'type': 'CertificateAttributes'}, 'tags': {'key': 'tags', 'type': '{str}'}, } <NEW_LINE> def __init_...
The certificate create parameters. :param certificate_policy: The management policy for the certificate. :type certificate_policy: ~azure.keyvault.v7_0.models.CertificatePolicy :param certificate_attributes: The attributes of the certificate (optional). :type certificate_attributes: ~azure.keyvault.v7_0.models.Certifi...
62598fa799cbb53fe6830df2
class InputElement(InputMixin, HtmlElement): <NEW_LINE> <INDENT> @property <NEW_LINE> def value(self): <NEW_LINE> <INDENT> if self.checkable: <NEW_LINE> <INDENT> if self.checked: <NEW_LINE> <INDENT> return self.get('value') or 'on' <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> <DEDENT> r...
Represents an ``<input>`` element. You can get the type with ``.type`` (which is lower-cased and defaults to ``'text'``). Also you can get and set the value with ``.value`` Checkboxes and radios have the attribute ``input.checkable == True`` (for all others it is false) and a boolean attribute ``.checked``.
62598fa7167d2b6e312b6e8d
class Plate4ti0130(Plate96): <NEW_LINE> <INDENT> class PlateWell(Well): <NEW_LINE> <INDENT> capacity = 1900e-6
96-well plate with 2ml deepwells from 4titude
62598fa78c0ade5d55dc361f
class KalturaScheduleResourceService(KalturaServiceBase): <NEW_LINE> <INDENT> def __init__(self, client = None): <NEW_LINE> <INDENT> KalturaServiceBase.__init__(self, client) <NEW_LINE> <DEDENT> def add(self, scheduleResource): <NEW_LINE> <INDENT> kparams = KalturaParams() <NEW_LINE> kparams.addObjectIfDefined("schedul...
The ScheduleResource service enables you to create and manage (update, delete, retrieve, etc.) the resources required for scheduled events (cameras, capture devices, etc.).
62598fa767a9b606de545ee9
class color(enum.Enum): <NEW_LINE> <INDENT> black = "black" <NEW_LINE> dark_blue = "dark_blue" <NEW_LINE> dark_green = "dark_green" <NEW_LINE> dark_aqua = "dark_aqua" <NEW_LINE> dark_red = "dark_red" <NEW_LINE> dark_purple = "dark_purple" <NEW_LINE> gold = "gold" <NEW_LINE> gray = "gray" <NEW_LINE> dark_gray = "dark_gr...
color * black * dark_blue * dark_green * dark_aqua * dark_red * dark_purple * gold * gray * dark_gray * blue * green * aqua * red * light_purple * yellow * white
62598fa7090684286d59366a
class TestImageCacheSqlite(test_utils.BaseTestCase, ImageCacheTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(TestImageCacheSqlite, self).setUp() <NEW_LINE> if getattr(self, 'disable', False): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> if not getattr(self, 'inited', False): <NEW_LINE> <IND...
Tests image caching when SQLite is used in cache
62598fa74428ac0f6e658440
class WeightingQuery(WrappingQuery): <NEW_LINE> <INDENT> def __init__(self, child, weighting): <NEW_LINE> <INDENT> WrappingQuery.__init__(self, child) <NEW_LINE> self.weighting = weighting <NEW_LINE> <DEDENT> def matcher(self, searcher, weighting=None): <NEW_LINE> <INDENT> return self.child.matcher(searcher, self.weigh...
Wraps a query and uses a specific :class:`whoosh.sorting.WeightingModel` to score documents that match the wrapped query.
62598fa78e7ae83300ee8fbf
class SharedArgument(object): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.args = args <NEW_LINE> self.kwargs = kwargs <NEW_LINE> <DEDENT> def add_to_parser(self, target_parser): <NEW_LINE> <INDENT> target_parser.add_argument(*self.args, **self.kwargs) <NEW_LINE> <DEDENT> @staticmet...
Definition of an argparse argument which can be added to multiple subparsers (AKA commands).
62598fa738b623060ffa8fb5
class GaussValuationFactory(UniqueFactory): <NEW_LINE> <INDENT> def create_key(self, domain, v = None): <NEW_LINE> <INDENT> from sage.rings.polynomial.polynomial_ring import is_PolynomialRing <NEW_LINE> if not is_PolynomialRing(domain): <NEW_LINE> <INDENT> raise TypeError("GaussValuations can only be created over polyn...
Create a Gauss valuation on ``domain``. INPUT: - ``domain`` -- a univariate polynomial ring - ``v`` -- a valuation on the base ring of ``domain``, the underlying valuation on the constants of the polynomial ring (if unspecified take the natural valuation on the valued ring ``domain``.) EXAMPLES: The Gauss valu...
62598fa7d268445f26639b12
class NodeBuild(NodeTask): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def product_types(cls): <NEW_LINE> <INDENT> return ['bundleable_js', 'runtime_classpath'] <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def prepare(cls, options, round_manager): <NEW_LINE> <INDENT> super(NodeBuild, cls).prepare(options, round_manager)...
Create an archive bundle of NodeModule targets.
62598fa7925a0f43d25e7f5c
class URFrequency: <NEW_LINE> <INDENT> ur_freq_re = re.compile(r'^\d{3}\.\d{3};[ASF]$') <NEW_LINE> def __init__(self, freq: str) -> None: <NEW_LINE> <INDENT> if not URFrequency.ur_freq_re.match(freq): <NEW_LINE> <INDENT> raise ValueError() <NEW_LINE> <DEDENT> self.freq = freq <NEW_LINE> <DEDENT> def __str__(self): <NEW...
Frequency for the ATIS Format: XXX.XXX;MOD Where XXX.XXX is the frequency and MOD is one of: A: AM F: FM S: SATCOM
62598fa716aa5153ce400420
class ExecuteOnlyVersionPreProcessor(ExecutePreprocessor): <NEW_LINE> <INDENT> def preprocess_cell(self, cell, resources, cell_index): <NEW_LINE> <INDENT> if cell.source.startswith('%run "../version.ipynb"'): <NEW_LINE> <INDENT> return super(ExecuteOnlyVersionPreProcessor, self).preprocess_cell(cell, resources, cell_in...
ExecutePreprocessor that only runs "version" cells.
62598fa76aa9bd52df0d4de7
class URLLoader: <NEW_LINE> <INDENT> def __init__(self, url): <NEW_LINE> <INDENT> self._error_info = None <NEW_LINE> self._url = None <NEW_LINE> self.url = '' <NEW_LINE> self.url = url <NEW_LINE> <DEDENT> def parse_url(self): <NEW_LINE> <INDENT> if len(self.url) == 0: <NEW_LINE> <INDENT> self._error_info = 'URLLoader: ...
Simple class for opening a web page selected by given url.
62598fa72c8b7c6e89bd36e4
class UserProfile(AbstractBaseUser, PermissionsMixin): <NEW_LINE> <INDENT> email = models.EmailField(max_length=255, unique=True) <NEW_LINE> name = models.CharField(max_length=255) <NEW_LINE> is_activate = models.BooleanField(default=True) <NEW_LINE> is_staff = models.BooleanField(default=False) <NEW_LINE> objects = Us...
Database model for users in the system
62598fa766656f66f7d5a30e
class WikiWorker(Worker): <NEW_LINE> <INDENT> def __init__(self, options, meta, data_path=None): <NEW_LINE> <INDENT> self.options = options <NEW_LINE> for check in options['checks']: <NEW_LINE> <INDENT> self.options['checks'][check] = Check( check, *options['checks'][check]) <NEW_LINE> <DEDENT> self.meta = meta <NEW_LI...
docstring for Wiki
62598fa7a17c0f6771d5c153
class UserManager(BaseUserManager): <NEW_LINE> <INDENT> def create_user(self, email, password=None, **extra_fields): <NEW_LINE> <INDENT> if not email: <NEW_LINE> <INDENT> raise ValueError("User must have an email address") <NEW_LINE> <DEDENT> user = self.model(email=self.normalize_email(email), **extra_fields) <NEW_LIN...
Custom user manger class to create user
62598fa7097d151d1a2c0f47
class GenerateAnsibleException(Exception): <NEW_LINE> <INDENT> pass
General Exception for generate function
62598fa7167d2b6e312b6e8f
class VersionedFlowsEntity(object): <NEW_LINE> <INDENT> swagger_types = { 'versioned_flows': 'list[VersionedFlowEntity]' } <NEW_LINE> attribute_map = { 'versioned_flows': 'versionedFlows' } <NEW_LINE> def __init__(self, versioned_flows=None): <NEW_LINE> <INDENT> self._versioned_flows = None <NEW_LINE> if versioned_flow...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fa7d7e4931a7ef3bfba
class PoliticianTagLinkDisputed(models.Model): <NEW_LINE> <INDENT> tag = models.ForeignKey(Tag, null=False, blank=False, verbose_name='tag unique identifier', on_delete=models.deletion.DO_NOTHING) <NEW_LINE> politician = models.ForeignKey(Politician, null=False, blank=False, verbose_name='politician unique identifier',...
This is a highly disputed link between tag & item of interest. Generated from 'tag_added', and tag results are only shown to people within the cloud of the voter who posted We split off how things are tagged to avoid conflict wars between liberals & conservatives (Deal with some tags visible in some networks, and not ...
62598fa7b7558d589546354e
class TemplateTests(ManifestTestCase): <NEW_LINE> <INDENT> def test_page_not_found(self): <NEW_LINE> <INDENT> response = self.client.get(reverse("page_not_found")) <NEW_LINE> self.assertTemplateUsed(response, "404.html") <NEW_LINE> <DEDENT> def test_server_error(self): <NEW_LINE> <INDENT> response = self.client.get(rev...
Tests for templates used by various views and errors.
62598fa710dbd63aa1c70ad1
class ValidationError(Exception): <NEW_LINE> <INDENT> def __init__(self, field, value, msg=None): <NEW_LINE> <INDENT> self.field = field <NEW_LINE> self.value = value <NEW_LINE> if msg: <NEW_LINE> <INDENT> self.msg = msg <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.msg = 'Invalid value for \'{}\': {}'.format(fiel...
A simple validation error.
62598fa7e5267d203ee6b82a
@six.python_2_unicode_compatible <NEW_LINE> class TransportProtocol(enum.IntEnum): <NEW_LINE> <INDENT> FCP = 0 <NEW_LINE> SPI = 1 <NEW_LINE> SSA = 2 <NEW_LINE> IEEE1394 = 3 <NEW_LINE> SRP = 4 <NEW_LINE> ISCSI = 5 <NEW_LINE> SAS = 6 <NEW_LINE> ADT = 7 <NEW_LINE> ATA = 8 <NEW_LINE> UAS = 9 <NEW_LINE> SOP = 0xa <NEW_LINE>...
Transport protocol identifiers or just Protocol identifiers
62598fa701c39578d7f12c9e
class DylanConstantDesc (DylanConstOrVarDesc): <NEW_LINE> <INDENT> display_name = "constant"
A Dylan constant.
62598fa799fddb7c1ca62d78
class InscricaoApnPersistencia(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'device_token': 'str', 'id_aplicacao_mobile': 'int', 'id_cartoes': 'list[int]' } <NEW_LINE> self.attribute_map = { 'device_token': 'deviceToken', 'id_aplicacao_mobile': 'idAplicacaoMobile', 'id_car...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fa74428ac0f6e658442
class Session(object): <NEW_LINE> <INDENT> def __init__(self, verbosity, app_data, interpreter, creator, seeder, activators): <NEW_LINE> <INDENT> self._verbosity = verbosity <NEW_LINE> self._app_data = app_data <NEW_LINE> self._interpreter = interpreter <NEW_LINE> self._creator = creator <NEW_LINE> self._seeder = seede...
Represents a virtual environment creation session
62598fa7e1aae11d1e7ce7b3
class AudioDataEntry(Base, AudioDataDefinition): <NEW_LINE> <INDENT> pass
Provides the mapping for AudioData table.
62598fa7d486a94d0ba2beed
class User(UserMixin): <NEW_LINE> <INDENT> pass
flask-login 的 UserMixin 类,实现了 is_authenticated,is_active,is_anonymous 等方法,直接继承
62598fa738b623060ffa8fb7
class OwnedEntities(db.Model): <NEW_LINE> <INDENT> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> player_id = db.Column(db.Integer, db.ForeignKey('player.id')) <NEW_LINE> entity_id = db.Column(db.Integer, db.ForeignKey('entity.id')) <NEW_LINE> amount = db.Column(db.Integer) <NEW_LINE> def __init__(self, player...
The table containing how much entities are owned by whom
62598fa78da39b475be03102
class MultiverbNewline(Multiverbation, Joiner): <NEW_LINE> <INDENT> pass
=|
62598fa77d43ff2487427392
class ExplicitRungeKutta(ExplicitTimeIntegration): <NEW_LINE> <INDENT> def __init__(self, bc, rate_of_change, tableau): <NEW_LINE> <INDENT> super().__init__(bc, rate_of_change) <NEW_LINE> self.tableau = tableau <NEW_LINE> self.dudt_buffers = None <NEW_LINE> <DEDENT> def __call__(self, u0, t, dt): <NEW_LINE> <INDENT> se...
Base class for explicit Runge-Kutta methods. We write Runge-Kutta methods for du/dt = L(u, t) with s-stages as: u[j] = u0 + dt_j * sum_i a[j,i] * k[j] k[j] = L(u[j], t + c[j]*dt) u1 = u0 + dt * sum_j b[j]*k[j]
62598fa7f7d966606f747f04
class Disintegrate(Spell): <NEW_LINE> <INDENT> name = "Disintegrate" <NEW_LINE> level = 6 <NEW_LINE> casting_time = "1 action" <NEW_LINE> casting_range = "60 feet" <NEW_LINE> components = ('V', 'S', 'M') <NEW_LINE> materials = """A lodestone and a pinch of dust""" <NEW_LINE> duration = "Instantaneous" <NEW_LINE> ritual...
A thin green ray springs from your pointing finger to a target that you can see within range. The target can be a creature, an object, or a creation of magical force, such as the wall created by wall of force. A creature targeted by this spell must make a Dexterity saving throw. On a failed save, the target takes...
62598fa7e5267d203ee6b82b
@mock.patch("time.sleep") <NEW_LINE> @mock.patch("requests.Session.request") <NEW_LINE> @mock.patch("singer.utils.parse_args") <NEW_LINE> class TestTimeoutAndConnnectionErrorBackoff(unittest.TestCase): <NEW_LINE> <INDENT> def test_timeout_backoff(self, mocked_parse_args, mocked_request, mocked_sleep): <NEW_LINE> <INDEN...
Test case to verify that we backoff for 5 times for Connection and Timeout error
62598fa73317a56b869be4da
class ErasureDecoder(Decoder): <NEW_LINE> <INDENT> def __init__(self, code, name=None): <NEW_LINE> <INDENT> if name is None: <NEW_LINE> <INDENT> name = 'ErasureDecoder' <NEW_LINE> <DEDENT> Decoder.__init__(self, code, name) <NEW_LINE> self.fg = FactorGraph.fromLinearCode(code) <NEW_LINE> self.solution = np.zeros(code.b...
A simple decoder for the binary erasure channel. The decoder behaves a little different than others with respect to the interpretation of LLRs, objective value and solution: * A zero LLR is interpreted as an erasure, any positive value as a guaranteed 0, and any negative value as a guaranteed 1. This has the same e...
62598fa7435de62698e9bd15
class AnalyticsApi(object): <NEW_LINE> <INDENT> def __init__(self, api_client=None): <NEW_LINE> <INDENT> if api_client is None: <NEW_LINE> <INDENT> api_client = ApiClient() <NEW_LINE> <DEDENT> self.api_client = api_client <NEW_LINE> <DEDENT> def aggregate(self, type, **kwargs): <NEW_LINE> <INDENT> kwargs['_return_http_...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen
62598fa7f548e778e596b4c4
class JudgmentAggregate(JobResource): <NEW_LINE> <INDENT> agreement = RoAttribute(name='_agreement') <NEW_LINE> ids = RoAttribute(name='_ids') <NEW_LINE> state = RoAttribute(name='_state') <NEW_LINE> updated_at = RoAttribute(name='_updated_at') <NEW_LINE> def get_fields(self): <NEW_LINE> <INDENT> return {field: self._j...
CrowdFlower Judgment aggregate. :param job: :class:`~.job.Job` instance that this :class:`JudgmentAggregate` belongs to :type job: crowdflower.job.Job :param client: :class:`~.client.Client` instance :type client: crowdflower.client.Client :param data: Job JSON dictionary :type data: dict
62598fa7236d856c2adc93cc
class Worker(Base): <NEW_LINE> <INDENT> __tablename__ = "worker" <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> phone_number = Column(String) <NEW_LINE> worker_id = Column(String) <NEW_LINE> def __init__(self, phone_number, worker_id): <NEW_LINE> <INDENT> self.phone_number = phone_number <NEW_LINE> self.w...
Holds data about workers that had worked.
62598fa73d592f4c4edbaded
class Status(models.Model): <NEW_LINE> <INDENT> description = models.CharField( max_length=1024, help_text='Описание типа задания' ) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> db_table = 'statuses' <NEW_LINE> verbose_name = 'Статус задачи' <NEW_LINE> verbose_name_plural = 'Статусы задачи'
Модель данных статуса задания
62598fa7d58c6744b42dc265
class MAVLink_component_state_message(MAVLink_message): <NEW_LINE> <INDENT> id = MAVLINK_MSG_ID_COMPONENT_STATE <NEW_LINE> name = 'COMPONENT_STATE' <NEW_LINE> fieldnames = ['time_usec', 'heaters', 'nichrome_wire'] <NEW_LINE> ordered_fieldnames = [ 'time_usec', 'heaters', 'nichrome_wire' ] <NEW_LINE> format = '<QBB' <NE...
The state of the different components onboard the balloon
62598fa7a8370b77170f02fb
class HedcoPanel(DevPanel): <NEW_LINE> <INDENT> def onSelect(self, e): <NEW_LINE> <INDENT> num = int(e.GetEventObject().GetName()) <NEW_LINE> hedco.change([num, num]) <NEW_LINE> <DEDENT> def __init__(self, parent, *args, **kwargs): <NEW_LINE> <INDENT> DevPanel.__init__(self, parent, dev = 'hedco', *args, **kwargs) <NEW...
Panel for control of Hedco.
62598fa792d797404e388af5
class VolumeConfigMapKeyToPath(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Key = None <NEW_LINE> self.Path = None <NEW_LINE> self.Mode = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Key = params.get("Key") <NEW_LINE> self.Path = params.get("Path"...
ConfigMap的key挂载到路径
62598fa7009cb60464d0143f
class Pay(PaypalAdaptiveEndpoint): <NEW_LINE> <INDENT> url = '%s%s' % (settings.PAYPAL_ENDPOINT, 'Pay') <NEW_LINE> error_class = PayError <NEW_LINE> def prepare_data(self, money, return_url, cancel_url, receivers, ipn_url=None, **kwargs): <NEW_LINE> <INDENT> if (not money or not isinstance(money, Money) or money <= Mon...
Models the Pay API operation
62598fa791af0d3eaad39d2f
class BHShannon_MaxEnt2(InitX, VerOneDSignal): <NEW_LINE> <INDENT> def estimation(self, y): <NEW_LINE> <INDENT> self.verification_one_d_signal(y) <NEW_LINE> num_of_samples = y.shape[0] <NEW_LINE> y = y - mean(y) <NEW_LINE> s = sqrt(sum(y**2) / (num_of_samples - 1)) <NEW_LINE> y /= s <NEW_LINE> h_whiten = log(s) <NEW_LI...
Maximum entropy distribution based Shannon entropy estimator. The used Gi functions are G1(x) = x exp(-x^2/2) and G2(x) = exp(-x^2/2). Initialization is inherited from 'InitX', verification comes from 'VerOneDSignal' (see 'ite.cost.x_initialization.py', 'ite.cost.x_verification.py'). Examples -------- >>> import ite...
62598fa7d7e4931a7ef3bfbc
class FlairList(Templated): <NEW_LINE> <INDENT> def __init__(self, num, after, reverse, name, user): <NEW_LINE> <INDENT> Templated.__init__(self, num=num, after=after, reverse=reverse, name=name, user=user) <NEW_LINE> <DEDENT> @property <NEW_LINE> def flair(self): <NEW_LINE> <INDENT> if self.user: <NEW_LINE> <INDENT> r...
List of users who are tagged with flair within a subreddit.
62598fa7cc0a2c111447af31
class FeedParser(object): <NEW_LINE> <INDENT> def __init__(self, _cls): <NEW_LINE> <INDENT> self.feed_class = _cls <NEW_LINE> self._reset() <NEW_LINE> <DEDENT> def _reset(self): <NEW_LINE> <INDENT> self.feed_elements = [] <NEW_LINE> self.tag_stack = [] <NEW_LINE> self.roots = [] <NEW_LINE> <DEDENT> def _find_element_cl...
Target parser class for XML document with known structure.
62598fa70c0af96317c562a3
class _Run(object): <NEW_LINE> <INDENT> def init_params(parameters): <NEW_LINE> <INDENT> Atom_params = { 'Argon': {'Cl': 2.44, 'I_p': 0.579, 'Z_c': 1, 'l': 1, 'alpha': 9}, 'Neon': {'Cl': 2.10, 'I_p': 0.793, 'Z_c': 1, 'l': 1, 'alpha': 9}, 'Helium':{'Cl': 3.13, 'I_p': 0.904, 'Z_c': 1, 'l': 0, 'alpha': 7}} <NEW_LINE> ADK...
docstring for _Run
62598fa73539df3088ecc1d5
class Settings(object): <NEW_LINE> <INDENT> def __init__(self, path='%s/.github2hackpad' % os.environ['HOME'], config={}): <NEW_LINE> <INDENT> self.path = path <NEW_LINE> self.config = {} <NEW_LINE> try: <NEW_LINE> <INDENT> with open(self.path, 'r') as f: <NEW_LINE> <INDENT> file_contents = yaml.load(f) <NEW_LINE> if f...
Credentials handling class; for to not write down my keys and secrets in a public repository.
62598fa74527f215b58e9e03
class GenerateStub(object): <NEW_LINE> <INDENT> def __init__(self, channel): <NEW_LINE> <INDENT> self.GenerateParticles = channel.unary_stream( '/Generate/GenerateParticles', request_serializer=proto_dot_particle__system__pb2.RenderInstructions.SerializeToString, response_deserializer=proto_dot_particle__system__pb2.Fr...
Missing associated documentation comment in .proto file
62598fa77d847024c075c2e5
class ListenerEvent(Enum): <NEW_LINE> <INDENT> COMMAND = "command" <NEW_LINE> EXEC = "exec" <NEW_LINE> INIT = "init" <NEW_LINE> LOAD = "load" <NEW_LINE> MODIFY = "modify" <NEW_LINE> NEW = "new" <NEW_LINE> PASTE = "paste" <NEW_LINE> RELOAD = "reload" <NEW_LINE> REVERT = "revert" <NEW_LINE> SAVE = "save" <NEW_LINE> UNTRA...
Events used in AutoSetSyntax.
62598fa71b99ca400228f4c0
class AddUserAskView(View): <NEW_LINE> <INDENT> def post(self, request): <NEW_LINE> <INDENT> userask_form = UserAskForm(request.POST) <NEW_LINE> if userask_form.is_valid(): <NEW_LINE> <INDENT> user_ask = userask_form.save(commit=True) <NEW_LINE> return HttpResponse('{"status":"success"}', content_type='application/json...
用户添加咨询
62598fa730dc7b766599f76f
class OutboundRule(SubResource): <NEW_LINE> <INDENT> _validation = { 'etag': {'readonly': True}, 'type': {'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'}, 'type...
Outbound rule of the load balancer. 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 the set of outbound rules used by the load balancer. This name can be used to access the resour...
62598fa785dfad0860cbfa05
class V1FlockerVolumeSource(object): <NEW_LINE> <INDENT> def __init__(self, datasetName=None): <NEW_LINE> <INDENT> self.swagger_types = { 'datasetName': 'str' } <NEW_LINE> self.attribute_map = { 'datasetName': 'datasetName' } <NEW_LINE> self._datasetName = datasetName <NEW_LINE> <DEDENT> @property <NEW_LINE> def datase...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fa7656771135c4895a3
class HomematicipPassageDetectorDeltaCounter(HomematicipGenericEntity, SensorEntity): <NEW_LINE> <INDENT> @property <NEW_LINE> def native_value(self) -> int: <NEW_LINE> <INDENT> return self._device.leftRightCounterDelta <NEW_LINE> <DEDENT> @property <NEW_LINE> def extra_state_attributes(self) -> dict[str, Any]: <NEW_LI...
Representation of the HomematicIP passage detector delta counter.
62598fa760cbc95b0636426e
class Resnet_SIIS(BasicModule): <NEW_LINE> <INDENT> def __init__(self, num_classes=2, siis_size=[32, 32], width=1, kw=9, dim=128, arch=1, resnet_arch='resnet50', output_stride=8, layer_num=2): <NEW_LINE> <INDENT> super(Resnet_SIIS, self).__init__() <NEW_LINE> self.siis_size = siis_size <NEW_LINE> self.output_stride = o...
Main module: Resnet_SIIS
62598fa75fdd1c0f98e5deba
class MyLayout(Widget): <NEW_LINE> <INDENT> checks = [] <NEW_LINE> def checkbox_click(self, instance, value, topping): <NEW_LINE> <INDENT> if value: <NEW_LINE> <INDENT> MyLayout.checks.append(topping) <NEW_LINE> tops = '' <NEW_LINE> for i in MyLayout.checks: <NEW_LINE> <INDENT> tops = f"{tops} {i}" <NEW_LINE> <DEDENT> ...
Assignation d'une liste vide
62598fa7379a373c97d98f33
class RuleBasedModel: <NEW_LINE> <INDENT> def __init__(self, mol_defs: List[MolDef], initial_conditions: List[InitialCondition], parameters: List[Parameter], observables: List[Observable], rules: List[Rule]) -> None: <NEW_LINE> <INDENT> self.mol_defs, self.initial_conditions, self.parameters, self.observables, self.rul...
RuleBasedModel holds everything that is necessary to define a full RBM.
62598fa73539df3088ecc1d6
class DAQProvider(object): <NEW_LINE> <INDENT> LINE_PATTERN = re.compile("^[a-zA-Z0-9+-.,:()=$/#?!%_@*|~' ]*[\n\r]*$") <NEW_LINE> def __init__(self, logger=None): <NEW_LINE> <INDENT> if logger is None: <NEW_LINE> <INDENT> logger = logging.getLogger() <NEW_LINE> <DEDENT> self.logger = logger <NEW_LINE> self.out_queue = ...
Class providing the public API and helpers for the communication with the DAQ card
62598fa7f7d966606f747f06
class FirewallRule(object): <NEW_LINE> <INDENT> @property <NEW_LINE> def fw_ipv4_access_rules(self): <NEW_LINE> <INDENT> return rule_collection( self.get_relation('fw_ipv4_access_rules'), IPv4Rule) <NEW_LINE> <DEDENT> @property <NEW_LINE> def fw_ipv4_nat_rules(self): <NEW_LINE> <INDENT> return rule_collection( self.get...
Encapsulates all references to firewall rule related entry points. This is referenced by multiple classes such as FirewallPolicy and FirewallPolicyTemplate.
62598fa7d7e4931a7ef3bfbd
class TestMissing(unittest.TestCase): <NEW_LINE> <INDENT> def test_representation(self): <NEW_LINE> <INDENT> value = _MISSING <NEW_LINE> self.assertEqual(str(value), "<MISSING CONFIGURATION>") <NEW_LINE> <DEDENT> def test_exception_default(self): <NEW_LINE> <INDENT> exception = MissingConfigurationException("MY_VALUE")...
Pointless tests for code coverage
62598fa7dd821e528d6d8e57
class ReportArticlesSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = ReportArticle <NEW_LINE> fields = ('article', 'user', 'report_msg')
This class adds a model serializer for reporting article
62598fa7b7558d5895463551
class OBJECT_OT_wf_fix_materials(Operator, AddObjectHelper): <NEW_LINE> <INDENT> bl_idname = 'mesh.wf_fix_materials' <NEW_LINE> bl_label = 'WF Material Generator' <NEW_LINE> bl_category = 'WorldForge' <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <INDENT> obj = context.active_object <NEW_LINE> r...
Generates OGRE required material files for textures
62598fa7236d856c2adc93cd
class OpencartBinding(models.AbstractModel): <NEW_LINE> <INDENT> _name = 'opencart.binding' <NEW_LINE> _inherit = 'external.binding' <NEW_LINE> _description = 'OpenCart Binding (abstract)' <NEW_LINE> backend_id = fields.Many2one( comodel_name='opencart.backend', string='OpenCart Backend', required=True, ondelete='restr...
Abstract Model for the Bindings. All of the models used as bindings between OpenCart and Odoo (such as ``opencart.res.partner``, ``opencart.product.product``, etc.) should ``_inherit`` it.
62598fa7be383301e025371a
class TypeDefinitions(api_types.Base): <NEW_LINE> <INDENT> type_definition_links = [common_types.Link] <NEW_LINE> def __init__(self, **kwds): <NEW_LINE> <INDENT> super(TypeDefinitions, self).__init__(**kwds)
CAMP v1.1 type_definitions resource.
62598fa73d592f4c4edbadef
class FunctionFilter(Filter): <NEW_LINE> <INDENT> function = None <NEW_LINE> def __init__(self, **options): <NEW_LINE> <INDENT> if not hasattr(self, 'function'): <NEW_LINE> <INDENT> raise TypeError('%r used without bound function' % self.__class__.__name__) <NEW_LINE> <DEDENT> Filter.__init__(self, **options) <NEW_LINE...
Abstract class used by `simplefilter` to create simple function filters on the fly. The `simplefilter` decorator automatically creates subclasses of this class for functions passed to it.
62598fa797e22403b383ae2e
class TetOpSplit(stepslib._py_TetOpSplitP, _Base_Solver) : <NEW_LINE> <INDENT> def run(self, end_time, cp_interval=0.0, prefix=""): <NEW_LINE> <INDENT> self._advance_checkpoint_run(end_time, cp_interval, prefix, 'tetopsplitP' ) <NEW_LINE> <DEDENT> def advance(self, advance_time, cp_interval=0.0, prefix=""): <NEW_LINE> ...
Construction:: sim = steps.solver.TetOpSplit(model, geom, rng, tet_hosts=[], tri_hosts={}, wm_hosts=[], calcMembPot=0) Create a spatial stochastic solver based on operator splitting, that is that reaction events are partitioned and diffusion is approximated. If voltage is to be simulated, argument calcMembPot sp...
62598fa74e4d562566372347
class ARTClassifier(Transformer): <NEW_LINE> <INDENT> def __init__(self, art_classifier): <NEW_LINE> <INDENT> super(ARTClassifier, self).__init__(art_classifier=art_classifier) <NEW_LINE> self._art_classifier = art_classifier <NEW_LINE> <DEDENT> def fit(self, dataset, batch_size=128, nb_epochs=20): <NEW_LINE> <INDENT> ...
Wraps an instance of an :obj:`art.classifiers.Classifier` to extend :obj:`~aiflearn.algorithms.Transformer`.
62598fa732920d7e50bc5f77
class ViewBuilder(common.ViewBuilder): <NEW_LINE> <INDENT> _collection_name = "backups" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(ViewBuilder, self).__init__() <NEW_LINE> <DEDENT> def summary_list(self, request, backups, backup_count=None): <NEW_LINE> <INDENT> return self._list_view(self.summary, request...
Model backup API responses as a python dictionary.
62598fa72c8b7c6e89bd36e8
class Finder(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def find_recursive(path: str, allow_links: bool=False, continue_in_repository: bool=False, callback: typing.Callable[[str], None]=lambda s: None) -> typing.Generator[description.RepositoryDescription, None, None]: <NEW_LINE> <INDENT> callback...
Class that helps finding existing repositories
62598fa7d58c6744b42dc266
class FunctionExpression(object): <NEW_LINE> <INDENT> openapi_types = { 'type': 'str', 'params': 'list[ModelProperty]', 'body': 'Node' } <NEW_LINE> attribute_map = { 'type': 'type', 'params': 'params', 'body': 'body' } <NEW_LINE> def __init__(self, type=None, params=None, body=None): <NEW_LINE> <INDENT> self._type = No...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598fa7a8370b77170f02fd