code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class Bean(dict): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> dict_attrs = dir(dict) <NEW_LINE> data = dict([(k, getattr(self, k)) for k in dir(self) if not k.startswith('__') and k not in dict_attrs]) <NEW_LINE> for k, v in kwargs.items(): <NEW_LINE> <INDENT> if not isinstance(v, Condi...
Abstrakcyjna klasa, która stanowi rozszerzenie słownika. Klasa ma na cełu ułatwić generowanie słowników, które budują jsonowe.
6259905f7d847024c075da4e
class Action(object): <NEW_LINE> <INDENT> def __init__(self, name=None, scripts=None): <NEW_LINE> <INDENT> self.swagger_types = { 'name': 'str', 'scripts': 'list[int]' } <NEW_LINE> self.attribute_map = { 'name': 'name', 'scripts': 'scripts' } <NEW_LINE> self._name = name <NEW_LINE> self._scripts = scripts <NEW_LINE> <D...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
6259905f8e7ae83300eea708
class ChangeDimensionResolution(Resolution): <NEW_LINE> <INDENT> MARKER = "~+" <NEW_LINE> def get_adapters(self): <NEW_LINE> <INDENT> return [adapters.DimensionPriorChange( self.conflict.dimension.name, self.conflict.old_prior, self.conflict.new_prior)] <NEW_LINE> <DEDENT> @property <NEW_LINE> def prefix(self): <NEW_LI...
Representation of a changed prior resolution .. seealso :: :class:`orion.core.evc.conflicts.Resolution`
6259905f0a50d4780f7068fc
class AESModeOfOperationECB(AESBlockModeOfOperation): <NEW_LINE> <INDENT> name = "Electronic Codebook (ECB)" <NEW_LINE> def encrypt(self, plaintext): <NEW_LINE> <INDENT> if len(plaintext) != 16: <NEW_LINE> <INDENT> raise ValueError('plaintext block must be 16 bytes') <NEW_LINE> <DEDENT> plaintext = bytearray(plaintext)...
AES Electronic Codebook Mode of Operation. o Block-cipher, so data must be padded to 16 byte boundaries Security Notes: o This mode is not recommended o Any two identical blocks produce identical encrypted values, exposing data patterns. (See the image of Tux on wikipedia) Also see: o https://e...
6259905f4a966d76dd5f056e
class historischerZeitraum (pyxb.binding.basis.complexTypeDefinition): <NEW_LINE> <INDENT> _TypeDefinition = None <NEW_LINE> _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY <NEW_LINE> _Abstract = False <NEW_LINE> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'historischerZeitraum') ...
Complex type historischerZeitraum with content type ELEMENT_ONLY
6259905f15baa7234946360e
class SearchByNDCInputSet(InputSet): <NEW_LINE> <INDENT> def set_NDC(self, value): <NEW_LINE> <INDENT> super(SearchByNDCInputSet, self)._set_input('NDC', value) <NEW_LINE> <DEDENT> def set_OutputFormat(self, value): <NEW_LINE> <INDENT> super(SearchByNDCInputSet, self)._set_input('OutputFormat', value)
An InputSet with methods appropriate for specifying the inputs to the SearchByNDC Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
6259905f627d3e7fe0e08506
class ModelCollectionAPI(BaseModelAPI): <NEW_LINE> <INDENT> allowed_methods = ["GET", "POST"] <NEW_LINE> @overrides(APIView) <NEW_LINE> def check_permissions(self, request): <NEW_LINE> <INDENT> if request.method == "POST": <NEW_LINE> <INDENT> if not p.has_perms_shortcut(self.user_object, self.model, "c"): <NEW_LINE> <I...
handle request such as GET/POST /products
6259905f8e7ae83300eea709
class CourseContentVideos(models.Model): <NEW_LINE> <INDENT> course = models.ForeignKey(Courses, on_delete=models.CASCADE, related_name="course_content_videos") <NEW_LINE> course_heading = models.ForeignKey(CourseContentHeadings, on_delete=models.CASCADE, related_name="course_heading_videos") <NEW_LINE> video_name = mo...
This model is to store the course videos
6259905f56b00c62f0fb3f47
class IssueConverter(UUIDConverter): <NEW_LINE> <INDENT> def to_python(self, value): <NEW_LINE> <INDENT> return Issue.get(value)
Performs URL parameter validation against a UUID. Example: @app.route('/<projectid:uid>')
6259905f009cb60464d02bb2
class MappingTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.U = Uniform([[0, 2], [1, 3]]) <NEW_LINE> self.M = MultivariateNormal([[self.U[1], self.U[0]], [[1, 0], [0, 1]]]) <NEW_LINE> <DEDENT> def test(self): <NEW_LINE> <INDENT> self.assertTrue(self.M.get_input_connector().get_mo...
Tests whether the mapping created during initialization is done correctly.
6259905f435de62698e9d482
class MonitoredSession(_MonitoredSession): <NEW_LINE> <INDENT> def __init__(self, session_creator=None, hooks=None): <NEW_LINE> <INDENT> super(MonitoredSession, self).__init__( session_creator, hooks, should_recover=True)
Session-like object that handles initialization, recovery and hooks. Example usage: ```python saver_hook = CheckpointSaverHook(...) summary_hook = SummaryHook(...) with MonitoredSession(session_creator=ChiefSessionCreator(...), hooks=[saver_hook, summary_hook]) as sess: while not sess.should_s...
6259905f2ae34c7f260ac763
class ReaderAbstract(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.consumer = None <NEW_LINE> <DEDENT> def read(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self._connect() <NEW_LINE> for msg in self._handle_read(): <NEW_LINE> <INDENT> yield msg <NEW_LINE> <DEDENT> <DEDENT> finally: <...
Abstract consumer
6259905fb7558d5895464a6b
class Port(Net): <NEW_LINE> <INDENT> def __init__(self, attrs): <NEW_LINE> <INDENT> Net.__init__(self, attrs) <NEW_LINE> self.__dir = self.get("direction") <NEW_LINE> if self.__dir != "in" and self.__dir != "out": <NEW_LINE> <INDENT> raise Exception("Bad port direction") <NEW_LINE> <DEDENT> self.__net = None <NEW_LINE>...
Defines a Verilog Module Port
6259905f8e71fb1e983bd147
class PostDetail(RetrieveAPIView): <NEW_LINE> <INDENT> queryset = Post.objects.all() <NEW_LINE> serializer_class = PostDetailSerializer <NEW_LINE> permission_classes = [AllowAny]
This view is for API get request details of posts. Attributes: queryset: Query that holds all of the Post objects serializer_class: The PostDetailSerializer is used permission_classes: Anyone is allowed to access Post details even unathenticated users
6259905ff548e778e596cc05
class NotFoundResponse(Response): <NEW_LINE> <INDENT> status = 51 <NEW_LINE> def __init__(self, reason=None): <NEW_LINE> <INDENT> if not reason: <NEW_LINE> <INDENT> reason = "NOT FOUND" <NEW_LINE> <DEDENT> self.reason = reason <NEW_LINE> <DEDENT> def __meta__(self): <NEW_LINE> <INDENT> meta = f"{self.status} {self.reas...
Not Found Error response. Status code: 51.
6259905f097d151d1a2c26eb
class Solution: <NEW_LINE> <INDENT> def isSubsequence(self, s: str, t: str) -> bool: <NEW_LINE> <INDENT> position = [-1] <NEW_LINE> for i in s: <NEW_LINE> <INDENT> newPosition = t.find(i, position[-1] + 1) <NEW_LINE> if newPosition == -1 or newPosition >= len(t): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> els...
刷两道简单题泄愤 基本思路-寻找每个字符的位置,如果都存在,那么要求数组有序,否则false time defeat: 82% space defeat: 88% time consuming: less than 6 mins
6259905f8da39b475be04864
class RateCardOperations(object): <NEW_LINE> <INDENT> models = _models <NEW_LINE> def __init__(self, client, config, serializer, deserializer): <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._serialize = serializer <NEW_LINE> self._deserialize = deserializer <NEW_LINE> self._config = config <NEW_LINE> <DEDEN...
RateCardOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.commerce.models :param client: Client f...
6259905f4a966d76dd5f0570
class Spirit(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=200, unique=True) <NEW_LINE> slug = models.SlugField(max_length=200, unique=True) <NEW_LINE> description = models.TextField("Kommentar", blank=True) <NEW_LINE> age = models.PositiveSmallIntegerField("Alter", blank=True, null=True, help_t...
Eine ganz bestimmte Spirituose, z.B. Ardbeg Ten, Balvenie Doublewood, etc.
6259905f7cff6e4e811b70c2
class ir_model_relation(Model): <NEW_LINE> <INDENT> _name = 'ir.model.relation' <NEW_LINE> _columns = { 'name': fields.char('Relation Name', required=True, select=1, help="PostgreSQL table name implementing a many2many relation."), 'model': fields.many2one('ir.model', string='Model', required=True, select=1), 'module':...
This model tracks PostgreSQL tables used to implement gce many2many relations.
6259905fa8ecb03325872895
class JsonEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, value): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> get_state = value.__getstate__ <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE> <INDENT> return super(JsonEncoder, self).default(value) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> retur...
Customizable JSON encoder. If the object implements __getstate__, then that method is invoked, and its result is serialized instead of the object itself.
6259905f16aa5153ce401b5a
class Grid(object): <NEW_LINE> <INDENT> def __init__(self, nx=10, ny=10, xmin=0, xmax=10, ymin=0, ymax=10): <NEW_LINE> <INDENT> super(Grid, self).__init__() <NEW_LINE> self.nx = nx <NEW_LINE> self.ny = ny <NEW_LINE> self.xmin = xmin <NEW_LINE> self.xmax = xmax <NEW_LINE> self.ymin = ymin <NEW_LINE> self.ymax = ymax <NE...
docstring for Grid
6259905f56b00c62f0fb3f49
class ReplayBuffer: <NEW_LINE> <INDENT> def __init__(self, action_size, buffer_size, batch_size, seed): <NEW_LINE> <INDENT> self.action_size = action_size <NEW_LINE> self.memory = deque(maxlen=buffer_size) <NEW_LINE> self.batch_size = batch_size <NEW_LINE> self.seed = random.seed(seed) <NEW_LINE> self.experience = name...
Fixed-size buffer to store experience tuples.
6259905fbaa26c4b54d5091e
class JSONCLI(CLI): <NEW_LINE> <INDENT> name = 'json' <NEW_LINE> description = "JSON output options for 'run' command" <NEW_LINE> def configure(self, parser): <NEW_LINE> <INDENT> run_subcommand_parser = parser.subcommands.choices.get('run', None) <NEW_LINE> if run_subcommand_parser is None: <NEW_LINE> <INDENT> return <...
JSON output
6259905f99cbb53fe683255e
class Customer(object): <NEW_LINE> <INDENT> def __init__(self, first_name, last_name, email, password): <NEW_LINE> <INDENT> self.first_name = first_name <NEW_LINE> self.last_name = last_name <NEW_LINE> self.email = email <NEW_LINE> self.hash_password = hash(password) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <...
Ubermelon customer.
6259905f07f4c71912bb0abb
class ApplicationGatewayHttpListener(SubResource): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration',...
Http listener of an application gateway. :param id: Resource ID. :type id: str :param name: Name of the HTTP listener that is unique within an Application Gateway. :type name: str :param etag: A unique read-only string that changes whenever the resource is updated. :type etag: str :param type: Type of the resource. :t...
6259905f2ae34c7f260ac764
class HipChatApi(object): <NEW_LINE> <INDENT> def __init__(self, auth_token, name=None, gets=GETS, posts=POSTS, base_url=BASE_URL, api_version=API_VERSION): <NEW_LINE> <INDENT> self._auth_token = auth_token <NEW_LINE> self._name = name <NEW_LINE> self._gets = gets <NEW_LINE> self._posts = posts <NEW_LINE> self._base_ur...
Lightweight Hipchat.com REST API wrapper
6259905f4e4d562566373a85
class FileSystemAccess: <NEW_LINE> <INDENT> def exists(self, path): <NEW_LINE> <INDENT> return os.path.exists(str(path)) <NEW_LINE> <DEDENT> def isfile(self, path): <NEW_LINE> <INDENT> isFile = os.path.isfile(str(path)) <NEW_LINE> isLink = os.path.islink(str(path)) <NEW_LINE> return isFile and not isLink <NEW_LINE> <DE...
This class wraps the accesses to the file-system to allow the usage of a fake file-system for tests.
6259905f379a373c97d9a6a2
class BibCatalogSystemDummy(object): <NEW_LINE> <INDENT> def check_system(self, uid=None): <NEW_LINE> <INDENT> return "" <NEW_LINE> <DEDENT> def ticket_search(self, uid, recordid=-1, subject="", text="", creator="", owner="", date_from="", date_until="", status="", priority="", queue=""): <NEW_LINE> <INDENT> return [] ...
A dummy class for ticket support.
6259905f2ae34c7f260ac765
class MozillaURLProvider(Processor): <NEW_LINE> <INDENT> description = __doc__ <NEW_LINE> input_variables = { "product_name": { "required": True, "description": "Product to fetch URL for. One of 'firefox', 'thunderbird'.", }, "release": { "required": False, "default": 'esr-latest', "description": ( "Which release to do...
Provides URL to the latest Firefox release.
6259905f8a43f66fc4bf380c
class GuestCommentForm(forms.ModelForm): <NEW_LINE> <INDENT> captcha = CaptchaField(label='Введите текст с картинки', error_messages={'invalid': 'Неправильный текст'}) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Comment <NEW_LINE> exclude = ('is_active',) <NEW_LINE> widgets = {'bb': forms.HiddenInput}
Форма для добавления комментария гостем
6259905f3617ad0b5ee077cb
class Dataset(object): <NEW_LINE> <INDENT> def __init__(self, dim, contents=None): <NEW_LINE> <INDENT> assert type(dim) == int and dim > 0 <NEW_LINE> assert is_point_list(contents) <NEW_LINE> self._dimension = dim <NEW_LINE> if contents is None: <NEW_LINE> <INDENT> self._contents = [] <NEW_LINE> <DEDENT> else : <NEW_LI...
Instance is a dataset for k-means clustering. The data is stored as a list of list of numbers (ints or floats). Each component list is a data point. Instance Attributes: _dimension: the point dimension for this dataset [int > 0. Value never changes after initialization] _contents: the dataset co...
6259905f8e71fb1e983bd149
class User(models.Model): <NEW_LINE> <INDENT> username = models.CharField(max_length=50, primary_key=True) <NEW_LINE> first_name = models.CharField(max_length=30) <NEW_LINE> last_name = models.CharField(max_length=40) <NEW_LINE> gonzaga_email = models.EmailField(unique=True) <NEW_LINE> pref_email = models.EmailField(nu...
User schema class model. Holds information on the user and the user's contact information.
6259905f4f6381625f199fe2
class _NumericSubject(_ComparableSubject): <NEW_LINE> <INDENT> def IsZero(self): <NEW_LINE> <INDENT> if self._actual != 0: <NEW_LINE> <INDENT> self._FailWithProposition('is zero') <NEW_LINE> <DEDENT> <DEDENT> def IsNonZero(self): <NEW_LINE> <INDENT> if self._actual == 0: <NEW_LINE> <INDENT> self._FailWithProposition('i...
Subject for all types of numbers--int, long, float, and complex.
6259905fcc0a2c111447c60e
class VariableSocket(bpy.types.NodeSocket, UMOGSocket): <NEW_LINE> <INDENT> bl_idname = 'umog_VariableSocketType' <NEW_LINE> bl_label = 'Variable Socket' <NEW_LINE> dataType = "Variable" <NEW_LINE> allowedInputTypes = ["All"] <NEW_LINE> text = "" <NEW_LINE> useIsUsedProperty = True <NEW_LINE> defaultDrawType = "TEXT_PR...
Variable socket type
6259905fa8ecb03325872897
class feval(object): <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 calleval(self): <NEW_LINE> <INDENT> return _gnuradio_core_general.feval_calleval(self) <NEW_LINE> <DEDENT> def __init__(self): ...
Proxy of C++ gr_py_feval class
6259905fdd821e528d6da4c0
class Multiplier(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def calc(operand_1, operand_2): <NEW_LINE> <INDENT> return operand_1 * operand_2
Provide a class responsible for multiplying two numbers.
6259905fd486a94d0ba2d647
class CPP(LoadableMembers): <NEW_LINE> <INDENT> pass
defines classRef
6259905fa219f33f346c7e85
class Story: <NEW_LINE> <INDENT> def __init__(self, words, text): <NEW_LINE> <INDENT> self.prompts = words <NEW_LINE> self.template = text <NEW_LINE> <DEDENT> def generate(self, answers): <NEW_LINE> <INDENT> text = self.template <NEW_LINE> for (key, val) in answers.items(): <NEW_LINE> <INDENT> text = text.replace("{" +...
Madlibs story. To make a story, pass a list of prompts, and the text of the template. >>> s = Story(["noun", "verb"], ... "I love to {verb} a good {noun}.") To generate text from a story, pass in a dictionary-like thing of {prompt: answer, promp:answer): >>> ans = {"verb": "eat", "noun": "mango"} ...
6259905fcb5e8a47e493ccc5
class tck2connectome(BaseMtrixCLI): <NEW_LINE> <INDENT> class Flags(BaseMtrixCLI.Flags): <NEW_LINE> <INDENT> assignment_radial_search = "-assignment_radial_search" <NEW_LINE> assignment_end_voxels = "-assignment_end_voxels" <NEW_LINE> scale_length = "-scale_length" <NEW_LINE> stat_edge = "-stat_edge" <NEW_LINE> <DEDENT...
The tck2connectome command from the mtrix package.
6259905f435de62698e9d486
class Taggable: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.tags = None <NEW_LINE> self.tag_string = "" <NEW_LINE> self.tag_seperator = "," <NEW_LINE> self.spliter = re.compile(u'[,, ]') <NEW_LINE> <DEDENT> def get_tags(self): <NEW_LINE> <INDENT> return Tag.get_tags_for(self.key()) <NEW_LINE> <DED...
A mixin class that is used for making Google AppEnigne Model classes taggable. Usage: class Post(db.Model, taggable.Taggable): body = db.TextProperty(required = True) title = db.StringProperty() added = db.DateTimeProperty(auto_now_add=True) edited = db.DateTimeProperty() ...
6259905f4e4d562566373a87
class GAE(torch.nn.Module): <NEW_LINE> <INDENT> def __init__(self, encoder, decoder=None): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.encoder = encoder <NEW_LINE> self.decoder = InnerProductDecoder() if decoder is None else decoder <NEW_LINE> GAE.reset_parameters(self) <NEW_LINE> <DEDENT> def reset_paramete...
The Graph Auto-Encoder model from the `"Variational Graph Auto-Encoders" <https://arxiv.org/abs/1611.07308>`_ paper based on user-defined encoder and decoder models. Args: encoder (Module): The encoder module. decoder (Module, optional): The decoder module. If set to :obj:`None`, will default to the ...
6259905f9c8ee82313040cca
class FeedbackThreadModel(base_models.BaseModel): <NEW_LINE> <INDENT> exploration_id = ndb.StringProperty(required=True, indexed=True) <NEW_LINE> state_name = ndb.StringProperty(indexed=True) <NEW_LINE> original_author_id = ndb.StringProperty(indexed=True) <NEW_LINE> status = ndb.StringProperty( default=STATUS_CHOICES_...
Threads for each exploration. The id of instances of this class has the form [EXPLORATION_ID].[THREAD_ID]
6259905f498bea3a75a5913e
class TestPatchUser: <NEW_LINE> <INDENT> resource = 'users' <NEW_LINE> @pytest.allure.severity(pytest.allure.severity_level.CRITICAL) <NEW_LINE> @pytest.mark.parametrize('data', [ {'job': 'worker'} ]) <NEW_LINE> @pytest.mark.parametrize('resource_id', [1]) <NEW_LINE> def test_update(self, base_request, data, resource_i...
Testing PATCH method.
6259905f1f037a2d8b9e53ab
class Action: <NEW_LINE> <INDENT> APPLY = 1 <NEW_LINE> REVERT = 2 <NEW_LINE> CLEAR_CACHE = 3 <NEW_LINE> @staticmethod <NEW_LINE> def choices(): <NEW_LINE> <INDENT> choices = {} <NEW_LINE> for choice in Action.__dict__: <NEW_LINE> <INDENT> if hasattr(Action, choice): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> value = ...
Different possible actions
6259905f1b99ca4002290076
class ExplorationMigrationJobManager(jobs.BaseMapReduceOneOffJobManager): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def entity_classes_to_map_over(cls): <NEW_LINE> <INDENT> return [exp_models.ExplorationModel] <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def map(item): <NEW_LINE> <INDENT> if item.deleted: <NEW_LINE> ...
A reusable one-time job that may be used to migrate exploration schema versions. This job will load all existing explorations from the data store and immediately store them back into the data store. The loading process of an exploration in exp_services automatically performs schema updating. This job persists that conv...
6259905fa79ad1619776b5fd
class DiceCoefficient: <NEW_LINE> <INDENT> def __init__(self, epsilon=1e-6, **kwargs): <NEW_LINE> <INDENT> self.epsilon = epsilon <NEW_LINE> <DEDENT> def __call__(self, input, target): <NEW_LINE> <INDENT> if isinstance(input, torch.Tensor): <NEW_LINE> <INDENT> input = (input > 0.0).long() <NEW_LINE> target = (target > ...
Computes Dice Coefficient. Generalized to multiple channels by computing per-channel Dice Score (as described in https://arxiv.org/pdf/1707.03237.pdf) and theTn simply taking the average. Input is expected to be probabilities instead of logits. This metric is mostly useful when channels contain the same semantic class ...
6259905ff7d966606f7493f9
class NoiseOnlyPosterior(Posterior): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(NoiseOnlyPosterior, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> @property <NEW_LINE> def header(self): <NEW_LINE> <INDENT> header = [] <NEW_LINE> for d in self.detectors: <NEW_LINE> <INDENT> f...
Represents the posterior for a noise-only model.
6259905f462c4b4f79dbd086
class UserDefinedField(atom_core.XmlElement): <NEW_LINE> <INDENT> _qname = CONTACTS_TEMPLATE % 'userDefinedField' <NEW_LINE> key = 'key' <NEW_LINE> value = 'value'
Represents an arbitrary key-value pair attached to the contact.
6259905f38b623060ffaa390
class ElementError(SpecterError): <NEW_LINE> <INDENT> pass
Error raised when Specter is unable to find an element.
6259905fd53ae8145f919ae3
class Player(): <NEW_LINE> <INDENT> def __init__(self, name:str, initial_hand:list): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.hand = initial_hand <NEW_LINE> <DEDENT> def draw(self, deck:list): <NEW_LINE> <INDENT> self.hand.append(deck.pop())
Player object containing name and hand (list of cards) Draw function adds another card to the hand
6259905fd268445f2663a69d
class Expander(object): <NEW_LINE> <INDENT> def __init__(self, searcher, fieldname, model = Bo1Model): <NEW_LINE> <INDENT> self.fieldname = fieldname <NEW_LINE> if callable(model): <NEW_LINE> <INDENT> model = model(searcher, fieldname) <NEW_LINE> <DEDENT> self.model = model <NEW_LINE> term_reader = searcher.term_reader...
Uses an ExpansionModel to expand the set of query terms based on the top N result documents.
6259905ff548e778e596cc0a
class Continuous_Encoder(nn.Module): <NEW_LINE> <INDENT> def __init__(self, cont_dim, out_dim): <NEW_LINE> <INDENT> self.name = 'Continuous_Encoder' <NEW_LINE> super(Continuous_Encoder, self).__init__() <NEW_LINE> self.cont_dim = cont_dim <NEW_LINE> self.h_dim = 10 <NEW_LINE> self.out_dim = out_dim <NEW_LINE> self.h = ...
Model for encoding continuous features Args: cont_dim (int): dimension of input continuous features out_dim (int): outpit dimension of the encoded features
6259905f442bda511e95d89a
class Department(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=200) <NEW_LINE> address = models.CharField(max_length=400) <NEW_LINE> website = models.URLField(max_length=200, blank=True) <NEW_LINE> def get_absolute_url(self): <NEW_LINE> <INDENT> return reverse('hr:department-detail', kwargs={'pk...
Отдел или подразделение предприятия
6259905f99cbb53fe6832563
class GalleryImageList(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'value': {'required': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[GalleryImage]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: List["GalleryImage"], next...
The List Gallery Images operation response. All required parameters must be populated in order to send to Azure. :ivar value: Required. A list of Shared Image Gallery images. :vartype value: list[~azure.mgmt.compute.v2020_09_30.models.GalleryImage] :ivar next_link: The uri to fetch the next page of Image Definitions ...
6259905f3539df3088ecd91e
class TreatmentEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, AttributeTreatment): <NEW_LINE> <INDENT> return AttributeTreatmentEncoder().default(obj) <NEW_LINE> <DEDENT> if isinstance(obj, EntityTreatment): <NEW_LINE> <INDENT> return EntityTreatmentEncoder...
A JSONEncoder to serialize an instance of {Treatment}.
6259905fcb5e8a47e493ccc6
class BaseRegistry(object): <NEW_LINE> <INDENT> def __init__(self, storage={}): <NEW_LINE> <INDENT> self._collectors = {} <NEW_LINE> self._storage = storage <NEW_LINE> <DEDENT> @property <NEW_LINE> def storage(self): <NEW_LINE> <INDENT> return self._storage <NEW_LINE> <DEDENT> def register(self, collector): <NEW_LINE> ...
Link with metrics collectors
6259905f29b78933be26ac05
class FileSystemList(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'filesystems': {'key': 'filesystems', 'type': '[FileSystem]'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(FileSystemList, self).__init__(**kwargs) <NEW_LINE> self.filesystems = kwargs.get('filesystems', ...
FileSystemList. :ivar filesystems: :vartype filesystems: list[~azure.storage.filedatalake.models.FileSystem]
6259905fadb09d7d5dc0bbec
class TestXyzToPlottingColourspace(unittest.TestCase): <NEW_LINE> <INDENT> def test_XYZ_to_plotting_colourspace(self): <NEW_LINE> <INDENT> XYZ = np.random.random(3) <NEW_LINE> np.testing.assert_almost_equal( XYZ_to_sRGB(XYZ), XYZ_to_plotting_colourspace(XYZ), decimal=7 )
Define :func:`colour.plotting.common.XYZ_to_plotting_colourspace` definition unit tests methods.
6259905f3c8af77a43b68a82
class Bassoon(Instrument): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> def __init__( self, instrument_name='bassoon', short_instrument_name='bsn.', instrument_name_markup=None, short_instrument_name_markup=None, allowable_clefs=('bass', 'tenor'), pitch_range='[Bb1, Eb5]', sounding_pitch_of_written_middle_c=None, ): <...
A bassoon. :: >>> staff = Staff("c'4 d'4 e'4 fs'4") >>> clef = Clef(name='bass') >>> attach(clef, staff) >>> bassoon = instrumenttools.Bassoon() >>> attach(bassoon, staff) >>> show(staff) # doctest: +SKIP .. doctest:: >>> print(format(staff)) \new Staff { \clef "bass" ...
6259905f3cc13d1c6d466dc3
class TestLbSourceIpPersistenceProfile(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testLbSourceIpPersistenceProfile(self): <NEW_LINE> <INDENT> pass
LbSourceIpPersistenceProfile unit test stubs
6259905f7d847024c075da56
class EventHandlers: <NEW_LINE> <INDENT> def process_review_event(self, request: ReviewEvent) -> EventResponse: <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def process_push_event(self, request: PushEvent) -> EventResponse: <NEW_LINE> <INDENT> raise NotImplementedError
Interface of the classes which process Lookout gRPC events.
6259905f4428ac0f6e659bbb
class ScheduleTicketSchema(Schema): <NEW_LINE> <INDENT> schema = [{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "schedule_tickets", "description": "Запись на прием", "type": "object", "properties": { "schedule_id": { "description": "id рабочего промежутка", "type": "string" }, "schedule_time_begin": ...
Схемы для проверки валидности данных организаций и лпу
6259905f1f037a2d8b9e53ac
class ProcessDataThread(Thread): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Thread.__init__(self) <NEW_LINE> self.name = "Binary Codec Process Data Thread" <NEW_LINE> self.alive = True <NEW_LINE> self.MAX_TIMEOUT = 5 <NEW_LINE> self.timeout = 0 <NEW_LINE> self.DELIMITER = b'\x80' * 16 <NEW_LINE> <DEDEN...
Process the incoming data. This will take the shared buffer. The AddDataThread will wakeup this thread with "condition". It will then process the incoming data in the buffer and look for ensemble data. When ensemble data is decoded it will passed to the subscribers of the event "ensemble_event".
6259905fa79ad1619776b5fe
class NetworkRuleCondition(FirewallPolicyRuleCondition): <NEW_LINE> <INDENT> _validation = { 'rule_condition_type': {'required': True}, } <NEW_LINE> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'rule_condition_type': {'key': 'ruleConditionType', 'type'...
Rule condition of type network. All required parameters must be populated in order to send to Azure. :param name: Name of the rule condition. :type name: str :param description: Description of the rule condition. :type description: str :param rule_condition_type: Required. Rule Condition Type.Constant filled by serve...
6259905f32920d7e50bc76c8
class PinPWMUnsupported(PinPWMError, AttributeError): <NEW_LINE> <INDENT> pass
Error raised when attempting to activate PWM on unsupported pins
6259905f8da39b475be0486a
class Super4DigitArbitraryFarhiModel1(Super4DigitShareFrontQFCModel1): <NEW_LINE> <INDENT> class QLayer(Super4DigitShareFrontQFCModel1.QLayer): <NEW_LINE> <INDENT> def __init__(self, arch: dict = None): <NEW_LINE> <INDENT> super().__init__(arch=arch) <NEW_LINE> <DEDENT> def build_super_layers(self): <NEW_LINE> <INDENT>...
zx and xx blocks arbitrary n gates, from Farhi paper https://arxiv.org/pdf/1802.06002.pdf
6259905f0a50d4780f706900
@base.ReleaseTracks(base.ReleaseTrack.BETA) <NEW_LINE> class CreateBeta(Create): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> Create.disks_arg = disks_flags.MakeDiskArg(plural=True) <NEW_LINE> _CommonArgs(parser, disks_flags.SOURCE_SNAPSHOT_ARG) <NEW_LINE> labels_util.AddCreateLabe...
Create Google Compute Engine persistent disks.
6259905f462c4b4f79dbd088
class PytPingPortConfigError(PytPingError): <NEW_LINE> <INDENT> def __init__(self, port): <NEW_LINE> <INDENT> super().__init__("Port \"{}\" not valid!".format(port))
Error: the port is not validated.
6259905f0fa83653e46f656a
class ScalarResult: <NEW_LINE> <INDENT> def __init__(self, result, analysis_case): <NEW_LINE> <INDENT> self.result = result <NEW_LINE> self.analysis_case = analysis_case
Class for storing a scalar result for a specific analysis case. :cvar float result: Scalar result :cvar analysis_case: Analysis case relating to the result :vartype analysis_case: :class:`~feastruct.fea.cases.AnalysisCase`
6259905f56b00c62f0fb3f4f
class AuthenticationBackend(BasePlugin): <NEW_LINE> <INDENT> def authenticate(self, username, password): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def member_of(self): <NEW_LINE> <INDENT> user = User.from_session() <NEW_LINE> if user: <NEW_LINE> <INDENT> return user.groups <NEW_LINE> <DEDENT> ...
All authentication backends should subclass this. only one important method to override: authenticate(username, password) -> returns either a user details dictionary containing a 'username' key and possibly other info or - return None in case authentication failed.
6259905f8e71fb1e983bd14e
class SMEAdminGroup(ModelAdminGroup): <NEW_LINE> <INDENT> menu_label = "SMEAdmin" <NEW_LINE> items = (CarnetDAdresseAdmin,EnveloppeView, LettreView)
SME Admin menu
6259905fa8370b77170f1a51
class PermissionDeniedError(BookIOErrors): <NEW_LINE> <INDENT> pass
операция не позволяется
6259905f7b25080760ed8822
class bit_field_wrapper_t( code_creator.code_creator_t , declaration_based.declaration_based_t ): <NEW_LINE> <INDENT> indent = code_creator.code_creator_t.indent <NEW_LINE> GET_TEMPLATE =os.linesep.join([ 'static %(type)s get_%(name)s(%(cls_type)s inst ){' , indent( 'return inst.%(name)s;' ) , '}' , '' ]) <NEW_LINE> SE...
creates get/set accessors for bit fields
6259905f1f5feb6acb16426e
class Button(Drawable): <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> def __init__(self, position, width, height, text): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> super().__init__(position, width, height, True, "Button.png") <NEW_LINE> self.text = text <NEW_LINE> font = pygame.font.Font("freesansb...
*Creates a button in at a given position with a given size *Button has the text passed in written on it (centered)
6259905f4428ac0f6e659bbd
class Experience(database.Model): <NEW_LINE> <INDENT> def __init__(self, id_, name_): <NEW_LINE> <INDENT> self.id = id_ <NEW_LINE> self.name = name_ <NEW_LINE> <DEDENT> __tablename__ = 'experiences' <NEW_LINE> id = database.Column(database.Integer, primary_key=True) <NEW_LINE> name = database.Column(database.String(64)...
Values of this table: Könnyű, Közepes, Közepesen Nehéz, Nehéz
6259905f23e79379d538db80
class SaltApi: <NEW_LINE> <INDENT> def __init__(self, url): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> self.username = "saltapi" <NEW_LINE> self.password = "Xdhg002539" <NEW_LINE> self.headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/5...
定义salt api接口的类 初始化获得token
6259905f91af0d3eaad3b4ac
class Listener(Thread): <NEW_LINE> <INDENT> instance = None <NEW_LINE> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> if cls.instance is None: <NEW_LINE> <INDENT> cls.instance = object.__new__(cls, *args) <NEW_LINE> Thread.__init__(cls.instance) <NEW_LINE> cls.instance.running = True <NEW_LINE> <DEDENT> return ...
Asynchronous listener. Sends filtered messages to parent service.
6259905f24f1403a92686410
class Post(db.Model): <NEW_LINE> <INDENT> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> title = db.Column(db.Text, nullable=False) <NEW_LINE> content = db.Column(db.Text) <NEW_LINE> date = db.Column(db.DateTime, default=datetime.utcnow) <NEW_LINE> @staticmethod <NEW_LINE> def page(number=10, offset=0): <NEW_L...
Our Post Model
6259905f0fa83653e46f656c
class BaseElement(object): <NEW_LINE> <INDENT> def __set__(self, obj, value): <NEW_LINE> <INDENT> driver = obj.driver <NEW_LINE> if self.iframe_locator: <NEW_LINE> <INDENT> iframe=WebDriverWait(driver, 100).until(EC.presence_of_element_located(self.iframe_locator)) <NEW_LINE> driver.switch_to.frame(iframe) <NEW_LINE> d...
Base page class that is initialized on every page object class.
6259905ff548e778e596cc0e
class Recorder(object): <NEW_LINE> <INDENT> def __init__(self, channels=1, rate=44100, frames_per_buffer=1024): <NEW_LINE> <INDENT> self.channels = channels <NEW_LINE> self.rate = rate <NEW_LINE> self.frames_per_buffer = frames_per_buffer <NEW_LINE> <DEDENT> def open(self, fname, input_device_index=0, mode='wb'): <NEW_...
A recorder class for recording audio to a WAV file. Records in mono by default.
6259905fd486a94d0ba2d64d
class CreateNotificationConfigurationRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.AutoScalingGroupId = None <NEW_LINE> self.NotificationTypes = None <NEW_LINE> self.NotificationUserGroupIds = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Au...
CreateNotificationConfiguration请求参数结构体
6259905f627d3e7fe0e08510
class Entry: <NEW_LINE> <INDENT> def __init__( self, start_dt: str = None, end_dt: str = None, title: str = None, body: str = None ): <NEW_LINE> <INDENT> now = pendulum.now() <NEW_LINE> self.start_dt = parse_dt_local_tz(start_dt) if start_dt else now <NEW_LINE> self.end_dt = parse_dt_local_tz(end_dt) if end_dt else now...
An entry on the timeline; where all content is stored and linked.
6259905f7b25080760ed8823
class DayRecord(models.Model): <NEW_LINE> <INDENT> date_reference = models.DateField() <NEW_LINE> day_in_advance = models.IntegerField() <NEW_LINE> source = models.CharField(max_length=6) <NEW_LINE> max_temp = models.IntegerField() <NEW_LINE> min_temp = models.IntegerField() <NEW_LINE> def __str__(self): <NEW_LINE> <IN...
Record (forecasted) for an individual day. date_reference is the date a temperature forecast applies to. day_in_advance is the number of days in advance the forecast was made (0-7) source identifies the forecaster; it is a member of SOURCES
6259905f3539df3088ecd922
class DescribeUsgRuleRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.SgIds = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.SgIds = params.get("SgIds")
DescribeUsgRule请求参数结构体
6259905f29b78933be26ac07
class Field(object): <NEW_LINE> <INDENT> def __init__(self, name=None, key=None, description=None, default=None, type=None, pk=False): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.key = key <NEW_LINE> self.description = description <NEW_LINE> self.value = default <NEW_LINE> self.temp = None <NEW_LINE> self.type...
The class defining each field in the model Important instance variables: - name - The name of the field - key - The key used for the field in the original data - description - the description for the field - temp - used for holding temp variables in the cleanup process - type - type of the field, e.g. string, list, e...
6259905f2ae34c7f260ac76d
class calculate_result(object): <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.I32, 'success', None, None, ), (1, TType.STRUCT, 'ouch', (InvalidOperation, InvalidOperation.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, success=None, ouch=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> self.ouch = o...
Attributes: - success - ouch
6259905f23e79379d538db82
class UserLoginSerializer(ModelSerializer): <NEW_LINE> <INDENT> token = CharField(allow_blank=True, read_only=True) <NEW_LINE> username = CharField() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = User <NEW_LINE> fields = [ "username", "password", "token", ] <NEW_LINE> extra_kwargs = {"password": {"write_only": Tru...
Serializer for user login
6259905ff548e778e596cc0f
class DWord(Encoder): <NEW_LINE> <INDENT> def bytes_length(self, values): <NEW_LINE> <INDENT> return len(values) * 4
constant word size = 32 bits
6259905f32920d7e50bc76cd
class BlogAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> search_fields = ('title','entry',) <NEW_LINE> list_display = ('id','title','published') <NEW_LINE> list_filter = ('published',)
Blog Admin
6259905fd6c5a102081e37aa
class FWWorker(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, observers): <NEW_LINE> <INDENT> super(FWWorker, self).__init__() <NEW_LINE> self.l = logging.getLogger(__name__+"."+self.__class__.__name__) <NEW_LINE> self._stopit = threading.Event() <NEW_LINE> self.l.info("Initialized FileWatch worker") <NEW_LI...
Do the work within a thread to not block anything else.
6259905f38b623060ffaa393
class NatronBreakdownSceneResource(str): <NEW_LINE> <INDENT> def __new__(cls, node, parameter): <NEW_LINE> <INDENT> text = "%s" % node <NEW_LINE> obj = str.__new__(cls, text) <NEW_LINE> obj.parameter = parameter <NEW_LINE> return obj
Helper Class to store metadata per update item. tk-multi-breakdown requires item['node'] to be a str. This is what is displayed in the list of recognized items to update. We want to add metadata to each item as what we want to pass to update is the parameter and not the node itself. python friendly object + __repr__ ...
6259905f2c8b7c6e89bd4e76
class ArgusAuthException(ArgusException): <NEW_LINE> <INDENT> pass
An exception type that is thrown for Argus authentication errors.
6259905fa8ecb0332587289f
class OneRoomMaze(Maze): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.currentCell = Cell() <NEW_LINE> self.contents = self.currentCell
a one room maze contains only one cell
6259905fd486a94d0ba2d64f
class GuruMeditation(object): <NEW_LINE> <INDENT> timestamp_fmt = "%Y%m%d%H%M%S" <NEW_LINE> def __init__(self, version_obj, sig_handler_tb=None, *args, **kwargs): <NEW_LINE> <INDENT> self.version_obj = version_obj <NEW_LINE> self.traceback = sig_handler_tb <NEW_LINE> super(GuruMeditation, self).__init__(*args, **kwargs...
A Guru Meditation Report Mixin/Base Class This class is a base class for Guru Meditation Reports. It provides facilities for registering sections and setting up functionality to auto-run the report on a certain signal. This class should always be used in conjunction with a Report class via multiple inheritance. It s...
6259905f8e7ae83300eea715
class GoogleSpider(RedisSpider): <NEW_LINE> <INDENT> name = 'google-spider' <NEW_LINE> allowed_domains = ['google.com.ua'] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(GoogleSpider, self).__init__() <NEW_LINE> <DEDENT> def parse(self, response): <NEW_LINE> <INDENT> quantity = response.meta.get('quantity', 0...
Spider for scraping the page in google.com. It based at RedisSpider. Comes the keyword and formed a link. It perform request end return response. Later it parse the page. Later it send message at chanel in redis server. Attributes: name: a name of the spider. allowed_domains: allowed domains. quantity: im...
6259905f627d3e7fe0e08512
class Refs(dict): <NEW_LINE> <INDENT> def __setitem__(self, i, y): <NEW_LINE> <INDENT> if i in self and self[i] is not y: <NEW_LINE> <INDENT> raise ValueError('You must not set the same id twice!!') <NEW_LINE> <DEDENT> return dict.__setitem__(self, i, y) <NEW_LINE> <DEDENT> def gen_default_name(self, obj): <NEW_LINE> <...
Class to store and handle references during saving/loading. Provides some convenience functions
6259905fbaa26c4b54d50928
class DetectGameMaster(Engine): <NEW_LINE> <INDENT> def __init__(self, client): <NEW_LINE> <INDENT> Engine.__init__(self, client) <NEW_LINE> for item in client.world.iter_items(): <NEW_LINE> <INDENT> self._check_item(item) <NEW_LINE> <DEDENT> <DEDENT> def _panic(self, entity): <NEW_LINE> <INDENT> print("\x1b[41m ____ ...
Detect the presence of a GameMaster, and stop the macro immediately.
6259905f99cbb53fe6832569
class LinkedList: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.__root = None <NEW_LINE> <DEDENT> def get_root(self): <NEW_LINE> <INDENT> return self.__root <NEW_LINE> <DEDENT> def add_to_list(self, node): <NEW_LINE> <INDENT> if self.__root: <NEW_LINE> <INDENT> node.set_next(self.__root) <NEW_LINE> <...
This class is the one you should be modifying! Don't change the name of the class or any of the methods. Implement those methods that current raise a NotImplementedError
6259905f07f4c71912bb0ac4
class ModelerTests(unittest.TestCase): <NEW_LINE> <INDENT> maxDiff = None
Dynamic modelers test case. Test methods are automatically added by the add_checks function below. See the module's docstring for details.
6259905f67a9b606de5475e5
class NonClusterableLayer(layers.Layer): <NEW_LINE> <INDENT> def __init__(self, units=10): <NEW_LINE> <INDENT> super(NonClusterableLayer, self).__init__() <NEW_LINE> self.add_weight(shape=(1, units), initializer='uniform', name='kernel') <NEW_LINE> <DEDENT> def call(self, inputs): <NEW_LINE> <INDENT> return tf.matmul(i...
"A custom layer with weights that is not clusterable.
6259905fe5267d203ee6cf03