code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Docente(models.Model): <NEW_LINE> <INDENT> user = models.OneToOneField(User, on_delete=models.PROTECT, null=True, blank=True) <NEW_LINE> cedula = models.BigIntegerField(unique=True) <NEW_LINE> titulo = models.CharField(max_length=10, null=True, blank=True) <NEW_LINE> titulo_grado = models.CharField(max_length=10,... | registrocatedra_set: Registros de Catedra de este docente | 62598f7173bcbd0ca4bc9a90 |
class ZOrderNNPSTestCase(DictBoxSortNNPSTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> NNPSTestCase.setUp(self) <NEW_LINE> self.nps = nnps.ZOrderNNPS( dim=3, particles=self.particles, radius_scale=2.0 ) | Test for Z-Order SFC based algorithm | 62598f71d4950a0f3b110a59 |
class TestHostWithService(XMLRPC_test): <NEW_LINE> <INDENT> def test_host_with_service(self, host): <NEW_LINE> <INDENT> host.ensure_exists() <NEW_LINE> service1 = u'dns/%s@%s' % (host.fqdn, host.api.env.realm) <NEW_LINE> service1dn = DN(('krbprincipalname', service1.lower()), ('cn','services'), ('cn','accounts'), host.... | Test deletion using a non-fully-qualified hostname.
Services associated with this host should also be removed. | 62598f7176d4e153a661c457 |
class BaseExpenseLine(DBBASE, PersistentACLMixin): <NEW_LINE> <INDENT> __tablename__ = 'baseexpense_line' <NEW_LINE> __table_args__ = default_table_args <NEW_LINE> __mapper_args__ = dict(polymorphic_on="type", polymorphic_identity="line", with_polymorphic='*') <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE... | Base models for expense lines
:param type: Column for polymorphic discrimination
:param date: Date of the expense
:param description: description of the expense
:param code: analytic code related to this expense
:param valid: validation status of the expense
:param sheet_id: id of the expense sheet this expense is rela... | 62598f71d18da76e235b6d59 |
class ItemRedirect(db.Model, DeleteMixin): <NEW_LINE> <INDENT> __tablename__ = 'item_redirect' <NEW_LINE> __table_args__ = {'schema': 'geordi'} <NEW_LINE> old_id = db.Column('old', db.Integer, primary_key=True) <NEW_LINE> new_id = db.Column('new', db.Integer, db.ForeignKey('geordi.item.id', ondelete='CASCADE')) | Model for the 'item_redirect' table, storing the old IDs of items that have been merged. | 62598f71fb3f5b602db47dd3 |
class Routing_L3UcastARTUpdateRoutesIDL_result(object): <NEW_LINE> <INDENT> thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT, (L3UcastRouteAppRouteTableOpIDL, L3UcastRouteAppRouteTableOpIDL.thrift_spec)), None), (1, TType.STRUCT, 'e', (Shared.ttypes.ExceptionIDL, Shared.ttypes.ExceptionIDL.thrift_spec), None)) <... | Attributes:
- success
- e | 62598f71ac7a0e7691f71d5c |
class ApiUserList(_ApiUserList): <NEW_LINE> <INDENT> pass | Handle the the api with endpoint: /users | 62598f714d74a7450cd58afc |
class Apache(Plugin): <NEW_LINE> <INDENT> plugin_name = "apache" <NEW_LINE> profiles = ('webserver', 'openshift') <NEW_LINE> option_list = [ ("log", "gathers all apache logs", "slow", False) ] | Apache http daemon
| 62598f7173bcbd0ca4bc9a92 |
class XLSXWriter(IWriter): <NEW_LINE> <INDENT> def __init__( self, file_name, file_type, constant_memory=True, default_date_format="dd/mm/yy", **keywords ): <NEW_LINE> <INDENT> if "single_sheet_in_book" in keywords: <NEW_LINE> <INDENT> keywords.pop("single_sheet_in_book") <NEW_LINE> <DEDENT> self.xlsx_book = Book() <NE... | xlsx writer | 62598f7115fb5d323ce7e56d |
class PivotSuggestions(Model): <NEW_LINE> <INDENT> _validation = { 'pivot': {'required': True}, 'suggestions': {'required': True}, } <NEW_LINE> _attribute_map = { 'pivot': {'key': 'pivot', 'type': 'str'}, 'suggestions': {'key': 'suggestions', 'type': '[Query]'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <IN... | Defines the pivot segment.
All required parameters must be populated in order to send to Azure.
:param pivot: Required. The segment from the original query to pivot on.
:type pivot: str
:param suggestions: Required. A list of suggested queries for the pivot.
:type suggestions:
list[~azure.cognitiveservices.search.im... | 62598f71b57a9660fecd12ce |
class TermsHandler(LanguageHandler): <NEW_LINE> <INDENT> def get(self, database, prefix, registry, dictionary, language): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> entity_dictionary = self.entity(database, prefix, registry, dictionary) <NEW_LINE> if entity_dictionary is None: <NEW_LINE> <INDENT> return self.send_err... | Handler for listing terms for a language of an entity | 62598f7107d97122c42164e7 |
class HistogramDict(abc.Mapping): <NEW_LINE> <INDENT> def __init__(self, image): <NEW_LINE> <INDENT> self.size = ctypes.c_size_t() <NEW_LINE> self.pixels = library.MagickGetImageHistogram( image.wand, ctypes.byref(self.size) ) <NEW_LINE> self.counts = None <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> if s... | Specialized mapping object to represent color histogram.
Keys are colors, and values are the number of pixels.
:param image: the image to get its histogram
:type image: :class:`BaseImage`
.. versionadded:: 0.3.0 | 62598f7176d4e153a661c458 |
class EnvironmentGroupsForm(forms.ModelForm): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(EnvironmentGroupsForm, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> name = forms.CharField( widget=forms.TextInput(attrs={'class': 'form-control'}), label=u'Name', ) <NEW_LINE> environ... | **Form for editing Environment Groups.** | 62598f71d10714528d69d714 |
class NegativeSwitchRectifiedLinear(NegativeRectifiedLinear): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(NegativeSwitchRectifiedLinear, self).__init__(**kwargs) <NEW_LINE> <DEDENT> @wraps(mlp.Layer.fprop) <NEW_LINE> def fprop(self, state_below): <NEW_LINE> <INDENT> state_below = T.dot(s... | Rectified linear MLP layer which accepts negative rather than
positive values on half of its neurons.
Concretely, the activation function here is
\[ f_1(x) = ext{max}(0, x) \]
for one half of the nodes (a normal ReLU) and
\[ f_2(x) = ext{min}(0, x) \]
for the other half of the nodes.
Note the diff... | 62598f71a4f1c619b294de32 |
class IDC(models.Model): <NEW_LINE> <INDENT> name = models.CharField('机房名称', unique=True, max_length=64) <NEW_LINE> memo = models.CharField('备注', max_length=128, null=True, blank=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = '... | 机房 | 62598f7121bff66bcd7224a7 |
class VForms(DB.Model): <NEW_LINE> <INDENT> __tablename__ = 'v_forms' <NEW_LINE> __table_args__ = {'schema': FORMIT} <NEW_LINE> owner_group_id = DB.Column(DB.Integer, primary_key=True) <NEW_LINE> owner_group_name = DB.Column(DB.String) <NEW_LINE> form_id = DB.Column(DB.Integer) <NEW_LINE> parent_form_id = DB.Column(DB.... | additional form information | 62598f71711fe17d825dff2c |
class TaskStatus(HasProperties): <NEW_LINE> <INDENT> progress = Float( 'Task progress to completion', required=False, min=0, max=1, ) <NEW_LINE> message = String( 'Task progress message', required=False, ) | HasProperties object to indicate present status of the task | 62598f711f5feb6acb16247f |
class OneDrive: <NEW_LINE> <INDENT> CLIENT_ID = "3bb59601-310c-4af1-bf6d-35340cd340c9" <NEW_LINE> CLIENT_SECRET = "ZKBsnoZZkL8XxcqSdVodAEZ" <NEW_LINE> REDIRECT_URI = "https://github.com/varunagrawal/OneGroup" <NEW_LINE> API_URL = "https://api.onedrive.com/v1.0" <NEW_LINE> AUTH_SERVER_URL = "https://login.live.com/oauth... | References:
https://graph.microsoft.io/en-us/docs/authorization/app_authorization
https://dev.onedrive.com/readme.htm | 62598f718c3a8732951f5d97 |
class ActionHandler(idaapi.action_handler_t): <NEW_LINE> <INDENT> NAME = None <NEW_LINE> TEXT = "Default. Replace me!" <NEW_LINE> HOTKEY = "" <NEW_LINE> TOOLTIP = "" <NEW_LINE> ICON = -1 <NEW_LINE> @classmethod <NEW_LINE> def get_name(cls): <NEW_LINE> <INDENT> if cls.NAME is not None: <NEW_LINE> <INDENT> return cls.NAM... | A wrapper around `idaapi.action_handler_t`.
The class simplifies the creation of UI actions in IDA >= 6.7.
To create an action, simply create subclass and override the relevant fields
and register it::
class MyAction(ActionHandler):
TEXT = "My Action"
HOTKEY = "Alt+Z"
def _activate(self,... | 62598f711f037a2d8b9e3936 |
class Annotator(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.lang = kwargs.get('lang', 'deu') <NEW_LINE> self.debug = kwargs.get('debug', False) <NEW_LINE> self.semdict = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def type(self) -> Type['Annotation']: <NEW_LINE> <INDENT> raise ... | A common base class for all annotators, Works a la abstract class:
it should not be instantiated directly. | 62598f71ac7a0e7691f71d5e |
class Command: <NEW_LINE> <INDENT> def __init__(self, cooker): <NEW_LINE> <INDENT> self.cooker = cooker <NEW_LINE> self.cmds_sync = CommandsSync() <NEW_LINE> self.cmds_async = CommandsAsync() <NEW_LINE> self.currentAsyncCommand = None <NEW_LINE> <DEDENT> def runCommand(self, commandline, ro_only = False): <NEW_LINE> <I... | A queue of asynchronous commands for bitbake | 62598f714e696a045264da21 |
class RULE(SCPINode): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> _cmd = "RULE" <NEW_LINE> args = [] <NEW_LINE> class CATalog(SCPINode, SCPIQuery): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> _cmd = "CATalog" <NEW_LINE> args = [] <NEW_LINE> <DEDENT> CATalog = CATalog() | SYSTem:TIME:DSTime:RULE
Arguments: | 62598f714d74a7450cd58afd |
class GetExportDataIdRequest(JDCloudRequest): <NEW_LINE> <INDENT> def __init__(self, parameters, header=None, version="v1"): <NEW_LINE> <INDENT> super(GetExportDataIdRequest, self).__init__( '/regions/{regionId}/console:getExportDataId', 'POST', header, version) <NEW_LINE> self.parameters = parameters | 获取数据导出Id | 62598f71d10714528d69d715 |
class Point(tuple): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> _fields = ("x", "y") <NEW_LINE> def __new__(cls, x, y): <NEW_LINE> <INDENT> return tuple.__new__(cls, (x, y)) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _make(cls, iterable, new=tuple.__new__, len=len): <NEW_LINE> <INDENT> result = new(cls, iterable... | Class representing a point on the 2D plane. | 62598f7116aa5153ce3ffd45 |
class FacilityProviderDAO(ProviderDAO): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def getProviders(self): <NEW_LINE> <INDENT> providers=[] <NEW_LINE> i=0 <NEW_LINE> with open(appProp.providerfilename, 'rU') as csvfile: <NEW_LINE> <INDENT> csvread = csv.reader(csvfile, delimite... | classdocs | 62598f71ec188e330fdf80ea |
class STMag(LogFluxUnits): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> LogFluxUnits.__init__(self) <NEW_LINE> self.name = 'stmag' <NEW_LINE> self.linunit = Flam() <NEW_LINE> self.zeropoint = STZERO <NEW_LINE> <DEDENT> def ToPhotlam(self, wave, flux, **kwargs): <NEW_LINE> <INDENT> return wave / H / C * 1... | Class to handle ``stmag`` unit.
See :ref:`pysynphot-units-counts-mags` for more details.
Attributes
----------
name : str
This is always 'stmag'.
Dispatch : dict
Defines conversion to ``photlam``.
isFlux, isMag, isDensity : bool
This is always `True`.
nativewave : `WaveUnits`
This is `Angstrom` by d... | 62598f71287bf620b62713ff |
class Environment(dict): <NEW_LINE> <INDENT> def __init__(self, params=(), args=(), outer_environment = None): <NEW_LINE> <INDENT> self.update(zip(params, args)) <NEW_LINE> self.outer_env = outer_environment <NEW_LINE> <DEDENT> def find(self, var): <NEW_LINE> <INDENT> if var in self.keys(): <NEW_LINE> <INDENT> return s... | An environment frame, comprised of a dictionary of variables mapped
to values | 62598f710a366e3fb87dc20f |
class TestDestinyEntitiesItemsDestinyItemSocketState(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 testDestinyEntitiesItemsDestinyItemSocketState(self): <NEW_LINE> <INDENT> pass | DestinyEntitiesItemsDestinyItemSocketState unit test stubs | 62598f7126238365f5fac3be |
class TestMain(IntegrationTests): <NEW_LINE> <INDENT> def runPyflakes(self, paths, stdin=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> with SysStreamCapturing(stdin) as capture: <NEW_LINE> <INDENT> main(args=paths) <NEW_LINE> <DEDENT> <DEDENT> except SystemExit as e: <NEW_LINE> <INDENT> return (capture.output, ca... | Tests of the pyflakes main function. | 62598f7173bcbd0ca4bc9a95 |
class UserChangeForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = User <NEW_LINE> fields = ('email', 'is_active','is_superuser','is_staff') | A form for updating users. Includes all the fields on
the user | 62598f7176d4e153a661c45b |
@tf_export("data.experimental.DatasetStructure") <NEW_LINE> class DatasetStructure(structure_lib.Structure): <NEW_LINE> <INDENT> def __init__(self, element_structure): <NEW_LINE> <INDENT> self._element_structure = element_structure <NEW_LINE> <DEDENT> @property <NEW_LINE> def _flat_shapes(self): <NEW_LINE> <INDENT> ret... | Represents a `Dataset` of structured values. | 62598f711d351010ab8f3388 |
class Transitions(object): <NEW_LINE> <INDENT> _endpoint = 'businesstransitions/business' <NEW_LINE> def __init__(self, token, collection): <NEW_LINE> <INDENT> self.token = token <NEW_LINE> self.collection = collection <NEW_LINE> <DEDENT> def page(self, count=5, start_index=0, params=None): <NEW_LINE> <INDENT> return s... | Lists, Creates and Finds the notes for businesses
Returns BusinessTransitionResponse object | 62598f71d10714528d69d716 |
class PersonalCreditCardCompany(Company): <NEW_LINE> <INDENT> swagger_types = { 'personal_credit_cards': 'list[PersonalCreditCard]' } <NEW_LINE> if hasattr(Company, "swagger_types"): <NEW_LINE> <INDENT> swagger_types.update(Company.swagger_types) <NEW_LINE> <DEDENT> attribute_map = { 'personal_credit_cards': 'personalC... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f7121bff66bcd7224a9 |
class CompanyBaseModel(BaseModel): <NEW_LINE> <INDENT> name = models.CharField(max_length=255) <NEW_LINE> alt_name = models.CharField(max_length=255, verbose_name='alternative name', blank=True, null=True) <NEW_LINE> founders = models.CharField(max_length=255, null=True) <NEW_LINE> directors = models.CharField(max_leng... | Company base model | 62598f713eb6a72ae0389e8b |
class Logger(object): <NEW_LINE> <INDENT> def __init__(self, fpath, title=None, resume=False): <NEW_LINE> <INDENT> self.file = None <NEW_LINE> self.resume = resume <NEW_LINE> self.title = '' if title == None else title <NEW_LINE> if fpath is not None: <NEW_LINE> <INDENT> if resume: <NEW_LINE> <INDENT> self.file = open(... | Save training process to log file with simple plot function. | 62598f71d99f1b3c44d04eff |
class ICustomerSubscriptionDeletedEvent(BaseWebhookEvent): <NEW_LINE> <INDENT> pass | describes a subscription - Occurs whenever a customer ends their subscription. | 62598f71cad5886f8bdc4b6b |
class Documents(Base): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def cast(arg): <NEW_LINE> <INDENT> return Documents() <NEW_LINE> <DEDENT> def add(self, documentType, visible, options): <NEW_LINE> <INDENT> return Document() <NEW_LINE> <DEDENT> def item... | The Documents object provides access to all of the currently open documents and provides methods to create and open documents. | 62598f714e696a045264da22 |
class TeacherListView(View): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> all_teachers = Teacher.objects.all() <NEW_LINE> search_keywords = request.GET.get('keywords', '') <NEW_LINE> if search_keywords: <NEW_LINE> <INDENT> all_teachers = all_teachers.filter( Q(name__icontains=search_keywords) | Q(wor... | 课程讲师列表页 | 62598f7166656f66f7d59c3a |
class ToolsCreateForm_Locators_Base(object): <NEW_LINE> <INDENT> locators = { 'base' : "css=#hubForm", 'name' : "css=#t_toolname", 'title' : "css=#t_title", 'version' : "css=#t_version", 'description' : "css=#t_description", 'vncwidth' : "css=#vncGeometryX"... | locators for ToolsCreateForm object | 62598f7173bcbd0ca4bc9a96 |
class RunApiRegister(RunApi): <NEW_LINE> <INDENT> def __init__(self, step_name: str = None): <NEW_LINE> <INDENT> super().__init__("registerVmallWeb", step_name) <NEW_LINE> <DEDENT> def request(self): <NEW_LINE> <INDENT> return ( super() .request() .with_json({ "data": { "email": "$email", "password": "$password", "code... | Implement api 'register'.
Key-value pairs (required):
- email: $email (str)
- password: $password (str)
- code: $verify_code (int)
key-value pairs (optional):
- countryCode (str)
- acceptMarketingEmail (bool)
- registerAppVersion (str)
- registerSource (int), 1 for app, 2 for web, 3 for iM... | 62598f71ec188e330fdf80ec |
class Link(CMSPlugin): <NEW_LINE> <INDENT> name = models.CharField(_("name"), max_length=256) <NEW_LINE> url = models.CharField(_("link"), max_length=200, blank=True, null=True) <NEW_LINE> page_link = models.ForeignKey(Page, verbose_name=_("page"), blank=True, null=True, help_text=_("A link to a page has priority over ... | A link to an other page or to an external website | 62598f7123e79379d538bd40 |
class OverdoseReversalsModel(BaseModel): <NEW_LINE> <INDENT> __tablename__ = 'overdose_reversals' <NEW_LINE> id = db.Column(db.Integer, primary_key = True) <NEW_LINE> client_id = db.Column(db.Integer, db.ForeignKey("client_users.id"), nullable=False) <NEW_LINE> date = db.Column(db.Date) <NEW_LINE> county = db.Column(db... | Holds information about overdose reversals, supplies used, and steps performed | 62598f7123e79379d538bd41 |
class SimpleMetadata(BaseMetadata): <NEW_LINE> <INDENT> label_lookup = ClassLookupDict({ serializers.Field: 'field', serializers.BooleanField: 'boolean', serializers.NullBooleanField: 'boolean', serializers.CharField: 'string', serializers.URLField: 'url', serializers.EmailField: 'email', serializers.RegexField: 'regex... | This is the default metadata implementation.
It returns an ad-hoc set of information about the view.
There are not any formalized standards for `OPTIONS` responses
for us to base this on. | 62598f716fece00bbaccb1d5 |
class SharedFolderJoinPolicy(bb.Union): <NEW_LINE> <INDENT> _catch_all = 'other' <NEW_LINE> from_team_only = None <NEW_LINE> from_anyone = None <NEW_LINE> other = None <NEW_LINE> def is_from_team_only(self): <NEW_LINE> <INDENT> return self._tag == 'from_team_only' <NEW_LINE> <DEDENT> def is_from_anyone(self): <NEW_LINE... | Policy governing which shared folders a team member can join.
This class acts as a tagged union. Only one of the ``is_*`` methods will
return true. To get the associated value of a tag (if one exists), use the
corresponding ``get_*`` method.
:ivar from_team_only: Team members can only join folders shared by
teamm... | 62598f71925a0f43d25e7888 |
class ConsumerStep(StartStopStep): <NEW_LINE> <INDENT> requires = ('celery.worker.consumer:Connection',) <NEW_LINE> consumers = None <NEW_LINE> def get_consumers(self, channel): <NEW_LINE> <INDENT> raise NotImplementedError('missing get_consumers') <NEW_LINE> <DEDENT> def start(self, c): <NEW_LINE> <INDENT> channel = c... | Bootstep that starts a message consumer. | 62598f718e05c05ec3f6ea6b |
class bootstrap: <NEW_LINE> <INDENT> def __init__(self, no_bootstrap, scale='linear'): <NEW_LINE> <INDENT> self.no_boostrap = no_bootstrap <NEW_LINE> self.scale = scale <NEW_LINE> <DEDENT> def _get_var(self, f, what, default, args, kwargs, remove=False): <NEW_LINE> <INDENT> varnames = f.__code__.co_varnames <NEW_LINE> ... | Decorator to implement bootstrapping. It looks for the arguments ci, axis,
and bootstrap_iter to determine the proper parameters for bootstrapping.
The argument scale determines whether the percentile is taken on a circular
scale or on a linear scale.
:param no_bootstrap: the number of arguments that are bootstrapped
... | 62598f71a8ecb03325870a53 |
class Listapostsnome(generics.ListAPIView): <NEW_LINE> <INDENT> def get_queryset(self): <NEW_LINE> <INDENT> user = User.objects.filter(username=self.kwargs['username']).get() <NEW_LINE> queryset = Post.objects.order_by('-datetime').filter(postador_id=user.id) <NEW_LINE> return queryset <NEW_LINE> <DEDENT> serializer_c... | Listando posts do usuario | 62598f71711fe17d825dff30 |
class SasAttachedDevice(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'channel': 'int', 'channel_type': 'str', 'sas_attached_device_data': 'SasAttachedDeviceTypeData' } <NEW_LINE> self.attribute_map = { 'channel': 'channel', 'channel_type': 'channelType', 'sas_attached_devi... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f7150485f2cf55da7bb |
class TestT1(unittest.TestCase): <NEW_LINE> <INDENT> def test_t1(self): <NEW_LINE> <INDENT> num_of_gates = (np.linspace(1, 200, 25)).astype(int) <NEW_LINE> gate_time = 0.11 <NEW_LINE> qubits = [0] <NEW_LINE> circs, xdata = t1_circuits(num_of_gates, gate_time, qubits) <NEW_LINE> expected_t1 = 10 <NEW_LINE> error = therm... | Test measurement of T1 | 62598f711f5feb6acb162483 |
class _wsgi_handler(WSGIHandler): <NEW_LINE> <INDENT> def process_result(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> super(_wsgi_handler, self).process_result() <NEW_LINE> <DEDENT> except socket.error as err: <NEW_LINE> <INDENT> if err.errno in (errno.EPIPE,): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> else: ... | 当访问量非常巨大的时候,如果客户端首先退出,则屏蔽该错误信息。 | 62598f71dc8b845886d52dfe |
class User(BaseUser): <NEW_LINE> <INDENT> def __init__(self, client: Client, data: dict): <NEW_LINE> <INDENT> super().__init__(client=client, user_id=data["id"]) <NEW_LINE> self._client: Client = client <NEW_LINE> self.name: str = data["name"] <NEW_LINE> self.display_name: str = data["displayName"] <NEW_LINE> self.exte... | Represents a single conversation.
Attributes:
id: The id of the current user.
name: The name of the current user.
display_name: The display name of the current user.
external_app_display_name: The external app display name of the current user.
is_banned: If the user is banned.
description: The ... | 62598f711d351010ab8f338b |
class ScreenListener(ABC): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def notify(self, screen): <NEW_LINE> <INDENT> raise NotImplementedError | A base class to be implemented by anything that listens for screen changes. | 62598f718c3a8732951f5d9b |
class MeshTriSanityCheck(MeshTriBasicTest): <NEW_LINE> <INDENT> def runTest(self): <NEW_LINE> <INDENT> mesh=copy.deepcopy(self.mesh) <NEW_LINE> mesh.refine(4) <NEW_LINE> self.assertEqual(np.max(mesh.t),mesh.p.shape[1]-1) | Perform a sanity check on the indexing, etc. | 62598f71c432627299fa2822 |
class ModifiedButtons(ButtonHelper): <NEW_LINE> <INDENT> def add_button(self, classnames_add=[], classnames_exclude=[]): <NEW_LINE> <INDENT> classnames = self.add_button_classnames + classnames_add <NEW_LINE> cn = self.finalise_classname(classnames, classnames_exclude) <NEW_LINE> return { 'url': reverse(views.sync_goog... | Removes buttons: 'modify' and 'delete', and changes the 'create' button
action to syncronize Events/EventPages with Google Calendar. | 62598f714e696a045264da23 |
class EmployeeAPITests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.obj = Employee.objects.create(**EMPLOYEE_REGISTRY) <NEW_LINE> self.resp = self.client.get(r('core:employees-api')) <NEW_LINE> <DEDENT> def test_get(self): <NEW_LINE> <INDENT> self.assertEqual(200, self.resp.status_code) <NEW... | Tests for Employee Read-Only API. | 62598f7166656f66f7d59c3c |
class DaylightSavingsTime(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'time': 'int', 'clock_mode': 'str', 'month': 'int', 'day_of_month': 'int', 'day_of_week': 'int' } <NEW_LINE> self.attribute_map = { 'time': 'time', 'clock_mode': 'clockMode', 'month': 'month', 'day_of_m... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f7130dc7b766599f0aa |
class PrivateLinkResourceDescription(PrivateLinkResource): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, 'group_id': {'readonly': True}, 'required_members': {'readonly': True}, 'system_data': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id'... | The Private Endpoint Connection resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resou... | 62598f7116aa5153ce3ffd49 |
class SchemaParseError(AzureError): <NEW_LINE> <INDENT> pass | Error parsing a JSON schema.
:param str message: The message object stringified as 'message' attribute
:keyword error: The original exception, if any
:ivar str message: A stringified version of the message parameter
:ivar inner_exception: The exception passed with the 'error' kwarg
:vartype inner_exception: Exception
... | 62598f710a366e3fb87dc213 |
class Filter(object): <NEW_LINE> <INDENT> def __init__(self, original_string, clean_word='****'): <NEW_LINE> <INDENT> bad_words_file = open('bad_words.txt', 'r') <NEW_LINE> self.bad_words = set(line.strip('\n') for line in open('bad_words.txt')) <NEW_LINE> self.original_string = original_string <NEW_LINE> self.clean_wo... | Replaces a bad word in a string with something more PG friendly
Filter('you annoying prick', 'unicorn') | 62598f716e29344779affeab |
class Skip(NoGroups): <NEW_LINE> <INDENT> pass | No groups on the site, because the site must be skipped | 62598f71287bf620b6271404 |
class FBCharacterFace (FBConstraint): <NEW_LINE> <INDENT> def FBCharacterFace(self,pName): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def ClusterGroupAdd(self,pList,pName): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def ClusterGroupFindByName(self,pName): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def ClusterGrou... | Character class.
<b>These classes are under development and may change dramatically between versions.</b> | 62598f7130c21e258be98050 |
class Skillset(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'skillset' <NEW_LINE> skillset_id = db.Column(db.Integer, primary_key=True) <NEW_LINE> skillset_name = db.Column(db.Text) <NEW_LINE> skillset_description = db.Column(db.Text) <NEW_LINE> skillset_image = db.Column(db.Text) <NEW_LINE> skillset_wiki_description... | This is the Skillset model and has the following attributes:
skillset_id (Integer) - Unique identifier
skillset_name (Text) - Name of the skillset
skillset_description (Text) - Description of the skillset | 62598f71a4f1c619b294de38 |
class InfoUDP(DatagramProtocol): <NEW_LINE> <INDENT> def __init__(self, infos): <NEW_LINE> <INDENT> self.infos = infos <NEW_LINE> <DEDENT> def datagramReceived(self, datagram, address): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> idx, val, cmd, style = struct.unpack('!Qbc255p', datagram) <NEW_LINE> if style in self.in... | Expiry information collector and provider over UDP. This
is an extremely light-weight protocol providing the absolute
minimum amount of information about the | 62598f71925a0f43d25e788a |
class ValueIterationAgent(ValueEstimationAgent): <NEW_LINE> <INDENT> def __init__(self, mdp, discount = 0.9, iterations = 100): <NEW_LINE> <INDENT> self.mdp = mdp <NEW_LINE> self.discount = discount <NEW_LINE> self.iterations = iterations <NEW_LINE> self.values = util.Counter() <NEW_LINE> "*** YOUR CODE HERE ***" <NEW_... | * Please read learningAgents.py before reading this.*
A ValueIterationAgent takes a Markov decision process
(see mdp.py) on initialization and runs value iteration
for a given number of iterations using the supplied
discount factor. | 62598f713eb6a72ae0389e8f |
class TagViewSet(BaseRecipeAttrViewSet): <NEW_LINE> <INDENT> queryset = Tag.objects.all() <NEW_LINE> serializer_class = serializers.TagSerializer | Manage tags in the database | 62598f710383005118f6cf50 |
class rule_002(single_space_between_tokens): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> single_space_between_tokens.__init__(self, 'case', '002', token.case_keyword, parser.todo) <NEW_LINE> self.solution = 'Reduce spaces between *case* keyword and expression.' | This rule checks for a single space after the **case** keyword.
**Violation**
.. code-block:: vhdl
case data is
**Fix**
.. code-block:: vhdl
case data is | 62598f719b70327d1c57e5fb |
class InferencePrior(object): <NEW_LINE> <INDENT> def __init__(self, prior_engine_config_file: str, global_prior_files: List[str], reference_dataset: gdal.Dataset, use_dummy: bool = False): <NEW_LINE> <INDENT> if use_dummy: <NEW_LINE> <INDENT> LOG.info('Using dummy for debugging purposes') <NEW_LINE> self._inference_pr... | A class to wrap access to priors created by the MULTIPLY prior engine to the inference engine. | 62598f711d351010ab8f338d |
class SimpleTokenAuthentication(BaseAuthentication): <NEW_LINE> <INDENT> def authenticate(self, request): <NEW_LINE> <INDENT> token = request.DATA.get('authentication.token', None) <NEW_LINE> if not token: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDENT> auth_token = SimpleTokenAuthModel.obj... | Simple token authentication provides ways to easily authenticate request to specific or all API views. It uses uuid4
strings as tokens. There is a need to generate first token by a hand or a script to successfully work with views
connected to a token lifecycle. | 62598f71cad5886f8bdc4b6f |
class Collector(object): <NEW_LINE> <INDENT> all = [] <NEW_LINE> def __init__(self, func): <NEW_LINE> <INDENT> self.func = func <NEW_LINE> self.all.append(func) <NEW_LINE> wraps(func)(self) <NEW_LINE> <DEDENT> def __call__(self, *args, **kwargs): <NEW_LINE> <INDENT> return self.func(*args, **kwargs) | Collector decorator | 62598f71a4f1c619b294de39 |
class SpecialLinkedList(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.head = None <NEW_LINE> self.root = None <NEW_LINE> self.tail = None <NEW_LINE> <DEDENT> def add(self, new_number): <NEW_LINE> <INDENT> if self.root is None: <NEW_LINE> <INDENT> new_node = Node() <NEW_LINE> new_node.size = ... | docstring for SpecialLinkedList | 62598f718c3a8732951f5d9d |
class TestInsertionSort(unittest.TestCase): <NEW_LINE> <INDENT> def test_sorted_list(self): <NEW_LINE> <INDENT> sorted_list = [1, 2, 3, 4] <NEW_LINE> insertion_sort(sorted_list) <NEW_LINE> self.assertEqual( sorted_list, [1, 2, 3, 4] ) <NEW_LINE> <DEDENT> def test_unsorted_list(self): <NEW_LINE> <INDENT> unsorted_list =... | Class that tests insertion sort instances | 62598f71d4950a0f3b110a5e |
class LogReg: <NEW_LINE> <INDENT> def __init__(self, learning_rate, shape, session): <NEW_LINE> <INDENT> if len(shape) != 2: <NEW_LINE> <INDENT> print("Length of the data shape must be 2! (NO_FEATURES, NO_CLASSES)") <NEW_LINE> print("Exiting!") <NEW_LINE> exit(1) <NEW_LINE> <DEDENT> self.session = session <NEW_LINE> se... | LogReg class
An implemetation of logistic regression for multiclass data classification | 62598f716e29344779affead |
class PostCreateSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Post <NEW_LINE> fields = ('title', 'content', 'author') | Create post | 62598f71ec188e330fdf80f0 |
class Test_Others(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> if not init(): <NEW_LINE> <INDENT> raise <NEW_LINE> <DEDENT> self.stdout=Stream('stdout') <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> self.stdout.close() <NEW_LINE> if not cleanup(): <NEW_LINE> <INDENT> raise ... | Check persistence of constructed terms after
resume. | 62598f7163f4b57ef0085996 |
class RGBTRIPLE(ctypes.Structure): <NEW_LINE> <INDENT> _fields_ = [ ('rgbBlue', ctypes.c_byte), ('rgbGreen', ctypes.c_byte), ('rgbRed', ctypes.c_byte), ('rgbReserved', ctypes.c_byte), ] | RGB Define
| 62598f711d351010ab8f338e |
class MoreSecureAccountTest(unittest.TestCase): <NEW_LINE> <INDENT> def test_secure(self): <NEW_LINE> <INDENT> acc = SecureAccount('Alyssa P. Hacker', 'p4ssw0rd') <NEW_LINE> acc.deposit(1000) <NEW_LINE> self.assertEqual(acc.balance, 1000, 'Bank error! Incorrect balance') <NEW_LINE> self.assertEqual(acc.withdraw(100), '... | Test the MoreSecureAccount class. | 62598f716fece00bbaccb1d9 |
class Cylinder(Shape): <NEW_LINE> <INDENT> def __init__(self, length, radius, **kwargs): <NEW_LINE> <INDENT> super(Cylinder, self).__init__(**kwargs) <NEW_LINE> self.geometry_attrs += ['length', 'radius'] <NEW_LINE> self.length = length <NEW_LINE> self.radius = radius | Instantiates a cylinder with given length and radius.
Parameters
==========
length : float or SymPy expression
The length of the cylinder.
radius : float or SymPy expression
The radius of the cylinder.
Examples
========
>>> from pydy.viz.shapes import Cylinder
>>> s = Cylinder(10.0, 5.0)
>>> s.name
'unnamed'... | 62598f7166673b3332c2fc0f |
@attr.s(frozen=True, cmp=True, hash=True) <NEW_LINE> class Token(object): <NEW_LINE> <INDENT> user_id = attr.ib() <NEW_LINE> operation = attr.ib() | :param int user_id:
:param str operation: An operation taken from
:class:`TokenActions<flaskpet.core.tokens.TokenActions>` | 62598f71d164cc61758207c5 |
class Command(BaseCommand): <NEW_LINE> <INDENT> def handle(self, **options): <NEW_LINE> <INDENT> translation.activate(django_settings.LANGUAGE_CODE) <NEW_LINE> if askbot_settings.ENABLE_EMAIL_ALERTS is False: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> if askbot_settings.ENABLE_UNANSWERED_REMINDERS is False: <NEW_LI... | management command that sends reminders
about unanswered questions to all users | 62598f710383005118f6cf52 |
class OmitIncludeTestsMixin(UsingModulesMixin, CoverageTestMethodsMixin): <NEW_LINE> <INDENT> def filenames_in(self, summary, filenames): <NEW_LINE> <INDENT> for filename in filenames.split(): <NEW_LINE> <INDENT> self.assertIn(filename, summary) <NEW_LINE> <DEDENT> <DEDENT> def filenames_not_in(self, summary, filenames... | Test methods for coverage methods taking include and omit. | 62598f713eb6a72ae0389e91 |
@pimms.immutable <NEW_LINE> class RetinotopyModel(object): <NEW_LINE> <INDENT> def __init__(self, area_name_to_id): <NEW_LINE> <INDENT> self.area_name_to_id = area_name_to_id <NEW_LINE> <DEDENT> @pimms.param <NEW_LINE> def area_name_to_id(vai): <NEW_LINE> <INDENT> if vai is None: return None <NEW_LINE> if not pimms.is_... | RetinotopyModel is a class designed to be inherited by other models of retinotopy; any class
that inherits from RetinotopyModel must implement the following methods to work properly with
the registration system of the neuropythy library. | 62598f71d99f1b3c44d04f05 |
class SlowResponseReportMiddleware(object): <NEW_LINE> <INDENT> def process_request(self, request): <NEW_LINE> <INDENT> request.response_report_start_time = time.time() <NEW_LINE> <DEDENT> def process_response(self, request, response): <NEW_LINE> <INDENT> if not request.path.startswith("/m/"): <NEW_LINE> <INDENT> retur... | スローレスポンスをレポート | 62598f716fece00bbaccb1da |
class Request(object): <NEW_LINE> <INDENT> def __init__(self, allScanData=None, deviceId=None,): <NEW_LINE> <INDENT> self.allScanData = allScanData <NEW_LINE> self.deviceId = deviceId <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.... | Attributes:
- allScanData
- deviceId | 62598f7166656f66f7d59c40 |
class GETPaymentsType(object): <NEW_LINE> <INDENT> swagger_types = { 'next_page': 'str', 'payments': 'list[GETPaymentType]', 'success': 'bool' } <NEW_LINE> attribute_map = { 'next_page': 'nextPage', 'payments': 'payments', 'success': 'success' } <NEW_LINE> def __init__(self, next_page=None, payments=None, success=None)... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f714d74a7450cd58b01 |
class Transform_Scale(Transform_Base): <NEW_LINE> <INDENT> def __init__(self, sx=1.0, sy=1.0, sz=1.0): <NEW_LINE> <INDENT> self.sx = sx <NEW_LINE> self.sy = sy <NEW_LINE> self.sz = sz | Transform_Scale(sx=1.0, sy=1.0, sz=1.0)
Scales the wobject. | 62598f7163f4b57ef0085997 |
class AbstractUseCaseRepository(abc.ABC): <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> def add(self, entity: entity_model.UseCaseEntity) -> bool: <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def get(self, uuid: str) -> entity_model.UseCaseEntity: <NEW_LINE> <IND... | Abstract class with the common operations of the entity UseCaseEntity | 62598f71e76e3b2f99fd8281 |
class SecurityRuleListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[SecurityRule]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["SecurityRule"]] = None, next_link: Optional[str] = None, **kwar... | Response for ListSecurityRule API service call. Retrieves all security rules that belongs to a network security group.
:param value: The security rules in a network security group.
:type value: list[~azure.mgmt.network.v2017_03_01.models.SecurityRule]
:param next_link: The URL to get the next set of results.
:type nex... | 62598f7107d97122c42164f2 |
class DraftImportTools(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> aux._draw_header() <NEW_LINE> <DEDENT> def test_import_gui_draftedit(self): <NEW_LINE> <INDENT> module = "draftguitools.gui_edit" <NEW_LINE> imported = aux._import_test(module) <NEW_LINE> self.assertTrue(imported, "Probl... | Test for each individual module that defines a tool. | 62598f71fb3f5b602db47dd9 |
class VerifyPersonRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Image = None <NEW_LINE> self.Url = None <NEW_LINE> self.PersonId = None <NEW_LINE> self.QualityControl = None <NEW_LINE> self.NeedRotateDetection = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LIN... | VerifyPerson request structure.
| 62598f711f5feb6acb162489 |
class BakeOperation(OperationBase): <NEW_LINE> <INDENT> def add_arguments(self, parser): <NEW_LINE> <INDENT> super(BakeOperation, self).add_arguments(parser) <NEW_LINE> parser.add_argument('--image-format', choices=["PNG","JPEG"], default="PNG", help='The format of the baked image file') <NEW_LINE> parser.add_argument(... | Bake textures of objects and store them into image files. | 62598f71c432627299fa2828 |
class SecuritySKIPFileIWOTHandISVTXProhibitedCompareKoji(TestCompareKoji): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.after_rpm.add_installed_file( "/usr/bin/skip", rpmfluff.SourceFile("file", "a" * 5), mode="1757" ) <NEW_LINE> self.inspection = "permissions" <NEW_LINE> sel... | Assert when a world-writable file with the sticky bit is in a package,
BAD result occurs requiring a Security waiver. | 62598f71ac7a0e7691f71d69 |
class DeleteIdentityProvider(command.Command): <NEW_LINE> <INDENT> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(DeleteIdentityProvider, self).get_parser(prog_name) <NEW_LINE> parser.add_argument( 'identity_provider', metavar='<identity-provider>', nargs='+', help=_('Identity provider(s) to delete... | Delete identity provider(s) | 62598f71796e427e5384dfe7 |
class Student(object): <NEW_LINE> <INDENT> def __init__(self, name, year): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.year = year <NEW_LINE> self._grades = [] <NEW_LINE> <DEDENT> def addGrade(self, grade): <NEW_LINE> <INDENT> self._grades.append(grade) <NEW_LINE> self.update() <NEW_LINE> <DEDENT> def update(s... | This class represents a student. A student is defined by a name, a class and has grades | 62598f71be8e80087fbbe8b0 |
@Singleton <NEW_LINE> class MiddlewareRegistrar: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._middleware = {} <NEW_LINE> <DEDENT> def Register(self, name, fn): <NEW_LINE> <INDENT> name = normalizeStr(name) <NEW_LINE> Logger.Debug("Registering Middleware:", name) <NEW_LINE> self._middleware[name] = ... | A class used to register Middleware and dispatch Middleware | 62598f71d4950a0f3b110a60 |
class StatsClient(StatsClientBase): <NEW_LINE> <INDENT> def __init__(self, host='localhost', port=8125, ipv6=False, prefix=None, maxudpsize=512): <NEW_LINE> <INDENT> fam = socket.AF_INET6 if ipv6 else socket.AF_INET <NEW_LINE> family, _, _, _, addr = socket.getaddrinfo( host, port, fam, socket.SOCK_DGRAM)[0] <NEW_LINE>... | A client for statsd. | 62598f7163f4b57ef0085998 |
class TFDecoderMixin: <NEW_LINE> <INDENT> KEYS_TO_FEATURES = { "image/encoded": tf.io.FixedLenFeature((), tf.string), "image/source_id": tf.io.FixedLenFeature((), tf.string, ""), "image/height": tf.io.FixedLenFeature((), tf.int64, -1), "image/width": tf.io.FixedLenFeature((), tf.int64, -1), "image/object/bbox/xmin": tf... | Tensorflow decoder. | 62598f71a4f1c619b294de3e |
class RegistrationForm(forms.Form): <NEW_LINE> <INDENT> first_name = forms.CharField(label=_(u'First Name'), max_length=30) <NEW_LINE> last_name = forms.CharField(label=_(u'Last Name'), max_length=30) <NEW_LINE> username = forms.RegexField(regex=r'^\w+$', max_length=30, widget=forms.TextInput(attrs=attrs_dict), label=_... | Form for registering a new user account.
Validates that the requested username is not already in use, and
requires the password to be entered twice to catch typos. | 62598f718a43f66fc4bf19d2 |
class SengledE1EG7F(CustomDevice): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.on_off_bus = Bus() <NEW_LINE> self.level_control_bus = Bus() <NEW_LINE> super().__init__(*args, **kwargs) <NEW_LINE> <DEDENT> signature = { MODELS_INFO: [("sengled", "E1E-G7F")], ENDPOINTS: { 1: { PROFIL... | Sengled E1E-G7F device. | 62598f719b70327d1c57e601 |
class TransitionMessage(de_sim.EventMessage): <NEW_LINE> <INDENT> transition_type: StateTransitionType | Message for all model transitions | 62598f71287bf620b627140a |
class Permission: <NEW_LINE> <INDENT> GUEST = 0x01 <NEW_LINE> USER = 0x02 <NEW_LINE> MOD = 0x04 <NEW_LINE> ADMIN = 0x80 <NEW_LINE> TYPES = { 'guest': 0x01, 'user': 0x02, 'mod': 0x04, 'admin': 0x80 } | user previlage class | 62598f716fece00bbaccb1de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.