code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class Connection(): <NEW_LINE> <INDENT> def __init__(self,incoming_road,connecting_road,contact_point,id=None): <NEW_LINE> <INDENT> self.incoming_road = incoming_road <NEW_LINE> self.connecting_road = connecting_road <NEW_LINE> self.contact_point = contact_point <NEW_LINE> self.id = id <NEW_LINE> self.links = [] <NEW_L...
Connection creates a connection as a base of junction Parameters ---------- incoming_road (int): the id of the incoming road to the junction connecting_road (int): id of the connecting road (type junction) contact_point (ContactPoint): the contact point of the link id (int): id of the junction (...
62598f960fa83653e46f4bc9
class MruVCharactersServiceStub(object): <NEW_LINE> <INDENT> def __init__(self, channel): <NEW_LINE> <INDENT> self.CreateCharacter = channel.unary_unary( '/mruv.characters.MruVCharactersService/CreateCharacter', request_serializer=characters_dot_characters__pb2.CreateCharacterRequest.SerializeToString, response_deseria...
Missing associated documentation comment in .proto file.
62598f96009cb60464d01205
class SimpleMovingAveraging(): <NEW_LINE> <INDENT> def __init__(self, n=4): <NEW_LINE> <INDENT> self.values = [] <NEW_LINE> self.n = n <NEW_LINE> <DEDENT> def update(self, x): <NEW_LINE> <INDENT> if x is None: return <NEW_LINE> if len(self.values) > self.n: <NEW_LINE> <INDENT> del self.values[0] <NEW_LINE> <DEDENT> sel...
Simple moving averaging.
62598f96adb09d7d5dc0a268
class JunctionQuery: <NEW_LINE> <INDENT> OP_AND = 'AND' <NEW_LINE> OP_OR = 'OR' <NEW_LINE> OP_ANDNOT = 'ANDNOT' <NEW_LINE> def __init__(self, left, right, operator): <NEW_LINE> <INDENT> self.left = left <NEW_LINE> self.right = right <NEW_LINE> self.op = operator <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDEN...
A query that wraps two subqueries with a bitwise op
62598f9645492302aabfc1b9
class VerifyRenewableCertSigTest(VerifyCertSetup): <NEW_LINE> <INDENT> def _call(self, renewable_cert): <NEW_LINE> <INDENT> from certbot.crypto_util import verify_renewable_cert_sig <NEW_LINE> return verify_renewable_cert_sig(renewable_cert) <NEW_LINE> <DEDENT> def test_cert_sig_match(self): <NEW_LINE> <INDENT> self.as...
Tests for certbot.crypto_util.verify_renewable_cert.
62598f96435de62698e9bad4
class Necklaces_evaluation(UniqueRepresentation, Parent): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def __classcall_private__(cls, content): <NEW_LINE> <INDENT> if isinstance(content, Composition): <NEW_LINE> <INDENT> return super(Necklaces_evaluation, cls).__classcall__(cls, content) <NEW_LINE> <DEDENT> else: <NEW_...
Necklaces with a fixed evaluation (content). INPUT: - ``content`` -- a list or tuple of non-negative integers
62598f964527f215b58e9bc4
class OwncaKeyData(object): <NEW_LINE> <INDENT> def __init__(self, key_data): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> _validate_owncakeydata(key_data) <NEW_LINE> <DEDENT> except OnwCAInvalidDataStructure as err: <NEW_LINE> <INDENT> raise err <NEW_LINE> <DEDENT> self.__dict__ = key_data <NEW_LINE> self.key_data = k...
Generates Ownca Key Data Structure :param key_data: Key Data .. highlight:: python .. code-block:: python { "key": cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey, "key_bytes": bytes, "public_key": cryptography.hazmat.backends.openssl.rsa._RSAPrivateKey, ...
62598f9699cbb53fe6830bb0
class SnapshotsController(snapshots_v2.SnapshotsController): <NEW_LINE> <INDENT> _view_builder_class = snapshot_views.ViewBuilder <NEW_LINE> def _get_snapshot_filter_options(self): <NEW_LINE> <INDENT> return 'status', 'volume_id', 'name', 'metadata' <NEW_LINE> <DEDENT> def _format_snapshot_filter_options(self, search_o...
The Snapshots API controller for the OpenStack API.
62598f96a17c0f6771d5bf1b
class SetNetLookupEnabledFinished(FrontendMessage): <NEW_LINE> <INDENT> pass
The backend has processed the SetNetLookupEnabled message.
62598f9610dbd63aa1c70896
class RX(object): <NEW_LINE> <INDENT> def __init__(self, fisica): <NEW_LINE> <INDENT> self.fisica = fisica <NEW_LINE> self.buffer = bytes(bytearray()) <NEW_LINE> self.threadStop = False <NEW_LINE> self.threadMutex = True <NEW_LINE> self.READLEN = 1024 <NEW_LINE> <DEDENT> def thread(self): <NEW_LINE> <IND...
This class implements methods to handle the reception data over the p2p fox protocol
62598f968c0ade5d55dc34fe
class MyModuleCCSession(isc.config.ConfigData): <NEW_LINE> <INDENT> def __init__(self, spec_file, config_handler, command_handler): <NEW_LINE> <INDENT> module_spec = isc.config.module_spec_from_file(spec_file) <NEW_LINE> isc.config.ConfigData.__init__(self, module_spec) <NEW_LINE> self._session = self <NEW_LINE> self.s...
Mocked ModuleCCSession class. This class incorporates the module spec directly from the file, and works as if the ModuleCCSession class as much as possible without involving network I/O.
62598f96004d5f362081ee6c
class Noise(Filter): <NEW_LINE> <INDENT> def __init__(self, variance_x, variance_y, variance_angle): <NEW_LINE> <INDENT> self.std_dev_x = sqrt(variance_x) <NEW_LINE> self.std_dev_y = sqrt(variance_y) <NEW_LINE> self.std_dev_a = sqrt(variance_angle) <NEW_LINE> <DEDENT> def filter_update(self, update): <NEW_LINE> <INDENT...
This filter adds gaussian noise to the input x, y and angle variables. This is used to evaluate filter performance. Despite having this feature on grSim, using a filter inside the client allows storage of the data before the addition of noise. This allows easier performance comparison when PositionLog filters are added...
62598f962c8b7c6e89bd34af
class DP_SGD(Optimizer): <NEW_LINE> <INDENT> def __init__(self, params, lr=0.1, max_norm=0.01, stddev=2.0): <NEW_LINE> <INDENT> self.lr = lr <NEW_LINE> self.max_norm = max_norm <NEW_LINE> self.stddev = stddev <NEW_LINE> super().__init__(params, dict()) <NEW_LINE> <DEDENT> def step(self): <NEW_LINE> <INDENT> l2_norms_al...
Differentially Private SGD. Arguments: params (iterable): iterable of parameters to optimize or dicts defining parameter groups lr (float, optional): coefficient that scale delta before it is applied to the parameters (default: 1.0) max_norm (float, optional): maximum norm of the individual...
62598f9607d97122c4216992
class ComputeVmPropertiesFragment(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'statuses': {'key': 'statuses', 'type': '[ComputeVmInstanceViewStatusFragment]'}, 'os_type': {'key': 'osType', 'type': 'str'}, 'vm_size': {'key': 'vmSize', 'type': 'str'}, 'network_interface_id': {'key': 'networkInterf...
Properties of a virtual machine returned by the Microsoft.Compute API. :param statuses: Gets the statuses of the virtual machine. :type statuses: list[~azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatusFragment] :param os_type: Gets the OS type of the virtual machine. :type os_type: str :param vm_size: Gets the...
62598f96a17c0f6771d5bf1c
class Backend: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> host = "localhost" <NEW_LINE> port = 6379 <NEW_LINE> password = None <NEW_LINE> self.redis_instance = redis.StrictRedis( host=host, port=port, password=password, db=0, socket_timeout=8.0 ) <NEW_LINE> <DEDENT> def enqueue(self, item, queue_name):...
use redis as our broker. This implements a basic FIFO queue using redis.
62598f964e4d562566372102
class SPureIntervalFaces_s(SPureIntervalFaces): <NEW_LINE> <INDENT> def __init__(self, s): <NEW_LINE> <INDENT> Parent.__init__(self, category=FiniteEnumeratedSets()) <NEW_LINE> self._s = s <NEW_LINE> <DEDENT> def _repr_(self): <NEW_LINE> <INDENT> return "Pure Interval Faces of {}".format(self._s) <NEW_LINE> <DEDENT> de...
TESTS:: sage: for s in SDecreasingTrees.some_s(): ....: TestSuite(SDecreasingTrees(s)).run()
62598f968e71fb1e983bb795
class PressureGradientUsingNumberDensity(Equation): <NEW_LINE> <INDENT> def initialize(self, d_idx, d_au, d_av, d_aw): <NEW_LINE> <INDENT> d_au[d_idx] = 0.0 <NEW_LINE> d_av[d_idx] = 0.0 <NEW_LINE> d_aw[d_idx] = 0.0 <NEW_LINE> <DEDENT> def loop(self, d_idx, s_idx, d_m, d_rho, s_rho, d_au, d_av, d_aw, d_p, s_p, d_V, s_V,...
Pressure gradient discretized using number density: .. math:: \frac{d \boldsymbol{v}_a}{dt} = -\frac{1}{m_a}\sum_b (\frac{p_a}{V_a^2} + \frac{p_b}{V_b^2})\nabla_a W_{ab}
62598f9621a7993f00c65c60
class DoanVesely(Solver): <NEW_LINE> <INDENT> def __init__(self, anchors_coordinates, distances, configuration): <NEW_LINE> <INDENT> if anchors_coordinates.shape != (3, 2): <NEW_LINE> <INDENT> raise ValueError('Invalid shape of anchors coordinates array') <NEW_LINE> <DEDENT> if distances.shape != (3,): <NEW_LINE> <INDE...
Implements TDoA solver discussed in: - S. Van Doan and J. Vesely, "The effectivity comparison of TDOA analytical solution methods," 2015 16th International Radar Symposium (IRS), Dresden, 2015, pp. 800-805.
62598f9630dc7b766599f533
class DBpediaProcessor(DataProcessor): <NEW_LINE> <INDENT> def get_train_examples(self, data_dir): <NEW_LINE> <INDENT> return self._create_examples( self._read_tsv(os.path.join(data_dir, "train.txt")), "train") <NEW_LINE> <DEDENT> def get_dev_examples(self, data_dir): <NEW_LINE> <INDENT> return self._create_examples( s...
Processor for the CoLA data set (GLUE version).
62598f96627d3e7fe0e06b89
class test_url_csv(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> clearAKcache() <NEW_LINE> self.client = Client() <NEW_LINE> self.host1 = Host(hostname='hostcsv1') <NEW_LINE> self.host1.save() <NEW_LINE> self.host2 = Host(hostname='hostcsv2') <NEW_LINE> self.host2.save() <NEW_LINE> self.key = Allo...
(r'^csv/$', 'doCsvreport'), (r'^csv/(?P<criteria>.*)/$', 'doCsvreport'),
62598f965f7d997b871f924d
class CoolApkPosition(PositionSpider): <NEW_LINE> <INDENT> name = u'酷安网' <NEW_LINE> quanlity = 10 <NEW_LINE> domain = "www.coolapk.com" <NEW_LINE> search_url = "http://www.coolapk.com/search?q=%s" <NEW_LINE> xpath = ("//ul[@class='media-list ex-card-app-list']" "/li[@class='media']/div[@class='media-body']/h4/a") <NEW_...
>>>coolapk = CoolApkPosition() >>>coolapk.run(u'刀塔传奇')
62598f9696565a6dacd2cdea
class Plot: <NEW_LINE> <INDENT> def __init__(self, res): <NEW_LINE> <INDENT> self.filename = res.out_path+'/'+res.filename <NEW_LINE> self.fig = self.show(res) <NEW_LINE> <DEDENT> def show(self, res): <NEW_LINE> <INDENT> fig = plt.figure() <NEW_LINE> plt.scatter(res.x, res.y, s=20) <NEW_LINE> plt.plot(res.x, res.func(r...
プロット
62598f963c8af77a43b67dac
class fetchFrame_result(object): <NEW_LINE> <INDENT> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:...
Attributes: - success
62598f961f037a2d8b9e3dc4
class OpFromGraph(gof.Op): <NEW_LINE> <INDENT> def __init__(self, inputs, outputs, grad_depth=1, **kwargs): <NEW_LINE> <INDENT> if not isinstance(outputs, list): <NEW_LINE> <INDENT> raise TypeError('outputs must be list', outputs) <NEW_LINE> <DEDENT> for i in inputs + outputs: <NEW_LINE> <INDENT> if not isinstance(i, g...
This create an L{Op} from a list of input variables and a list of output variables. The signature is the same as the signature of L{FunctionFactory} and/or function and the resulting L{Op}'s perform will do the same operation as:: function(inputs, outputs, **kwargs) Take note that the following options, if provided...
62598f96be8e80087fbbed3f
class CrossEntropy(EvalMetric): <NEW_LINE> <INDENT> def __init__(self, eps=1e-8): <NEW_LINE> <INDENT> super(CrossEntropy, self).__init__('cross-entropy') <NEW_LINE> self.eps = eps <NEW_LINE> <DEDENT> def update(self, labels, preds): <NEW_LINE> <INDENT> check_label_shapes(labels, preds) <NEW_LINE> for label, pred in zip...
Calculate Cross Entropy loss
62598f9691af0d3eaad39ae9
class Actuator(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.actuators = [] <NEW_LINE> <DEDENT> def add(self, type, set_level, kwargs): <NEW_LINE> <INDENT> if type.lower() == 'fan': <NEW_LINE> <INDENT> act = self.config_fan(**kwargs) <NEW_LINE> <DEDENT> act._set_level = set_level <NEW_LINE> ...
Main Actuator module. All interactions from outside the actuators should go through here.
62598f9624f1403a92685722
@skipIf(NO_MOCK, NO_MOCK_REASON) <NEW_LINE> class ScsiTestCase(TestCase): <NEW_LINE> <INDENT> def test_ls_(self): <NEW_LINE> <INDENT> with patch.dict(scsi.__salt__, {'cmd.run': MagicMock(return_value='[A:a B:b C:c D:d]')}): <NEW_LINE> <INDENT> self.assertDictEqual(scsi.ls_(), {'[A:a': {'major': 'C', 'lun': 'A:a', 'devi...
Test cases for salt.modules.scsi
62598f968a43f66fc4bf1e5d
class IdentitySqlVariant(TypeDecorator): <NEW_LINE> <INDENT> impl = Unicode <NEW_LINE> def column_expression(self, colexpr): <NEW_LINE> <INDENT> return cast(colexpr, Numeric)
This type casts sql_variant columns in the identity_columns view to numeric. This is required because: * pyodbc does not support sql_variant * pymssql under python 2 return the byte representation of the number, int 1 is returned as "\x01\x00\x00\x00". On python 3 it returns the correct value as string.
62598f963539df3088ecbfa2
class DBusSignal(DBusNode): <NEW_LINE> <INDENT> def __init__(self, name, parent_iface): <NEW_LINE> <INDENT> DBusNode.__init__(self, name, parent_iface) <NEW_LINE> parent_iface.signals.append(self) <NEW_LINE> self._params = [] <NEW_LINE> <DEDENT> @property <NEW_LINE> def params(self): <NEW_LINE> <INDENT> return self._pa...
object to represent a DBus Signal
62598f963cc13d1c6d46544f
class UpdatePerson(graphene.Mutation): <NEW_LINE> <INDENT> person = graphene.Field(lambda: People, description="Person updated by this mutation.") <NEW_LINE> class Arguments: <NEW_LINE> <INDENT> input = UpdatePersonInput(required=True) <NEW_LINE> <DEDENT> def mutate(self, info, input): <NEW_LINE> <INDENT> data = utils....
Update a person.
62598f9632920d7e50bc5d42
class Line: <NEW_LINE> <INDENT> def __init__(self, color): <NEW_LINE> <INDENT> self.color = color <NEW_LINE> self.color_code = "0xFFFFFF" <NEW_LINE> if self.color == "blue": <NEW_LINE> <INDENT> self.color_code = "#1E90FF" <NEW_LINE> <DEDENT> elif self.color == "red": <NEW_LINE> <INDENT> self.color_code = "#DC143C" <NEW...
Defines the Line Model
62598f96a79ad16197769d43
class Solution: <NEW_LINE> <INDENT> def buildTree(self, preorder, inorder): <NEW_LINE> <INDENT> def genTree(preorder,inorder): <NEW_LINE> <INDENT> if len(preorder)==0: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> root_val = preorder[0] <NEW_LINE> root = TreeNode(root_val) <NEW_LINE> n = inorder.index(root_val) <...
@param preorder : A list of integers that preorder traversal of a tree @param inorder : A list of integers that inorder traversal of a tree @return : Root of a tree
62598f966fb2d068a7693ca4
class DatabaseManager: <NEW_LINE> <INDENT> def __init__(self, engine=None): <NEW_LINE> <INDENT> if not engine: <NEW_LINE> <INDENT> my_engine = create_engine('sqlite:///mydb.sqlite', echo=False) <NEW_LINE> Base.metadata.create_all(my_engine) <NEW_LINE> self.engine = my_engine <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT...
Pseudo database manager for SQLAlchemy
62598f96435de62698e9bad5
class NamespaceNode(XPathNode): <NEW_LINE> <INDENT> def __init__(self, prefix: str, uri: str, parent: Optional[ElementNode] = None) -> None: <NEW_LINE> <INDENT> self.prefix = prefix <NEW_LINE> self.uri = uri <NEW_LINE> self.parent = parent <NEW_LINE> <DEDENT> @property <NEW_LINE> def kind(self) -> str: <NEW_LINE> <INDE...
A class for processing XPath namespace nodes. :param prefix: the namespace prefix. :param uri: the namespace URI. :param parent: the parent element.
62598f96bde94217f37074da
class TagSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Tag <NEW_LINE> fields = ('id', 'name') <NEW_LINE> read_only_Fields = ('id',)
Serialize for tag object
62598f96a17c0f6771d5bf1d
class ValueObject(CIMXMLTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(ValueObject, self).setUp() <NEW_LINE> self.xml.append(cim_xml.VALUE_OBJECT(cim_xml.CLASS('CIM_Foo'))) <NEW_LINE> self.xml.append(cim_xml.VALUE_OBJECT(cim_xml.INSTANCE('CIM_Pet', [])))
<!ELEMENT VALUE.OBJECT (CLASS|INSTANCE)>
62598f96a4f1c619b294e2cf
class DPTFrequency(DPT4ByteFloat): <NEW_LINE> <INDENT> unit = 'Hz'
DPT 14.033 DPT_Value_Frequency.
62598f960c0af96317c56066
class Component(object): <NEW_LINE> <INDENT> interface.implements(interfaces.IComponent) <NEW_LINE> component.adapts(interfaces.IArticle) <NEW_LINE> title = _(u'Collections') <NEW_LINE> description = _(u'List of collections and their results contained in the article.') <NEW_LINE> image = '++resource++collections.gif' <...
Component which lists collections of an article
62598f9676e4537e8c3ef296
class Database(object): <NEW_LINE> <INDENT> URI = 'mongodb://127.0.0.1:27017' <NEW_LINE> DATABASE = None <NEW_LINE> @staticmethod <NEW_LINE> def initialize(): <NEW_LINE> <INDENT> client = pymongo.MongoClient(Database.URI) <NEW_LINE> Database.DATABASE = client['fullstack'] <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> de...
Uses Mongodb as a means to store data within the database.
62598f9660cbc95b0636402b
class BuildMulledDockerContainerResolver(CliContainerResolver): <NEW_LINE> <INDENT> resolver_type = "build_mulled" <NEW_LINE> shell = '/bin/bash' <NEW_LINE> builds_on_resolution = True <NEW_LINE> def __init__(self, app_info=None, namespace="local", hash_func="v2", auto_install=True, **kwds): <NEW_LINE> <INDENT> super()...
Build for Docker mulled images matching tool dependencies.
62598f96a219f33f346c64fd
class Vector3D(object): <NEW_LINE> <INDENT> def __init__(self, x, y, z): <NEW_LINE> <INDENT> self.x = float(x) <NEW_LINE> self.y = float(y) <NEW_LINE> self.z = float(z) <NEW_LINE> self.mag = math.sqrt(self.x**2.0 + self.y**2.0 + self.z**2.0) <NEW_LINE> self.i = self.x / self.mag <NEW_LINE> self.j = self.y / self.mag <N...
An object for 3D vector
62598f96c432627299fa2cb7
class MyConv2d(nn.Module): <NEW_LINE> <INDENT> def __init__(self, input_channels, output_channels, kernel_size, gain=2**(0.5), use_wscale=False, lrmul=1, bias=True, intermediate=None, upscale=False): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> if upscale: <NEW_LINE> <INDENT> self.upscale = Upscale2d() <NEW_LINE> ...
Conv layer with equalized learning rate and custom learning rate multiplier.
62598f96be383301e02534de
class MailruPage(Page): <NEW_LINE> <INDENT> @property <NEW_LINE> def mailbox(self): <NEW_LINE> <INDENT> return MailboxRegion(self)
mail.ru
62598f968e71fb1e983bb797
class Temperatures(MeasurePoint): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Temperatures, self).__init__() <NEW_LINE> self.measurement = CAP_TEMP
Temperature time series measurement
62598f96eab8aa0e5d30ba66
class PointDiagnostic(Diagnostic): <NEW_LINE> <INDENT> def __init__(self, owner: Simulation, input_data: dict): <NEW_LINE> <INDENT> super().__init__(owner, input_data) <NEW_LINE> self.location = input_data["location"] <NEW_LINE> self.field_name = input_data["field"] <NEW_LINE> self.output = input_data["output_type"] <N...
Parameters ---------- owner : Simulation Simulation object containing current object. input_data : dict Dictionary that contains information regarding location, field, and output type. Attributes ---------- location : str Location. field_name : str Field name. output : str Output type. get_value :...
62598f969c8ee8231303ffe0
class Frequency(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=50, unique=True, help_text=_("Display name for this frequency")) <NEW_LINE> slug = models.SlugField( max_length=50, unique=True, help_text=_("Unique identifier made of lowercase characters and underscores for this frequency") ) <NEW_L...
Frequencies for performing QA tasks with configurable due dates
62598f961f037a2d8b9e3dc6
class HugPlugin(StandardPlugin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> StandardPlugin.__init__(self) <NEW_LINE> self.parser.add_argument("huggee") <NEW_LINE> self.parser.add_argument("-l", "--long", action="store_true") <NEW_LINE> self.parser.add_argument("-t", "--tight", action="store_true") <NEW...
Use this command if you really like (or dislike) someone.
62598f9673bcbd0ca4bc9f3c
class SecureController(BaseController): <NEW_LINE> <INDENT> allow_only = has_permission('manage', msg=l_('Only for people with the "manage" permission')) <NEW_LINE> @expose('tinvent.templates.index') <NEW_LINE> def index(self): <NEW_LINE> <INDENT> flash(_("Secure Controller here")) <NEW_LINE> return dict(page='index') ...
Sample controller-wide authorization
62598f96baa26c4b54d4ef93
class ReservedInstanceConfigInfoItem(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Type = None <NEW_LINE> self.TypeName = None <NEW_LINE> self.Order = None <NEW_LINE> self.InstanceFamilies = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Type = param...
预留实例静态配置信息。预留实例当前只针对国际站白名单用户开放。
62598f963617ad0b5ee05e30
class UserProfile(AbstractBaseUser,PermissionsMixin): <NEW_LINE> <INDENT> email = models.EmailField( verbose_name='email address', max_length=255, unique=True, ) <NEW_LINE> roles = models.ManyToManyField("Role",blank=True) <NEW_LINE> name = models.CharField(verbose_name='用户名',max_length=32) <NEW_LINE> password = models...
用户表
62598f963539df3088ecbfa5
class AES128_GCMCipher(AES_GCMCipher): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def get_key_length(cls) -> int: <NEW_LINE> <INDENT> return 16
The Advanced Encryption Standard (the Rijndael block cipher) with a key length of 128 bits, under the Galois/Counter Mode of operation (GCM) initialized with a given initialization vector.
62598f967d847024c075c0b7
class HelloHandler(BaseHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> return 'hello, world!'
demo
62598f968e71fb1e983bb798
class LtiConsumer(models.Model): <NEW_LINE> <INDENT> consumer_name = models.CharField(max_length=255, unique=True) <NEW_LINE> consumer_key = models.CharField(max_length=32, unique=True, default=short_token) <NEW_LINE> consumer_secret = models.CharField(max_length=32, unique=True, default=short_token) <NEW_LINE> expirat...
Model to manage LTI consumers. LMS connections. Automatically generates key and secret for consumers.
62598f9624f1403a92685723
class TestDisplayErrorUnicodeOutput(unittest.TestCase): <NEW_LINE> <INDENT> def test_display_error_with_unicode_msg(self): <NEW_LINE> <INDENT> munkicommon.display_error(MSG_UNI) <NEW_LINE> <DEDENT> def test_display_error_with_str_msg(self): <NEW_LINE> <INDENT> munkicommon.display_error(MSG_STR) <NEW_LINE> <DEDENT> def ...
Test munkicommon display_error with text that may or may not be proper Unicode.
62598f96fff4ab517ebcd4d1
class Controller(object): <NEW_LINE> <INDENT> def __init__(self, image_service=None, compute_service=None): <NEW_LINE> <INDENT> self._compute_service = compute_service or compute.API() <NEW_LINE> self._image_service = image_service or nova.image.get_default_image_service() <NEW_LINE> <DEDENT> def _get_fi...
Base controller for retrieving/displaying images.
62598f9632920d7e50bc5d43
class TransformerEncoderBlock(nn.Module): <NEW_LINE> <INDENT> def __init__(self, hidden_dim: int, key_query_value_dim: int = 64, feed_forward_hidden_dim: int = 2048, num_heads=8, with_hard_concrete_gate=False): <NEW_LINE> <INDENT> super(TransformerEncoderBlock, self).__init__() <NEW_LINE> multihead_attention = SimpleMu...
param: hidden_dim - embedding hidden dim
62598f967cff6e4e811b5702
class Environment(_messages.Message): <NEW_LINE> <INDENT> class StateValueValuesEnum(_messages.Enum): <NEW_LINE> <INDENT> STATE_UNSPECIFIED = 0 <NEW_LINE> CREATING = 1 <NEW_LINE> RUNNING = 2 <NEW_LINE> UPDATING = 3 <NEW_LINE> DELETING = 4 <NEW_LINE> ERROR = 5 <NEW_LINE> <DEDENT> @encoding.MapUnrecognizedFields('additio...
An environment for running orchestration tasks. Enums: StateValueValuesEnum: The current state of the environment. Messages: LabelsValue: Optional. User-defined labels for this environment. The labels map can contain no more than 64 entries. Entries of the labels map are UTF8 strings that comply with the ...
62598f96b57a9660fecd175f
class Login(BasePage): <NEW_LINE> <INDENT> my_loc = (By.ID, 'com.royal.qh:id/personal_center_icon_iv') <NEW_LINE> login_or_regist_loc = (By.ID, 'com.royal.qh:id/fg_user_headpic_iv') <NEW_LINE> logout_loc = (By.ID, 'com.royal.qh:id/personal_exit_bt') <NEW_LINE> username_loc = (By.ID, 'com.royal.qh:id/user_phone_tv') <NE...
用户登录界面
62598f96097d151d1a2c0d06
class Polygon(object): <NEW_LINE> <INDENT> def __init__(self, vertices): <NEW_LINE> <INDENT> self.vertices = vertices <NEW_LINE> self.cluster = None <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "Polygon: vertices: {}".format(self.vertices)
Klasa reprezentująca poligon jako model danych do klasteryzacji. Posiada 2 atrybuty: - listę wierzchołków vertices, gdzie każdy z nich jest instancją klasy Point. - przypisany klaster: clusters w formie indeksu obiektu, który jest najbliższym medoidem.
62598f962ae34c7f260aadc5
class Command(BaseCommand): <NEW_LINE> <INDENT> def handle(self, *args, **options): <NEW_LINE> <INDENT> self.stdout.write('Waiting for database...') <NEW_LINE> db_conn = None <NEW_LINE> while not db_conn: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> db_conn = connections['default'] <NEW_LINE> <DEDENT> except Operationa...
Django command to pause execution until database is available
62598f96b7558d5895463313
class TaskManager(object, metaclass=Singleton): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.__topLevelTask = [] <NEW_LINE> <DEDENT> def add_task(self, task): <NEW_LINE> <INDENT> self.__topLevelTask.append(task) <NEW_LINE> <DEDENT> def get_task(self, name): <NEW_LINE> <INDENT> for task in self.__top...
manages task dependency graph
62598f9615baa72349461c66
class Rectangle(): <NEW_LINE> <INDENT> number_of_instances = 0 <NEW_LINE> print_symbol = "#" <NEW_LINE> def __init__(self, width=0, height=0): <NEW_LINE> <INDENT> self.width = width <NEW_LINE> self.height = height <NEW_LINE> self.__class__.number_of_instances += 1 <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDE...
Rectangle has a width/height, area, perimeter prints out as a block of given characters, prints when deleted,, and tracks the number of rectangle instances
62598f968e71fb1e983bb799
class TestListListTTTBoard(BaseBoardTest, unittest.TestCase): <NEW_LINE> <INDENT> board_class = ListTTTBoard
Tests ListListTTTBoard using BaseBoardTest test methods.
62598f968da39b475be02ec8
class Driver(GDALBase): <NEW_LINE> <INDENT> _alias = { 'esri': 'ESRI Shapefile', 'shp': 'ESRI Shapefile', 'shape': 'ESRI Shapefile', 'tiger': 'TIGER', 'tiger/line': 'TIGER', 'tiff': 'GTiff', 'tif': 'GTiff', 'jpeg': 'JPEG', 'jpg': 'JPEG', } <NEW_LINE> def __init__(self, dr_input): <NEW_LINE> <INDENT> if isinstance(dr_in...
Wraps a GDAL/OGR Data Source Driver. For more information, see the C API source code: http://www.gdal.org/gdal_8h.html - http://www.gdal.org/ogr__api_8h.html
62598f961f037a2d8b9e3dc8
class FilePng(TLObject): <NEW_LINE> <INDENT> __slots__: List[str] = [] <NEW_LINE> ID = 0xa4f63c0 <NEW_LINE> QUALNAME = "types.storage.FilePng" <NEW_LINE> def __init__(self) -> None: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(data: BytesIO, *args: Any) -> "FilePng": <NEW_LINE> <INDENT...
This object is a constructor of the base type :obj:`~pyrogram.raw.base.storage.FileType`. Details: - Layer: ``122`` - ID: ``0xa4f63c0`` **No parameters required.**
62598f96eab8aa0e5d30ba68
class QC_ParseError(Exception): <NEW_LINE> <INDENT> pass
TODO: fill in some detail...
62598f96bd1bec0571e14f37
class LazyText(object): <NEW_LINE> <INDENT> __slots__ = ('domain', 'localedir', 'key', 'args') <NEW_LINE> def __init__(self, domain=None, localedir=None): <NEW_LINE> <INDENT> self.domain = domain <NEW_LINE> self.localedir = localedir <NEW_LINE> self.key = (domain, localedir) <NEW_LINE> self.args = None <NEW_LINE> <DEDE...
Base class for deferred translation. This class is not used directly. See the `Gettext` and `NGettext` subclasses.
62598f96236d856c2adc92aa
class PageException(PersonException): <NEW_LINE> <INDENT> pass
Raised if page number is invalid.
62598f96baa26c4b54d4ef95
class push_promise(Structure): <NEW_LINE> <INDENT> _fields_ = [ ('hd', frame_hd), ('padlen', c_size_t), ('nva', POINTER(nv)), ('nvlen', c_size_t), ('promised_stream_id', c_int32), ('reserved', c_uint8), ]
The PUSH_PROMISE frame. It has the following members: Attributes: hd (frame_hd): The frame header. padlen (size_t): The length of the padding in this frame. This includes PAD_HIGH and PAD_LOW. nva (*nv): The name/value pairs. nvlen (size_t): The number of name/va...
62598f9667a9b606de545cba
class Filter(Partial): <NEW_LINE> <INDENT> def __init__(self, task): <NEW_LINE> <INDENT> super().__init__(task) <NEW_LINE> <DEDENT> @property <NEW_LINE> def above_observs(self): <NEW_LINE> <INDENT> low = self.filter(self.task.observs.low) <NEW_LINE> high = self.filter(self.task.observs.high) <NEW_LINE> return Box(low, ...
Base class for steps that modify individual the observations. Forward rewards and actions without changing them. If your filter changes the range of the observation space, override `above_observs` accordingly.
62598f96f7d966606f747ccb
class LendingClubSession(Base): <NEW_LINE> <INDENT> def __init__(self, api_key, investor_id, url=LC_API_URL): <NEW_LINE> <INDENT> self._url = url <NEW_LINE> self._headers = {'Authorization': api_key} <NEW_LINE> self.account = Account(self.join_url(self._url, 'accounts', True), self._headers, investor_id) <NEW_LINE> sel...
Serves as the primary wrapper for the LendingClub API. The API resources are available as public properties.
62598f96ac7a0e7691f721f1
class TestTch(unittest.TestCase): <NEW_LINE> <INDENT> def test_tch_c0_h0(self): <NEW_LINE> <INDENT> argv = ['-tch', '-c', '0', '-h', '0'] <NEW_LINE> with patch('sys.stdout', new=StringIO()) as redirect: <NEW_LINE> <INDENT> gen_graph.main(argv) <NEW_LINE> self.assertEqual(redirect.getvalue(), '1 0\n') <NEW_LINE> <DEDENT...
Unit tests for full c-ary tree with h height
62598f96009cb60464d0120a
class CardType(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=50, unique=True) <NEW_LINE> automatically_created = models.BooleanField(default=False) <NEW_LINE> def __str__(self) -> str: <NEW_LINE> <INDENT> return self.name
The type of any number of cards (e.g. Creature, Artifact, etc.)
62598f96fff4ab517ebcd4d2
class ProcessFlow(Base): <NEW_LINE> <INDENT> __tablename__ = "ProcessFlow" <NEW_LINE> id = Column(Integer, primary_key=True, autoincrement=True) <NEW_LINE> flow = Column(String(50)) <NEW_LINE> procezo = Column(String(50)) <NEW_LINE> move = Column(String(50)) <NEW_LINE> storage = Column(String(50)) <NEW_LINE> inspect = ...
过程流程 加工、搬运、存储、检验
62598f968a43f66fc4bf1e61
class Belief(object): <NEW_LINE> <INDENT> def __init__(self, size): <NEW_LINE> <INDENT> self.open = {(x, y) for x in range(size) for y in range(size)} <NEW_LINE> self.current_distribution = {pos: 1 / (size ** 2) for pos in self.open} <NEW_LINE> <DEDENT> def update(self, color, sensor_position, model): <NEW_LINE> <INDEN...
Belief class used to track the belief distribution based on the sensing evidence we have so far. Arguments: size (int): the number of rows/columns in the grid Attributes: open (set of tuples): set containing all the positions that have not been observed so far. current_distribution (dictionary): probability distri...
62598f960c0af96317c56069
class RequestMixin(object): <NEW_LINE> <INDENT> def __init__(self, request, *args): <NEW_LINE> <INDENT> self.request = request <NEW_LINE> super(RequestMixin, self).__init__(*args) <NEW_LINE> <DEDENT> def view_path(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> view = self.request.resolver_match.func <NEW_LINE> ret...
Lets us print request and view data in the exceptions messages.
62598f9607f4c71912baf131
class Reminder(A10BaseClass): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.ERROR_MSG = "" <NEW_LINE> self.required = [ "reminder_value"] <NEW_LINE> self.b_key = "reminder" <NEW_LINE> self.a10_url="/axapi/v3/license-manager/reminder/{reminder_value}" <NEW_LINE> self.DeviceProxy = "" <NEW_LI...
Class Description:: Set the reminder for grace time. Class reminder supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param reminder_value: {"description": "Configure reminder for grace time (Hour)", "format": "number", "type": "number", "maximum":...
62598f96004d5f362081ee6f
class Movie(): <NEW_LINE> <INDENT> def __init__(self, title, story, image, trailer): <NEW_LINE> <INDENT> self.title = title <NEW_LINE> self.storyline = story <NEW_LINE> self.poster_image_url = image <NEW_LINE> self.trailer_youtube_url = trailer
This class represents the blueprint of a movie
62598f964527f215b58e9bca
class MCTSPlayer(object): <NEW_LINE> <INDENT> def __init__(self, policy_value_function, c_puct=5, n_playout=2000, is_selfplay=0,debug=False): <NEW_LINE> <INDENT> self.mcts = MCTS(policy_value_function, c_puct, n_playout,debug = debug) <NEW_LINE> self._is_selfplay = is_selfplay <NEW_LINE> <DEDENT> def reset_player(self)...
AI player based on MCTS
62598f96596a897236127964
class AddChannelCommand(sublime_plugin.WindowCommand): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> self.window.show_input_panel('Channel JSON URL', '', self.on_done, self.on_change, self.on_cancel) <NEW_LINE> <DEDENT> def on_done(self, input): <NEW_LINE> <INDENT> input = input.strip() <NEW_LINE> if re.match(...
A command to add a new channel (list of repositories) to the user's machine
62598f968da39b475be02ec9
class TestComponent(TestGeneralComponents): <NEW_LINE> <INDENT> componentCls = Component <NEW_LINE> def test_initializeComponent(self): <NEW_LINE> <INDENT> expectedName = "TestComponent" <NEW_LINE> actualName = self.component.getName() <NEW_LINE> expectedMaterialName = "HT9" <NEW_LINE> actualMaterialName = self.compone...
Test the base component.
62598f96596a897236127965
class BaseProfiler(object): <NEW_LINE> <INDENT> def __init__(self, name, options): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._logger = logging.getLogger('paleo.profilers.' + self._name) <NEW_LINE> self._msg = '' <NEW_LINE> self._options = options <NEW_LINE> <DEDENT> @property <NEW_LINE> def message(self): <...
The base class of profilers.
62598f964428ac0f6e658211
class Solver(object): <NEW_LINE> <INDENT> pass
Maps the Solver table
62598f96d486a94d0ba2bcba
class MapRegionList(list): <NEW_LINE> <INDENT> __slots__ = ( '_path_or_fd', '_file_size' ) <NEW_LINE> def __new__(cls, path): <NEW_LINE> <INDENT> return super().__new__(cls) <NEW_LINE> <DEDENT> def __init__(self, path_or_fd): <NEW_LINE> <INDENT> self._path_or_fd = path_or_fd <NEW_LINE> self._file_size = None <NEW_LINE>...
List of MapRegion instances associating a path with a list of regions.
62598f96b7558d5895463315
class TemplateLoaderException(AskSdkException): <NEW_LINE> <INDENT> pass
Exception class for Template Loaders
62598f968e71fb1e983bb79b
class DongleInfo(NetAppObject): <NEW_LINE> <INDENT> _dongle_firmware_revision = None <NEW_LINE> @property <NEW_LINE> def dongle_firmware_revision(self): <NEW_LINE> <INDENT> return self._dongle_firmware_revision <NEW_LINE> <DEDENT> @dongle_firmware_revision.setter <NEW_LINE> def dongle_firmware_revision(self, val): <NEW...
dongle information
62598f9629b78933be269f50
class L7RuleHealth(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.RuleId = None <NEW_LINE> self.Enable = None <NEW_LINE> self.Interval = None <NEW_LINE> self.KickNum = None <NEW_LINE> self.AliveNum = None <NEW_LINE> self.Method = None <NEW_LINE> self.StatusCode = None <NEW_LINE> self.U...
Layer-7 rule health check parameter
62598f96a17c0f6771d5bf22
class Message(object): <NEW_LINE> <INDENT> def __init__(self, bot, location, sender, body): <NEW_LINE> <INDENT> self.logger = logging.getLogger("GorillaBot") <NEW_LINE> self.bot = bot <NEW_LINE> self.location = location <NEW_LINE> self.sender = sender <NEW_LINE> self.body = body <NEW_LINE> self.trigger = None <NEW_LINE...
Base class to represent a message received from the IRC server.
62598f969c8ee8231303ffe2
class AffectionSplitter(BaseVspSplitter): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> _simuPOP_op.AffectionSplitter_swiginit(self, _simuPOP...
Details: This class defines two VSPs according individual affection status. The first VSP consists of unaffected invidiauls and the second VSP consists of affected ones.
62598f961f037a2d8b9e3dca
class BaseSQLTagEvaluate(object): <NEW_LINE> <INDENT> def get_val(self, key, default, enforce): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def __init__(self, sql, pattern, enforce=True, default=None): <NEW_LINE> <INDENT> self.sql = sql <NEW_LINE> self.pattern = "<" + pattern + ">" <NEW_LINE> comp...
Base Class for SQL Tag Evaluation
62598f96bd1bec0571e14f38
class GaussianPulse(Pulse): <NEW_LINE> <INDENT> def __init__(self, carrier_freq, fwhm, t_peak=0, scale=1, freq_convert=1, t_limits_multiple=3): <NEW_LINE> <INDENT> sigma = GAUSSIAN_SD_FWHM * fwhm <NEW_LINE> self.two_sigma_squared = 2 * sigma ** 2 <NEW_LINE> self.t_init = t_peak - t_limits_multiple * sigma <NEW_LINE> se...
Pulse with a Gaussian envelope Parameters ---------- carrier_freq : number Pulse carrier frequency (in frequency units). fwhm : number Pulse full-width-at-half-maximum (in time units). t_peak : number, optional Central peak time for this Gaussian pulse (default 0). scale : number, optional Scale factor...
62598f961b99ca400228f3a0
class HaveIBeenPwwnedGrabber(PageGrabber): <NEW_LINE> <INDENT> def get_info(self, email, category): <NEW_LINE> <INDENT> print("[" + bc.CPRP + "?" + bc.CEND + "] " + bc.CCYN + "HaveIbeenPwned" + bc.CEND) <NEW_LINE> self.count = 0 <NEW_LINE> self.resurl = 0 <NEW_LINE> self.trymore(email) <NEW_LINE> <DEDENT> def trymore(s...
HackedEmails.com scraper for email compromise lookups
62598f9624f1403a92685725
class Properties: <NEW_LINE> <INDENT> def __init__(self, mua): <NEW_LINE> <INDENT> self.rlist = [] <NEW_LINE> self.Rlist = []
Contains the solution.
62598f968e71fb1e983bb79c
class DeleteSnapshot(command.Command): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + '.DeleteSnapshot') <NEW_LINE> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(DeleteSnapshot, self).get_parser(prog_name) <NEW_LINE> parser.add_argument( 'snapshots', metavar='<snapshot>', nargs="+", help='...
Delete snapshot(s)
62598f96d6c5a102081e1e2b
class LessonStandard(models.Model): <NEW_LINE> <INDENT> type = models.ForeignKey(LessonStandardType) <NEW_LINE> text = models.CharField(_('Text'),max_length=100) <NEW_LINE> lesson = models.ForeignKey(LessonPlan) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.text
An actual standard or group of standards of a lesson plan belonging to the same lesson standard type related to :class:`~voyages.apps.education.models.LessonStandardType` related to :class:`~voyages.apps.education.models.LessonPlan`
62598f96a79ad16197769d49
class SoftDeleteModel(Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> abstract = True <NEW_LINE> <DEDENT> objects = SoftDeleteManager() <NEW_LINE> deleted = DateTimeField(verbose_name=_('deleted'), null=True, blank=True) <NEW_LINE> def delete(self): <NEW_LINE> <INDENT> _unset_related_objects_relations(self)...
Simply inherit this class to enable soft deletion on a model.
62598f968e7ae83300ee8d84
class _MLStripper(HTMLParser): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__(convert_charrefs=True) <NEW_LINE> self.reset() <NEW_LINE> self.fed = [] <NEW_LINE> <DEDENT> def handle_data(self, d): <NEW_LINE> <INDENT> self.fed.append(d) <NEW_LINE> <DEDENT> def get_data(self): <NEW_LINE> <IND...
Code taken and adapted from https://github.com/django/django/blob/main/django/utils/html.py.
62598f968a43f66fc4bf1e63
class Port(base.APIBase): <NEW_LINE> <INDENT> _node_uuid = None <NEW_LINE> def _get_node_uuid(self): <NEW_LINE> <INDENT> return self._node_uuid <NEW_LINE> <DEDENT> def _set_node_uuid(self, value): <NEW_LINE> <INDENT> if value and self._node_uuid != value: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> node = objects.Node...
API representation of a port. This class enforces type checking and value constraints, and converts between the internal object model and the API representation of a port.
62598f967cff6e4e811b5706
class SSHKnownHostsStateTest(integration.ModuleCase): <NEW_LINE> <INDENT> def tearDown(self): <NEW_LINE> <INDENT> if os.path.isfile(KNOWN_HOSTS): <NEW_LINE> <INDENT> os.remove(KNOWN_HOSTS) <NEW_LINE> <DEDENT> super(SSHKnownHostsStateTest, self).tearDown() <NEW_LINE> <DEDENT> def test_present(self): <NEW_LINE> <INDENT> ...
Validate the ssh state
62598f96b830903b9686e2e8
class Data(object): <NEW_LINE> <INDENT> def __new__(cls, *pa, **kwa): <NEW_LINE> <INDENT> self = object.__new__(cls) <NEW_LINE> self.__dict__ = odict() <NEW_LINE> return self <NEW_LINE> <DEDENT> def __init__(self, *pa, **kwa): <NEW_LINE> <INDENT> for a in pa: <NEW_LINE> <INDENT> if isinstance(a, dict): <NEW_LINE> <INDE...
Data class
62598f9610dbd63aa1c7089e