code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class MarkClassName(Expression): <NEW_LINE> <INDENT> def __init__(self, location, markClass): <NEW_LINE> <INDENT> Expression.__init__(self, location) <NEW_LINE> assert isinstance(markClass, MarkClass) <NEW_LINE> self.markClass = markClass <NEW_LINE> <DEDENT> def glyphSet(self): <NEW_LINE> <INDENT> return self.markClass...
A mark class name, such as @FRENCH_MARKS defined with markClass.
62598fbe2c8b7c6e89bd39c0
class Operations(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> <DEDENT> @dist...
Operations 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.redis.models :param client: Client for service ...
62598fbea8370b77170f05e0
class NonFiniteCase(CloseTestCase): <NEW_LINE> <INDENT> inf = float('inf') <NEW_LINE> nan = float('nan') <NEW_LINE> close_examples = [(inf, inf), (-inf, -inf), ] <NEW_LINE> not_close_examples = [(nan, nan), (nan, 1e-100), (1e-100, nan), (inf, nan), (nan, inf), (inf, -inf), (inf, 1.0), (1.0, inf), (inf, 1e308), (1e308, ...
tests for nan, inf, -inf
62598fbe5fc7496912d4837b
@xnmt.require_torch <NEW_LINE> class LinearTorch(Transform, Serializable): <NEW_LINE> <INDENT> yaml_tag = "!Linear" <NEW_LINE> @serializable_init <NEW_LINE> def __init__(self, input_dim: numbers.Integral = Ref("exp_global.default_layer_dim"), output_dim: numbers.Integral = Ref("exp_global.default_layer_dim"), bias: boo...
Linear projection with optional bias. Args: input_dim: input dimension output_dim: hidden dimension bias: whether to add a bias param_init: how to initialize weight matrices bias_init: how to initialize bias vectors
62598fbeff9c53063f51a84e
class Fe55GainSummaryTask(Fe55SummaryAnalysisTask): <NEW_LINE> <INDENT> ConfigClass = Fe55GainSummaryConfig <NEW_LINE> _DefaultName = "Fe55GainSummaryTask" <NEW_LINE> plot_names = ['gain', 'sigmax', 'fgood'] <NEW_LINE> def extract(self, butler, data, **kwargs): <NEW_LINE> <INDENT> self.safe_update(**kwargs) <NEW_LINE> ...
Sumarize the results of the Fe55 gain analyses
62598fbe3346ee7daa337748
class Alert(DatetimeModel, DataModel): <NEW_LINE> <INDENT> ALERT_LEVELS = [[0, _("Warning")], [1, _("Important")], [2, _("Security")]] <NEW_LINE> WARNING, IMPORTANT, SECURITY = 0, 1, 2 <NEW_LINE> user = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='alerts_received', on_delete=models.CASCADE, verbose_name=_(...
Alerte
62598fbedc8b845886d537bb
class UnknownXmlParsingError(BaseXmlParsingError): <NEW_LINE> <INDENT> pass
An unkwnown XML parsing error or for which there is no handling implementation. It is useful because the XML parsing process indirectly uses many (standard and 3rd party) libraries, some of them with native implementations and/or with a lot of obscure Python magic.
62598fbe56ac1b37e63023ee
class InstitucionUnlinkSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> planificaciones = PlanificacionSerializer(many=True, read_only=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Institucion <NEW_LINE> fields = ( 'id', 'periodo', 'nombre_departamento', 'nombre_distrito', 'codigo_institucion', '...
Este serializador solo se usa para facilitar el proceso de romper las relaciones entre Instituciones y Planificaciones, UnlinkMatch
62598fbe5fcc89381b26624d
class ProjectSummaryView(ProjectContextMixin, DetailView): <NEW_LINE> <INDENT> model = SocialProject <NEW_LINE> template_name = 'projects/socialproject_summary.html' <NEW_LINE> def get_context_data(self, object=None): <NEW_LINE> <INDENT> context = super(ProjectSummaryView, self).get_context_data() <NEW_LINE> ct = Conte...
Podsumowanie najważniejszych informacji o projekcie.
62598fbe7047854f4633f5d5
class QueueManager: <NEW_LINE> <INDENT> running = False <NEW_LINE> queue: list[Coroutine] = [] <NEW_LINE> def __init__(self, hass: HomeAssistant) -> None: <NEW_LINE> <INDENT> self.hass = hass <NEW_LINE> <DEDENT> @property <NEW_LINE> def pending_tasks(self) -> int: <NEW_LINE> <INDENT> return len(self.queue) <NEW_LINE> <...
The QueueManager class.
62598fbea219f33f346c6a07
class InverterMsg(object): <NEW_LINE> <INDENT> raw_msg = "" <NEW_LINE> def __init__(self, msg, offset=0): <NEW_LINE> <INDENT> self.raw_msg = msg <NEW_LINE> self.offset = offset <NEW_LINE> <DEDENT> def __get_string(self, begin, end): <NEW_LINE> <INDENT> return self.raw_msg[begin:end] <NEW_LINE> <DEDENT> def __get_short(...
Decode the response message from an omniksol inverter.
62598fbe5fdd1c0f98e5e193
class AppLogsHandler(logging.Handler): <NEW_LINE> <INDENT> def emit(self, record): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> message = self._AppLogsMessage(record) <NEW_LINE> if isinstance(message, unicode): <NEW_LINE> <INDENT> message = message.encode("UTF-8") <NEW_LINE> <DEDENT> logservice.write(message) <NEW_LINE...
Logging handler that will direct output to a persistent store of application logs. This handler will output log statements to logservice.write(). This handler is automatically initialized and attached to the Python common logging library.
62598fbeaad79263cf42e9d6
class Channel_Store(): <NEW_LINE> <INDENT> ALL = Category("all") <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.categories = {} <NEW_LINE> self._set_default(Channel_Store.ALL) <NEW_LINE> <DEDENT> def _set_default(self,category): <NEW_LINE> <INDENT> self.categories[category.name] = category <NEW_LINE> <DEDENT> ...
Channels are stored in different categories. This class uses a dictionary to store categories.
62598fbe283ffb24f3cf3a85
class closeScanner_result(object): <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRUCT, 'io', (TIOError, TIOError.thrift_spec), None,), (2, TType.STRUCT, 'ia', (TIllegalArgument, TIllegalArgument.thrift_spec), None,), ) <NEW_LINE> def __init__(self, io=None, ia=None, ): <NEW_LINE> <INDENT> self.io = io <NEW_LINE...
Attributes: - io - ia: if the scannerId is invalid
62598fbe3317a56b869be650
class QuantileScaler(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, n_quantiles=10): <NEW_LINE> <INDENT> self.n_quantiles = n_quantiles <NEW_LINE> <DEDENT> def fit(self, X, y=None): <NEW_LINE> <INDENT> n_unique_values = len(np.unique(X)) <NEW_LINE> if self.n_quantiles > n_unique_values: <NEW_L...
Perform a monotone transformation on a feature to map into buckets of equal size.
62598fbe99fddb7c1ca62eed
class BroekhoffDeBoer(ThicknessCurve): <NEW_LINE> <INDENT> def __init__(self, c1 = -16.1100, c2 = 0.1682, c3 = -0.1137): <NEW_LINE> <INDENT> self.c1 = c1 <NEW_LINE> self.c2 = c2 <NEW_LINE> self.c3 = c3 <NEW_LINE> <DEDENT> def eval(self, Prel): <NEW_LINE> <INDENT> def f(x): <NEW_LINE> <INDENT> return ( q - self.c2 * mat...
An instance of a ThicknessCurve that implements the Broekhoff-de Boer model.
62598fbed486a94d0ba2c1d2
class ItemsResponse(object): <NEW_LINE> <INDENT> swagger_types = { 'error': 'Error', 'items': 'list[Item]', 'metadata': 'ResponseMetadata', 'success': 'bool' } <NEW_LINE> attribute_map = { 'error': 'error', 'items': 'items', 'metadata': 'metadata', 'success': 'success' } <NEW_LINE> def __init__(self, error=None, items=...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598fbe8a349b6b4368643f
class KGDatasetFB15k(KGDataset): <NEW_LINE> <INDENT> def __init__(self, path, name='FB15k'): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> url = 'https://data.dgl.ai/dataset/{}.zip'.format(name) <NEW_LINE> if not os.path.exists(os.path.join(path, name)): <NEW_LINE> <INDENT> print('File not found. Downloading from', u...
Load a knowledge graph FB15k The FB15k dataset has five files: * entities.dict stores the mapping between entity Id and entity name. * relations.dict stores the mapping between relation Id and relation name. * train.txt stores the triples in the training set. * valid.txt stores the triples in the validation set. * tes...
62598fbef548e778e596b7a8
class SerializerMeta(type): <NEW_LINE> <INDENT> def __new__(mcs, name, bases, attrs): <NEW_LINE> <INDENT> attrs['_declared_fields'] = mcs.get_declared_fields(bases, attrs, base.FieldABC) <NEW_LINE> return super(SerializerMeta, mcs).__new__(mcs, name, bases, attrs) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get_dec...
Metaclass for the Serializer class. Binds the declared fields to a ``_declared_fields`` attribute, which is a dictionary mapping attribute names to field objects.
62598fbefff4ab517ebcd9e7
class MGMSG_MOT_REQ_ENCCOUNTER(MessageWithoutData): <NEW_LINE> <INDENT> message_id = 0x040A <NEW_LINE> _params_names = ['message_id'] + ['chan_ident', None] + ['dest', 'source']
See :class:`MGMSG_MOT_SET_ENCCOUNTER`. :param chan_ident: channel number (0x01, 0x02) :type chan_ident: int
62598fbe3d592f4c4edbb0c0
class SupplierDetailSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> deliveries = DeliveryListSerializer(many=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Supplier <NEW_LINE> fields = ('__all__')
Сериализатор для отдельного поставщика
62598fbef548e778e596b7a9
class ProductionConfig(BaseConfig): <NEW_LINE> <INDENT> SECRET_KEY = 'my_precious' <NEW_LINE> DEBUG = False <NEW_LINE> SQLALCHEMY_DATABASE_URI = 'postgresql://user:user@localhost/db'
Production configuration.
62598fbe66673b3332c305d5
class SalmonProtocol(object): <NEW_LINE> <INDENT> magicenv = magicsig.MagicEnvelopeProtocol() <NEW_LINE> def _GetKeypair(self, signer_uri): <NEW_LINE> <INDENT> return self.key_retriever.LookupPublicKey(signer_uri) <NEW_LINE> <DEDENT> def SignSalmon(self, text, mimetype, requestor_id): <NEW_LINE> <INDENT> assert mimetyp...
Implementation of Salmon Protocol.
62598fbebf627c535bcb16a8
class NoneRemoveLast(NoneRemoveAll): <NEW_LINE> <INDENT> grok.name('remove-last')
Remove last for None.
62598fbe60cbc95b0636453f
class Response(models.Model): <NEW_LINE> <INDENT> created = models.DateTimeField(_("Creation date"), auto_now_add=True) <NEW_LINE> updated = models.DateTimeField(_("Update date"), auto_now=True) <NEW_LINE> survey = models.ForeignKey(Survey, verbose_name=_("Survey"),related_name="responses",on_delete=models.PROTECT) <NE...
A Response object is a collection of questions and answers with a unique interview uuid.
62598fbeec188e330fdf8a96
class Node: <NEW_LINE> <INDENT> def __init__(self, val): <NEW_LINE> <INDENT> self.val = val <NEW_LINE> self.left = None <NEW_LINE> self.right = None <NEW_LINE> self.previous = None <NEW_LINE> self.next = None <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return str(self.val) <NEW_LINE> <DEDENT> def set_val...
Class represents the individual Nodes that make up a Binary Search Tree or Linked Lists
62598fbe7047854f4633f5d7
class Group(Model): <NEW_LINE> <INDENT> name = String() <NEW_LINE> users = HasMany("auth.User")
A group model.
62598fbe7b180e01f3e49151
class Refreshable(RedditContentObject): <NEW_LINE> <INDENT> def refresh(self): <NEW_LINE> <INDENT> unique = self.reddit_session._unique_count <NEW_LINE> self.reddit_session._unique_count += 1 <NEW_LINE> if isinstance(self, Redditor): <NEW_LINE> <INDENT> other = Redditor(self.reddit_session, self._case_name, fetch=True,...
Interface for objects that can be refreshed.
62598fbe26068e7796d4cb5f
class Club(SkeletonU): <NEW_LINE> <INDENT> name = models.CharField(_('Club name'), max_length=40, blank=False, null=False) <NEW_LINE> description = models.CharField(_('Club description'), max_length=255, blank=True, null=True) <NEW_LINE> created = models.DateTimeField(null=True, blank=True) <NEW_LINE> info = models.Tex...
created == club creation date
62598fbe44b2445a339b6a78
class TestNotifyReminder: <NEW_LINE> <INDENT> def test_linux(self, notify): <NEW_LINE> <INDENT> notifyFn = notify[0] <NEW_LINE> notifyFn("linux", "this is a test reminder") <NEW_LINE> called = notify[1] <NEW_LINE> assert called <NEW_LINE> args = called[0][0] <NEW_LINE> assert "/usr/bin/notify-send" in args <NEW_LINE> a...
Tests for creating a system notifiction
62598fbe5fdd1c0f98e5e196
class StopServices(RestartServices): <NEW_LINE> <INDENT> subcommand = "stop"
docker-compose logs -f --tail=tail
62598fbe091ae35668704e29
class IngressPort(base_tests.SimpleDataPlane): <NEW_LINE> <INDENT> def runTest(self): <NEW_LINE> <INDENT> logging.info("Running Ingress Port test") <NEW_LINE> of_ports = config["port_map"].keys() <NEW_LINE> of_ports.sort() <NEW_LINE> self.assertTrue(len(of_ports) > 1, "Not enough ports for test") <NEW_LINE> delete_all_...
Verify match on single Header Field Field -- In_port
62598fbe377c676e912f6e74
class Durability: <NEW_LINE> <INDENT> __init__ = _no_init <NEW_LINE> __scope__ = "Durability" <NEW_LINE> Volatile: 'Policy.Durability.Volatile' = _policy_singleton("Durability", "Volatile") <NEW_LINE> TransientLocal: 'Policy.Durability.TransientLocal' = _policy_singleton("Durability", "TransientLocal") <NEW_LINE> Trans...
The Durability Qos Policy Examples -------- >>> Policy.Durability.Volatile >>> Policy.Durability.TransientLocal >>> Policy.Durability.Transient >>> Policy.Durability.Persistent
62598fbe4a966d76dd5ef0d8
class implementer(object): <NEW_LINE> <INDENT> __slots__ = ('interfaces',) <NEW_LINE> def __init__(self, *interfaces): <NEW_LINE> <INDENT> self.interfaces = interfaces <NEW_LINE> <DEDENT> def __call__(self, ob): <NEW_LINE> <INDENT> if isinstance(ob, DescriptorAwareMetaClasses): <NEW_LINE> <INDENT> classImplements(ob, *...
Declare the interfaces implemented by instances of a class. This function is called as a class decorator. The arguments are one or more interfaces or interface specifications (`~zope.interface.interfaces.IDeclaration` objects). The interfaces given (including the interfaces in the specifications) are added to any in...
62598fbe656771135c489874
class NoErrArgumentParser(argparse.ArgumentParser): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.valid_args_cre_list = [] <NEW_LINE> argparse.ArgumentParser.__init__(self, *args, **kwargs) <NEW_LINE> <DEDENT> def add_argument(self, *args, **kwargs): <NEW_LINE> <INDENT> self.valid_ar...
ArgumentParser class that handle only predefined for an instance options. Note: The original ArgumentParser class raises an error if handle unknown option. But py.test have it's own options and it's own custom parser and if ArgumentParser find them it raises an error. Using this class allows not to define ...
62598fbe63b5f9789fe85376
class CompositionRule(Rule, metaclass=ABCMeta): <NEW_LINE> <INDENT> def __init__(self, *rules): <NEW_LINE> <INDENT> for r in rules: <NEW_LINE> <INDENT> if not isinstance(r, Rule): <NEW_LINE> <INDENT> log.error("%s creation. Arguments should be of Rule class or it's derivatives", type(self).__name__) <NEW_LINE> raise Ty...
Abstract Rule that encompasses other Rules.
62598fbe0fa83653e46f50e9
class SvnInfo(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_svn_version(): <NEW_LINE> <INDENT> with TemporaryDirectory() as tempdir: <NEW_LINE> <INDENT> code, data = _run_command(['svn', '--config-dir', tempdir, '--version', '--quiet']) <NEW_LINE> <DEDENT> if code == 0 and data: <NEW_LINE> <INDENT> retu...
Generic svn_info object. No has little knowledge of how to extract information. Use cls.load to instatiate according svn version. Paths are not filesystem encoded.
62598fbef9cc0f698b1c53d2
class List(View): <NEW_LINE> <INDENT> template_name = 'list.html' <NEW_LINE> criterio = None <NEW_LINE> @method_decorator(cache_page(ESCENARIO_CACHE.get('LIST_TIME', 5), cache=CACHE_NAME)) <NEW_LINE> def get(self, request): <NEW_LINE> <INDENT> escimgs = EscImg.objects.order_by(self.criterio) <NEW_LINE> paginator = Pagi...
List Escenarios View
62598fbe7cff6e4e811b5c28
class Type(object): <NEW_LINE> <INDENT> A = 1 <NEW_LINE> NS = 2 <NEW_LINE> CNAME = 5 <NEW_LINE> SOA = 6 <NEW_LINE> WKS = 11 <NEW_LINE> PTR = 12 <NEW_LINE> HINFO = 13 <NEW_LINE> MINFO = 14 <NEW_LINE> MX = 15 <NEW_LINE> TXT = 16 <NEW_LINE> AAAA = 28 <NEW_LINE> ANY = 255 <NEW_LINE> by_string = { "A": A, "NS": NS, "CNAME":...
DNS TYPE and QTYPE Usage: >>> Type.A 1 >>> Type.CNAME 5
62598fbe44b2445a339b6a79
class CourseCategory(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=64, unique=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> verbose_name = "课程大类" <NEW_LINE> verbose_name_plural = "课程大类" <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.name
课程大类, e.g 前端 后端...
62598fbe7d847024c075c5c3
class PrivacyPolicyForm(forms.Form): <NEW_LINE> <INDENT> content = forms.CharField(label="Privacy Policy", widget=forms.Textarea, required=False)
Form to update the privacy policy
62598fbe66673b3332c305d9
class layer(component): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def set_inputTensor(self, inputTensor): <NEW_LINE> <INDENT> self.inputTensor = inputTensor <NEW_LINE> <DEDENT> def set_outputTensor(self, outputTensor): <NEW_LINE> <INDENT> self.outputTensor = outputTensor <NEW_...
It's required that the inputShape & outputShape be ndarray base class for all kinds of layers
62598fbe442bda511e95c665
class MaskPoints(FilterBase): <NEW_LINE> <INDENT> __version__ = 0 <NEW_LINE> filter = Instance(tvtk.MaskPoints, args=(), allow_none=False, record=True) <NEW_LINE> input_info = PipelineInfo(datasets=['any'], attribute_types=['any'], attributes=['any']) <NEW_LINE> output_info = PipelineInfo(datasets=['poly_data'], attrib...
Selectively passes the input points downstream. This can be used to subsample the input points. Note that this does not pass geometry data, this means all grid information is lost.
62598fbe4a966d76dd5ef0da
class SWIMJSONMessageSerialiser(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def to_buffer(swim_message): <NEW_LINE> <INDENT> message_as_dict = { u"message_name" : swim_message.message_name, u"meta_data" : swim_message.meta_data, u"piggyback_data" : swim_message.piggyback_data } <NEW_LINE> return cjson.encode(...
A class capable of serialising / deserialising SWIMMessages using the JSON format
62598fbe167d2b6e312b717d
class RegExpTimeLineLineAnalyzer(RegExpLineAnalyzer): <NEW_LINE> <INDENT> def __init__(self, name, exp, titles=[], startTime=None, endTime=None): <NEW_LINE> <INDENT> RegExpLineAnalyzer.__init__(self, name, exp, idNr=None, titles=titles, doTimelines=True, doFiles=False, startTime=startTime, endTime=endTime)
Class that stores results as timelines, too
62598fbe97e22403b383b10f
class ClassFactRegistry(MutableMapping): <NEW_LINE> <INDENT> def __init__(self, d=None): <NEW_LINE> <INDENT> d = d or {} <NEW_LINE> self.d = defaultdict(frozenset, d) <NEW_LINE> super(ClassFactRegistry, self).__init__() <NEW_LINE> <DEDENT> def __setitem__(self, key, item): <NEW_LINE> <INDENT> self.d[key] = frozenset(it...
Register handlers against classes ``registry[C] = handler`` registers ``handler`` for class ``C``. ``registry[C]`` returns a set of handlers for class ``C``, or any of its superclasses.
62598fbed486a94d0ba2c1d8
class BinomialVerteilung(): <NEW_LINE> <INDENT> def __init__(self, n, p): <NEW_LINE> <INDENT> self.n = n <NEW_LINE> self.p = p <NEW_LINE> <DEDENT> def __prob(self, k): <NEW_LINE> <INDENT> return binom(self.n, k) * self.p ** k * (1 - self.p)**(self.n-k) <NEW_LINE> <DEDENT> def probability(self, k): <NEW_LINE> <INDENT> i...
description of class
62598fbe796e427e5384e99d
class CommonLogFormatParser(LineParser): <NEW_LINE> <INDENT> name = 'Common Log Format' <NEW_LINE> format = None <NEW_LINE> def __init__(self, sink): <NEW_LINE> <INDENT> super(CommonLogFormatParser, self).__init__(sink) <NEW_LINE> self.apachelog_parser = apachelog.parser(self.format) <NEW_LINE> <DEDENT> def parse(self,...
Обработка записей журнала доступа веб-сервера, отвечающих стандарту Common Log Format.
62598fbe5166f23b2e2435e7
class TemplateImage(FabioImage): <NEW_LINE> <INDENT> DESCRIPTION = "Name of the file format" <NEW_LINE> DEFAULT_EXTENSIONS = [] <NEW_LINE> def __init__(self, *arg, **kwargs): <NEW_LINE> <INDENT> FabioImage.__init__(self, *arg, **kwargs) <NEW_LINE> <DEDENT> def _readheader(self, infile): <NEW_LINE> <INDENT> self.header ...
FabIO image class for Images for XXX detector Put some documentation here
62598fbe4527f215b58ea0d6
class UserViewSet(viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> queryset = User.objects.all() <NEW_LINE> serializer_class = UserSerializer
This viewset automatically provides 'list' and 'detail' actions.
62598fbe56ac1b37e63023f6
class TestFindStatic(CollectionTestCase, TestDefaults): <NEW_LINE> <INDENT> def _get_file(self, filepath): <NEW_LINE> <INDENT> out = six.StringIO() <NEW_LINE> call_command('findstatic', filepath, all=False, verbosity=0, stdout=out) <NEW_LINE> out.seek(0) <NEW_LINE> lines = [l.strip() for l in out.readlines()] <NEW_LINE...
Test ``findstatic`` management command.
62598fbe9f2886367281897f
class NSNitroNserrCaconfCnflHitparamsInvlslctr(NSNitroCaconfErrors): <NEW_LINE> <INDENT> pass
Nitro error code 490 Conflicting arguments, hitParams and invalSelector
62598fbe3d592f4c4edbb0c6
class CameraSample(object): <NEW_LINE> <INDENT> def __init__(self, camera_to_world_pose, camera_intr, radius, elev, az, roll, tx=0, ty=0, focal=0, cx=0, cy=0): <NEW_LINE> <INDENT> self.camera_to_world_pose = camera_to_world_pose <NEW_LINE> self.camera_intr = camera_intr <NEW_LINE> self.radius = radius <NEW_LINE> self.e...
Struct to encapsulate the results of sampling a camera and its pose. Attributes ---------- object_to_camera_pose : autolab_core.RigidTransform A transfrom from the object frame to the camera frame. camera_intr : perception.CameraIntrinsics The camera's intrinsics. radius : float The distance from the cente...
62598fbe4c3428357761a4c4
class Or(ParseExpression): <NEW_LINE> <INDENT> def __init__( self, exprs, savelist = False ): <NEW_LINE> <INDENT> super(Or,self).__init__(exprs, savelist) <NEW_LINE> self.mayReturnEmpty = False <NEW_LINE> for e in self.exprs: <NEW_LINE> <INDENT> if e.mayReturnEmpty: <NEW_LINE> <INDENT> self.mayReturnEmpty = True <NEW_L...
Requires that at least one C{ParseExpression} is found. If two expressions match, the expression that matches the longest string will be used. May be constructed using the C{'^'} operator.
62598fbe7d847024c075c5c5
class OxSignal(): <NEW_LINE> <INDENT> def __init__(self, controller, sm_id, pin): <NEW_LINE> <INDENT> print("init") <NEW_LINE> controller.register(self) <NEW_LINE> <DEDENT> def notify(self, observable, **data): <NEW_LINE> <INDENT> print("received the following data: ", data)
Generats OX signal.
62598fbe656771135c489878
class Pandaseq(AutotoolsPackage): <NEW_LINE> <INDENT> homepage = "https://github.com/neufeld/pandaseq" <NEW_LINE> url = "https://github.com/neufeld/pandaseq/archive/v2.11.tar.gz" <NEW_LINE> version('2.11', sha256='6e3e35d88c95f57d612d559e093656404c1d48c341a8baa6bef7bb0f09fc8f82') <NEW_LINE> version('2.10', sha256=...
PANDASEQ is a program to align Illumina reads, optionally with PCR primers embedded in the sequence, and reconstruct an overlapping sequence.
62598fbe63b5f9789fe8537a
class LineStyle2(LineStyle): <NEW_LINE> <INDENT> @check_args <NEW_LINE> def set_keys(self, color=None, width: int=None, _type: str=None, shadow_blur: int=None, shadow_color: str=None, shadow_offset_x: int=None, shadow_offset_y: int=None, opacity: int=None): <NEW_LINE> <INDENT> self.color = color <NEW_LINE> self.width =...
This Class Is For SplitLine
62598fbe0fa83653e46f50ed
class JMeterInfoWidget(AbstractInfoWidget, AggregateResultListener): <NEW_LINE> <INDENT> def __init__(self, jmeter): <NEW_LINE> <INDENT> AbstractInfoWidget.__init__(self) <NEW_LINE> self.krutilka = ConsoleScreen.krutilka() <NEW_LINE> self.jmeter = jmeter <NEW_LINE> self.active_threads = 0 <NEW_LINE> self.RPS = 0 <NEW_L...
Right panel widget with JMeter test info
62598fbe26068e7796d4cb65
class _SimplugContextOnly(SimplugContext): <NEW_LINE> <INDENT> pass
The context manager with only given plugins enabled
62598fbe3617ad0b5ee06350
@dataclass <NEW_LINE> class TpChaveNfeRps: <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> name = "tpChaveNFeRPS" <NEW_LINE> <DEDENT> chave_nfe: Optional[TpChaveNfe] = field( default=None, metadata={ "name": "ChaveNFe", "type": "Element", "namespace": "", } ) <NEW_LINE> chave_rps: Optional[TpChaveRps] = field( defa...
Tipo que representa a chave de uma NFSe e a Chave do RPS que a mesma substitui. :ivar chave_nfe: Chave da NFSe gerada. :ivar chave_rps: Chave do RPS substituído.
62598fbe44b2445a339b6a7b
class QuestionnaireItemOption(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = "QuestionnaireItemOption" <NEW_LINE> def __init__(self, jsondict=None, strict=True): <NEW_LINE> <INDENT> self.valueCoding = None <NEW_LINE> self.valueDate = None <NEW_LINE> self.valueInteger = None <NEW_LINE> self.valueS...
Permitted answer. One of the permitted answers for a "choice" or "open-choice" question.
62598fbed7e4931a7ef3c29d
class TestLumpedFissionProduct(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.fpd = lumpedFissionProduct.FissionProductDefinitionFile( io.StringIO(LFP_TEXT) ) <NEW_LINE> <DEDENT> def test_setGasRemovedFrac(self): <NEW_LINE> <INDENT> lfp = self.fpd.createSingleLFPFromFile("LFP38") <NEW...
Test of the lumped fission product yields
62598fbe091ae35668704e2f
class Classifier(BaseEstimator, ClassifierMixin): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> def __init__(self, features=None): <NEW_LINE> <INDENT> self.features = features <NEW_LINE> self.classes_ = None <NEW_LINE> <DEDENT> def _get_train_features(self, X, allow_nans=False): <NEW_LINE> <INDENT> return _get...
Interface to train different **classification** model from different machine learning libraries, like **Sklearn, TMVA, XGBoost**... :param features: features used to train model :type features: list[str] or None .. note:: * Classes must be from 0 to n_classes-1!!! * if `features` aren't set (**None**), then ...
62598fbeff9c53063f51a858
class Model(Default): <NEW_LINE> <INDENT> def build(self, dct): <NEW_LINE> <INDENT> self.build_default(dct) <NEW_LINE> return dct <NEW_LINE> <DEDENT> def parse(self, dct): <NEW_LINE> <INDENT> self.parse_default(dct) <NEW_LINE> return self <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> attrs = u", ".join( [...
A model is an object can be serialized and sent over the network, but that can be saved into the SQL database used by the server.
62598fbe56ac1b37e63023f8
class UserPermissions(DatabaseModel): <NEW_LINE> <INDENT> __tablename__ = "user_permissions" <NEW_LINE> permission_id: int = Column(BigInteger, primary_key=True) <NEW_LINE> user_id: int = Column(BigInteger, ForeignKey("users.user_id"), nullable=False) <NEW_LINE> group_id: int = Column(BigInteger, ForeignKey("groups.gro...
Model for a user's permissions in a group (or all groups).
62598fbea8370b77170f05eb
class RunType(enum.Enum): <NEW_LINE> <INDENT> dry_run = 0 <NEW_LINE> interim = 1 <NEW_LINE> final = 2
Possible run-time options.
62598fbe7d847024c075c5c7
class BidsTsvFile(BidsFile): <NEW_LINE> <INDENT> def __init__(self, file_path, set_contents=False): <NEW_LINE> <INDENT> super().__init__(file_path) <NEW_LINE> self.contents = None <NEW_LINE> if set_contents: <NEW_LINE> <INDENT> self.set_contents() <NEW_LINE> <DEDENT> <DEDENT> def clear_contents(self): <NEW_LINE> <INDEN...
Represents a BIDS TSV file, possibly without its contents.
62598fbe23849d37ff8512be
class GridCommand(BaseCommand, SQLFilter, FetchedRowTracker): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> BaseCommand.__init__(self, **kwargs) <NEW_LINE> SQLFilter.__init__(self, **kwargs) <NEW_LINE> FetchedRowTracker.__init__(self, **kwargs) <NEW_LINE> self.conn_id = kwargs['conn_id'] if 'con...
class GridCommand(object) It is a base class for different object type used by data grid. A different object type must implement this to expose abstract methods. Class-level Methods: ----------- ------- * get_primary_keys() - Derived class can implement there own logic to get the primary keys. * save() -...
62598fbe56ac1b37e63023f9
class UpdateInstanceView(UpdateView): <NEW_LINE> <INDENT> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super(UpdateInstanceView, self).get_context_data(**kwargs) <NEW_LINE> context['extmodules'] = MODULES <NEW_LINE> return context <NEW_LINE> <DEDENT> def form_valid(self, form): <NEW_LINE> <INDENT...
Todo: update providers and banners classes to update views to use base UpdateInstanceView
62598fbe167d2b6e312b7181
class ElementDefinitionSlicingDiscriminator(element.Element): <NEW_LINE> <INDENT> resource_type = "ElementDefinitionSlicingDiscriminator" <NEW_LINE> def __init__(self, jsondict=None, strict=True): <NEW_LINE> <INDENT> self.path = None <NEW_LINE> self.type = None <NEW_LINE> super(ElementDefinitionSlicingDiscriminator, se...
Element values that are used to distinguish the slices. Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the r...
62598fbe97e22403b383b113
class mean: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self._dict[key] <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE> <INDENT> raise meanError("'__getitem__' failed; you must store you...
mean: Top-level class that represents a mean function Specific mean functions need to inherit from this class and implement the placeholder functions defined here
62598fbead47b63b2c5a7a60
class VlanCfg(A10BaseClass): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.ERROR_MSG = "" <NEW_LINE> self.b_key = "vlan-cfg" <NEW_LINE> self.DeviceProxy = "" <NEW_LINE> self.vlan = "" <NEW_LINE> self.timeout = "" <NEW_LINE> self.priority_cost = "" <NEW_LINE> for keys, value in kwargs.items(...
This class does not support CRUD Operations please use parent. :param vlan: {"description": "VLAN tracking (VLAN id)", "minimum": 2, "type": "number", "maximum": 4094, "format": "number"} :param timeout: {"minimum": 2, "type": "number", "maximum": 600, "format": "number"} :param priority_cost: {"description": "The amo...
62598fbe656771135c48987a
@resourceTypeNameInModule("aptrow", aptrowModule) <NEW_LINE> class AptrowResource(Resource): <NEW_LINE> <INDENT> resourceParams = [] <NEW_LINE> def init(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def heading(self): <NEW_LINE> <INDENT> return "Aptrow" <NEW_LINE> <DEDENT> def html(self, view): <NEW_LINE> <INDENT...
A resource representing the Aptrow application itself
62598fbe55399d3f05626720
class HomeAssistantAuthError(HomeAssistantAPIError): <NEW_LINE> <INDENT> pass
Home Assistant Auth API exception.
62598fbe283ffb24f3cf3a8e
class CustomLossModel(Model): <NEW_LINE> <INDENT> def _build_layers_v2(self, input_dict, num_outputs, options): <NEW_LINE> <INDENT> self.obs_in = input_dict["obs"] <NEW_LINE> with tf.variable_scope("shared", reuse=tf.AUTO_REUSE): <NEW_LINE> <INDENT> self.fcnet = FullyConnectedNetwork(input_dict, self.obs_space, self.ac...
Custom model that adds an imitation loss on top of the policy loss.
62598fbe7d43ff248742750a
class NumericalConstant(Token): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return "NumericalConstant(line={!r},col={!r},prev_white={!r},value={!r})".format( self.line, self.col, self.prev_white, self.token)
Represents a 'preprocessing number'. These cannot necessarily be evaluated by the preprocessor (and may not be valid syntax).
62598fbe099cdd3c636754e8
class Extension(object): <NEW_LINE> <INDENT> dist_name = None <NEW_LINE> ext_name = None <NEW_LINE> version = None <NEW_LINE> def get_default_config(self): <NEW_LINE> <INDENT> raise NotImplementedError( 'Add at least a config section with "enabled = true"') <NEW_LINE> <DEDENT> def get_config_schema(self): <NEW_LINE> <I...
Base class for Mopidy extensions
62598fbef9cc0f698b1c53d5
class TestBranchMethodStandardAdd(BaseTest): <NEW_LINE> <INDENT> def test_subprocess_called_correctly(self): <NEW_LINE> <INDENT> fix = BranchMethodStandardAdd('1.nc', '/a') <NEW_LINE> fix.apply_fix() <NEW_LINE> self.mock_subprocess.assert_called_once_with( "ncatted -h -a branch_method,global,o,c,'standard' " "/a/1.nc",...
Test BranchMethodStandardAdd
62598fbed486a94d0ba2c1dc
class LogisticModel(object): <NEW_LINE> <INDENT> def build_model(self, model_input, vocab_size, l2_penalty=None, **unused_params): <NEW_LINE> <INDENT> logit = fluid.layers.fc( input = model_input, size = vocab_size, act = None, name = 'logits_clf', param_attr = fluid.ParamAttr(name = 'logistic.weights', initializer = f...
Logistic model with L2 regularization.
62598fbe796e427e5384e9a1
class temperature(object): <NEW_LINE> <INDENT> legal_units = [ "F", "C", "K" ] <NEW_LINE> def __init__( self, value, units="C" ): <NEW_LINE> <INDENT> if not units.upper() in temperature.legal_units: <NEW_LINE> <INDENT> raise UnitsError("unrecognized temperature unit: '"+units+"'") <NEW_LINE> <DEDENT> self._units = unit...
A class representing a temperature value.
62598fbeaad79263cf42e9e1
class BilingualConverter(SubtitleConverter): <NEW_LINE> <INDENT> def __init__(self, input, output, output2, rawOutput=None,rawOutput2=None, language=None,language2=None, meta=None, encoding=None, alwaysSplit=False): <NEW_LINE> <INDENT> SubtitleConverter.__init__(self, input, output, rawOutput, language, meta, encoding,...
Special converter for handling bilingual subtitles (with the first line of each block in one language, and the second line in another).
62598fbe3d592f4c4edbb0ca
class SimpleCache(BaseCache): <NEW_LINE> <INDENT> def __init__(self, threshold=500, default_timeout=300, **kwargs): <NEW_LINE> <INDENT> super(SimpleCache, self).__init__(default_timeout, **kwargs) <NEW_LINE> self._cache = {} <NEW_LINE> self.threshold = threshold <NEW_LINE> <DEDENT> def _prune(self): <NEW_LINE> <INDENT>...
Simply memory cache for single process environments. This class exists mainly for a development server and is not 100% thread safe. :param threshold: the maximum number of items the cache stores before it starts evicting keys.
62598fbe1f5feb6acb162e2c
class SimpleProduct(BaseProduct): <NEW_LINE> <INDENT> _validation = { 'product_id': {'required': True}, 'capacity': {'constant': True}, } <NEW_LINE> _attribute_map = { 'product_id': {'key': 'base_product_id', 'type': 'str'}, 'description': {'key': 'base_product_description', 'type': 'str'}, 'max_product_display_name': ...
The product documentation. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :param product_id: Required. Unique identifier representing a specific product for a given latitude & longitude. For example, uberX ...
62598fbea219f33f346c6a13
class FcDelegationLock(NetAppObject): <NEW_LINE> <INDENT> _mode = None <NEW_LINE> @property <NEW_LINE> def mode(self): <NEW_LINE> <INDENT> return self._mode <NEW_LINE> <DEDENT> @mode.setter <NEW_LINE> def mode(self, val): <NEW_LINE> <INDENT> if val != None: <NEW_LINE> <INDENT> self.validate('mode', val) <NEW_LINE> <DED...
Information about FlexCache delegations
62598fbe656771135c48987c
class RenKeyWin(QDialog): <NEW_LINE> <INDENT> def __init__(self, style, parent=None): <NEW_LINE> <INDENT> super().__init__(parent) <NEW_LINE> self.setWindowTitle('Rename RSA keys — KRIS') <NEW_LINE> main_lay = QGridLayout() <NEW_LINE> self.setLayout(main_lay) <NEW_LINE> main_lay.addWidget(QLabel("Keys' name :"), 0, 0) ...
Class which define a window which allow to rename RSA keys.
62598fbef9cc0f698b1c53d6
class CategoryListSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = JobCategory <NEW_LINE> fields = ('id','o_net_soc_code','category_name','description')
serializer for to Category
62598fbe956e5f7376df5785
class ConfuMatrix(): <NEW_LINE> <INDENT> def __init__(self, a=0, b=0, c=0, d=0): <NEW_LINE> <INDENT> self.a = a <NEW_LINE> self.b = b <NEW_LINE> self.c = c <NEW_LINE> self.d = d <NEW_LINE> <DEDENT> def accuracy(self): <NEW_LINE> <INDENT> if not self.a + self.b + self.c + self.d: <NEW_LINE> <INDENT> return None <NEW_LIN...
Calculates confusion matrix. Further information: http://en.wikipedia.org/wiki/Binary_classification http://en.wikipedia.org/wiki/Sensitivity_and_specificity
62598fbed7e4931a7ef3c2a1
class Node: <NEW_LINE> <INDENT> def __init__(self, state, parent=None, action=None, path_cost=0): <NEW_LINE> <INDENT> update(self, state=state, parent=parent, action=action, path_cost=path_cost, depth=0) <NEW_LINE> global currentstate <NEW_LINE> currentstate = state <NEW_LINE> if parent: <NEW_LINE> <INDENT> self.depth ...
A node in a search tree. Contains a pointer to the parent (the node that this is a successor of) and to the actual state for this node. Note that if a state is arrived at by two paths, then there are two nodes with the same state. Also includes the action that got us to this state, and the total path_cost (also known ...
62598fbe21bff66bcd722e78
class SeamlessInlineFormRendererMixIn(object): <NEW_LINE> <INDENT> def render_fields(self): <NEW_LINE> <INDENT> rendered_fields = [] <NEW_LINE> for field in self.form: <NEW_LINE> <INDENT> if isinstance(field.field, InlineFormFieldMixIn): <NEW_LINE> <INDENT> fields = [sub_field for sub_field in field] <NEW_LINE> <DEDENT...
Render fields from InlineFormFields as if the fields were part of the parent form. TODO: How to deal with non-field-errors of the inline form?
62598fbe9f28863672818982
@python_2_unicode_compatible <NEW_LINE> class UserProfile(models.Model): <NEW_LINE> <INDENT> user = models.OneToOneField(User, verbose_name=_("user"), related_name="profile") <NEW_LINE> timezone = models.CharField(_("timezone"), max_length=64, choices=get_timezone_choices(), default=settings.TIME_ZONE) <NEW_LINE> langu...
Extends native User model with one-to-one relation.
62598fbe8a349b6b4368644b
class IHCSensor(IHCDevice, Entity): <NEW_LINE> <INDENT> def __init__(self, ihccontroller, name, ihcid, sensortype, unit, ihcname, ihcnote, ihcposition): <NEW_LINE> <INDENT> IHCDevice.__init__(self, ihccontroller, name, ihcid, ihcname, ihcnote, ihcposition) <NEW_LINE> self._state = None <NEW_LINE> self._icon = None <NEW...
Implementation of the IHC sensor.
62598fbe56ac1b37e63023fc
class BookFactory(Factory): <NEW_LINE> <INDENT> def create_library_item(self, call_number, title, num_copies) -> Book: <NEW_LINE> <INDENT> author = input("Enter Author Name: ") <NEW_LINE> return Book(call_number, title, num_copies, author)
Factory that creates a Book.
62598fbed268445f26639c8b
class SchedulerPluginLogsSchema(BaseSchema): <NEW_LINE> <INDENT> files = fields.Nested( SchedulerPluginFileSchema, required=True, many=True, metadata={"update_policy": UpdatePolicy.UNSUPPORTED, "update_key": "FilePath"}, ) <NEW_LINE> @post_load <NEW_LINE> def make_resource(self, data, **kwargs): <NEW_LINE> <INDENT> ret...
Represent the schema of the Scheduler Plugin Logs.
62598fbe5fc7496912d48382
class Consumer(Base): <NEW_LINE> <INDENT> __tablename__ = 'consumer' <NEW_LINE> __table_args__ = {"schema": "proxy"} <NEW_LINE> id = Column(Integer, Sequence("sqlachemy_sequence"), primary_key=True) <NEW_LINE> name = Column(String) <NEW_LINE> unite = Column(String) <NEW_LINE> metaname = Column(String) <NEW_LINE> metava...
Model Consumer
62598fbf60cbc95b0636454b
class UserSite(_AdminSite): <NEW_LINE> <INDENT> site_title = _('IDoneIt') <NEW_LINE> site_header = _('IDoneIt workspace') <NEW_LINE> index_title = _('Workspace') <NEW_LINE> login_form = UserAdminAuthenticationForm <NEW_LINE> login_template = 'admin/registration/login.html' <NEW_LINE> def has_permission(self, request): ...
Переопределение сайта администратора для использования в качестве кабинета пользователя.
62598fbf099cdd3c636754ea
class EncCom: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.k1: bytes = None <NEW_LINE> self.k2: bytes = None <NEW_LINE> self.u: bytes = None <NEW_LINE> self.v: bytes = None <NEW_LINE> <DEDENT> def decode(self, decoder: Fernet) -> PlaintextSVR: <NEW_LINE> <INDENT> k1 = decoder.decrypt(self.k1) <NEW_L...
EncCom represents one encrypted commitment to a SVR tuple (u, v) and the encrypted encryption keys used to make the commitment.
62598fbfa05bb46b3848aa7b
class CommonTests(ut.TestCase): <NEW_LINE> <INDENT> system = espressomd.System(box_l=[1.0, 1.0, 1.0]) <NEW_LINE> system.box_l = 3 * [npart] <NEW_LINE> system.cell_system.skin = 0.4 <NEW_LINE> system.time_step = 0.01 <NEW_LINE> written_pos = None <NEW_LINE> written_bonds = None <NEW_LINE> written_atoms = None <NEW_LINE>...
Class that holds common test methods.
62598fbf92d797404e388c6a
class TestApplicationApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = ApplicationApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_get_info(self): <NEW_LINE> <INDENT> pass
ApplicationApi unit test stubs
62598fbf3d592f4c4edbb0cc
class Line: <NEW_LINE> <INDENT> def __init__(self,a,b,vert=False,x=0): <NEW_LINE> <INDENT> self.a = a <NEW_LINE> self.b = b <NEW_LINE> self.vert = vert <NEW_LINE> self.x = x <NEW_LINE> <DEDENT> def is_point_up(self,p): <NEW_LINE> <INDENT> if self.vert: <NEW_LINE> <INDENT> return p.x == self.x <NEW_LINE> <DEDENT> return...
Represents a line : y = ax+b
62598fbf3d592f4c4edbb0cd
class UserProfile(AbstractBaseUser, PermissionsMixin): <NEW_LINE> <INDENT> email = models.EmailField(max_length=255, unique=True) <NEW_LINE> name = models.CharField(max_length=255) <NEW_LINE> is_active = models.BooleanField(default=True) <NEW_LINE> is_staff = models.BooleanField(default=False) <NEW_LINE> objects = User...
Represents a user profile inside our system
62598fbf5166f23b2e2435ef