code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class ConcatPreprocessor(Preprocessor): <NEW_LINE> <INDENT> def __init__(self, *preprocessors): <NEW_LINE> <INDENT> super(ConcatPreprocessor, self).__init__() <NEW_LINE> for pre in preprocessors: <NEW_LINE> <INDENT> self.preprocessors.extend(pre.preprocessors)
Concatenate multiple preprocessors into a single one
62598f9be5267d203ee6b6a5
class Rectangle: <NEW_LINE> <INDENT> number_of_instances = 0 <NEW_LINE> print_symbol = "#" <NEW_LINE> def __init__(self, width=0, height=0): <NEW_LINE> <INDENT> self.width = width <NEW_LINE> self.height = height <NEW_LINE> Rectangle.number_of_instances += 1 <NEW_LINE> <DEDENT> @property <NEW_LINE> def width(self): <NEW...
class Rectagle
62598f9bd7e4931a7ef3be2f
class AlignmentCoder(TargetCoder): <NEW_LINE> <INDENT> def __init__(self, target_normalizer, num_targets): <NEW_LINE> <INDENT> self.num_targets = num_targets <NEW_LINE> super(AlignmentCoder, self).__init__(target_normalizer) <NEW_LINE> <DEDENT> def create_alphabet(self): <NEW_LINE> <INDENT> alphabet = [str(target) for ...
a coder for state alignments
62598f9b8e71fb1e983bb84c
class Student: <NEW_LINE> <INDENT> def hello(self): <NEW_LINE> <INDENT> print("Hello!")
Student class.
62598f9bd99f1b3c44d05447
class MonotoneValuation(Valuation): <NEW_LINE> <INDENT> def __init__(self, map_bundle_to_value:Dict[Bundle,float]): <NEW_LINE> <INDENT> self.map_bundle_to_value = {frozenset(bundle):value for bundle,value in map_bundle_to_value.items()} <NEW_LINE> self.map_bundle_to_value[frozenset()] = 0 <NEW_LINE> desired_items = ma...
Represents a general monotone valuation function. >>> a = MonotoneValuation({"x": 1, "y": 2, "xy": 4}) >>> a Monotone valuation on ['x', 'y']. >>> a.value("") 0 >>> a.value({"x"}) 1 >>> a.value("yx") 4 >>> a.value({"y","x"}) 4 >>> a.is_EF({"x"}, [{"y"}]) False >>> a.is_EF1({"x"}, [{"y"}]) True >>> a.is_EFx({"x"}, [{"y...
62598f9b4e4d5625663721ba
class HealthCheckGateway(A10BaseClass): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.ERROR_MSG = "" <NEW_LINE> self.required = [ "ipv4_addr","ipv6_addr"] <NEW_LINE> self.b_key = "health-check-gateway" <NEW_LINE> self.a10_url="/axapi/v3/cgnv6/lsn/health-check-gateway/{ipv4_addr}+{ipv6_addr}...
Class Description:: Configure LSN health-check gateway. Class health-check-gateway supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param ipv4_addr: {"optional": false, "type": "string", "description": "Specify IPv4 Gateway", "format": "ipv4-addre...
62598f9b32920d7e50bc5ded
class AllowedChatGroups(LoginRequiredMixin, ListView): <NEW_LINE> <INDENT> model = ChatGroup <NEW_LINE> template_name = 'chat/chat_rooms.html' <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> qs = super().get_queryset() <NEW_LINE> return qs.filter(allowed_users=self.request.user) <NEW_LINE> <DEDENT> def get_conte...
Display possible chat groups for the logged user
62598f9b442bda511e95c1fd
class RosEnv(gym.Env, Serializable): <NEW_LINE> <INDENT> def __init__(self, simulated=False): <NEW_LINE> <INDENT> Serializable.quick_init(self, locals()) <NEW_LINE> np.random.RandomState(get_seed()) <NEW_LINE> self._initial_setup() <NEW_LINE> <DEDENT> def initialize(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> d...
Superclass for all ros environment
62598f9b3539df3088ecc04d
class NodeSync(JsonObject): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.dpid = kwargs.get('dpid', None) <NEW_LINE> self.links = kwargs.get('links', None)
NodeSync() A python representation of the NodeSync object
62598f9bd268445f26639a4f
class BooleanField(FieldInfo[bool]): <NEW_LINE> <INDENT> TRUE_VALUES = ['true', 'yes', 'y', 't', 'on'] <NEW_LINE> FALSE_VALUES = ['false', 'no', 'n', 'f', 'off'] <NEW_LINE> def __init__(self, field_name): <NEW_LINE> <INDENT> super(BooleanField, self).__init__(field_name) <NEW_LINE> <DEDENT> def interpret_value(self, va...
A value interpreter for boolean filter operands. User input interpreter for filter operand values that converts string representations of boolean values to actual boolean values.
62598f9bf7d966606f747d7f
class Player: <NEW_LINE> <INDENT> def blast(self, enemy): <NEW_LINE> <INDENT> print('Gracz razi wroga.\n') <NEW_LINE> occuracy = random.randint(1, 10) <NEW_LINE> if occuracy >= 5: <NEW_LINE> <INDENT> enemy.die() <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> enemy.win()
Gracz w grze strzelance.
62598f9b7047854f4633f179
class SettingsFeatureCheckerTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(SettingsFeatureCheckerTests, self).setUp() <NEW_LINE> self.checker = SettingsFeatureChecker() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> super(SettingsFeatureCheckerTests, self).tearDown() <NEW_L...
Unit tests for djblets.features.checkers.SettingsFeatureChecker.
62598f9b76e4537e8c3ef34d
class DescribeTargetsResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Listeners = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("Listeners") is not None: <NEW_LINE> <INDENT> self.Listeners = [] <NEW_LI...
DescribeTargets返回参数结构体
62598f9bbaa26c4b54d4f04a
class Command(BaseCommand): <NEW_LINE> <INDENT> args = '<course_id course_id ...>' <NEW_LINE> help = 'Generates and stores course overview for one or more courses.' <NEW_LINE> def add_arguments(self, parser): <NEW_LINE> <INDENT> parser.add_argument( '--all', action='store_true', dest='all', default=False, help='Generat...
Example usage: $ ./manage.py lms generate_course_overview --all --settings=devstack $ ./manage.py lms generate_course_overview 'edX/DemoX/Demo_Course' --settings=devstack
62598f9b8da39b475be02f7d
class Localization(hlib.database.DBObject): <NEW_LINE> <INDENT> def __init__(self, languages = None): <NEW_LINE> <INDENT> hlib.database.DBObject.__init__(self) <NEW_LINE> languages = languages or [] <NEW_LINE> self.languages = hlib.database.StringMapping() <NEW_LINE> for l in languages: <NEW_LINE> <INDENT> self.languag...
Provides methods for translating tokens to into several languages. Instantiate with Localization(languages=[lang1, lang2, ...]) where 'languages' is list of strings, defining languages to be loaded and enabled.
62598f9b0a50d4780f705170
class OutputSystem: <NEW_LINE> <INDENT> def __init__(self, address, output): <NEW_LINE> <INDENT> self._address = address <NEW_LINE> self._output = output <NEW_LINE> <DEDENT> def set_level(self, level): <NEW_LINE> <INDENT> self._output.set_level(self._address, level)
A system which sends its level out on an output address
62598f9b16aa5153ce400296
class Logout(LowDataAdapter): <NEW_LINE> <INDENT> _cp_config = dict(LowDataAdapter._cp_config, **{ 'tools.salt_auth.on': True, 'tools.lowdata_fmt.on': False, }) <NEW_LINE> def POST(self): <NEW_LINE> <INDENT> cherrypy.lib.sessions.expire() <NEW_LINE> cherrypy.session.regenerate() <NEW_LINE> return {'return': "Your token...
Class to remove or invalidate sessions
62598f9b2ae34c7f260aae79
class TypeInfoTuple(tuple): <NEW_LINE> <INDENT> def size(self): <NEW_LINE> <INDENT> return Variable(len(self), '{0}.size'.format(self.name))
Type information of input/gradient tuples. It is a sub-class of tuple containing :class:`TypeInfo`. The i-th element of this object contains type information of the i-th input/gradient data. As each element is :class:`Expr`, you can easily check its validity.
62598f9b67a9b606de545d61
class Email(models.Model): <NEW_LINE> <INDENT> email = models.EmailField() <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.email
Database models representing destination email addresses.
62598f9b0fa83653e46f4c82
class Grade(EmbeddedDocument): <NEW_LINE> <INDENT> name = StringField(required=True) <NEW_LINE> score = FloatField(required=True)
成绩
62598f9b10dbd63aa1c7094d
class Robot: <NEW_LINE> <INDENT> client_socket=None <NEW_LINE> def __init__(self, hwaddress="00:19:5D:EE:24:1C", channel=1): <NEW_LINE> <INDENT> self.client_socket=bluetooth.BluetoothSocket( bluetooth.RFCOMM ) <NEW_LINE> self.client_socket.connect((hwaddress,channel)) <NEW_LINE> self.client_socket.setblocking(False) <N...
Data from robot: dest,dist,collision[:dest,dist,collision[:...]]; Data to robot: dest,dist,contournement[:dest,dist,contournement[:...]]; deg is actually a value from 0 to 3 for 90,180,270,360. collision is 1 if there is an object in front at that moment, 0 otherwise. contournement is 0,l or r, for the robot to go a...
62598f9b2ae34c7f260aae7a
class PostDevelopCommand(develop): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> develop.run(self) <NEW_LINE> print('Running post install') <NEW_LINE> call(["/bin/bash", post_script])
Post-installation for development mode.
62598f9b99cbb53fe6830c6a
class WaveManager: <NEW_LINE> <INDENT> def __init__(self, enemies, bow): <NEW_LINE> <INDENT> self.enemies = enemies <NEW_LINE> self.arrows = [] <NEW_LINE> self.bow = bow <NEW_LINE> self.failed_shots = 0 <NEW_LINE> self.ticks = 1 <NEW_LINE> self.tot_dist = 0 <NEW_LINE> self.avg_dist = -1 <NEW_LINE> self.missed = 0 <NEW_...
Represents a wave of enemies
62598f9b097d151d1a2c0dbe
class ReviewForm(forms.ModelForm): <NEW_LINE> <INDENT> captcha = ReCaptchaField() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Reviews <NEW_LINE> fields = ('name', 'email', 'text', 'captcha') <NEW_LINE> widgets = { 'name': forms.TextInput(attrs={'class': 'form-control border'}), 'email': forms.EmailInput(attrs={'...
Форма отзывов
62598f9b24f1403a9268577e
class Adagrad(Optimizer): <NEW_LINE> <INDENT> def __init__(self, lr=0.01, epsilon=None, decay=0., **kwargs): <NEW_LINE> <INDENT> super(Adagrad, self).__init__(**kwargs) <NEW_LINE> with K.name_scope(self.__class__.__name__): <NEW_LINE> <INDENT> self.lr = K.variable(lr, name='lr') <NEW_LINE> self.decay = K.variable(decay...
Adagrad optimizer. Adagrad is an optimizer with parameter-specific learning rates, which are adapted relative to how frequently a parameter gets updated during training. The more updates a parameter receives, the smaller the learning rate. It is recommended to leave the parameters of this optimizer at their default v...
62598f9b60cbc95b063640e5
class RIR(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=50, unique=True) <NEW_LINE> slug = models.SlugField(unique=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> ordering = ['name'] <NEW_LINE> verbose_name = 'RIR' <NEW_LINE> verbose_name_plural = 'RIRs' <NEW_LINE> <DEDENT> def __unicode__(self...
A Regional Internet Registry (RIR) is responsible for the allocation of a large portion of the global IP address space. This can be an organization like ARIN or RIPE, or a governing standard such as RFC 1918.
62598f9b3539df3088ecc04f
class TrafficEnd(Enum): <NEW_LINE> <INDENT> source = 1 <NEW_LINE> destination = 2 <NEW_LINE> both = 3
Traffic end types. :todo: move to trafficgenerator.
62598f9b56b00c62f0fb264a
class TagNamespace(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=128, unique=True) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def add(cls, namespace): <NEW_LINE> <INDENT> namespace, created = TagNamespace.objects.get_or_crea...
Namespace for Tags
62598f9bb7558d58954633c8
class Timer: <NEW_LINE> <INDENT> def __init__(self, interval, callback): <NEW_LINE> <INDENT> self.interval = interval <NEW_LINE> self.callback = callback <NEW_LINE> self.loop = asyncio.get_event_loop() <NEW_LINE> self.is_active = False <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> self.is_active = True <NEW_...
Scheduling periodic callbacks
62598f9b21bff66bcd7229fe
@register("ap_minMaxFlux") <NEW_LINE> class MinMaxDiaPsFlux(DiaObjectCalculationPlugin): <NEW_LINE> <INDENT> ConfigClass = MinMaxDiaPsFluxConfig <NEW_LINE> outputCols = ["PSFluxMin", "PSFluxMax"] <NEW_LINE> plugType = "multi" <NEW_LINE> needsFilter = True <NEW_LINE> @classmethod <NEW_LINE> def getExecutionOrder(cls): <...
Compute min/max of diaSource fluxes.
62598f9bf7d966606f747d82
class TestingConfig(Config): <NEW_LINE> <INDENT> DEBUG = True <NEW_LINE> TESTING = True <NEW_LINE> SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(basedir, "test.db") <NEW_LINE> SQLALCHEMY_TRACK_MODIFICATIONS = False <NEW_LINE> SECRET_KEY = 'sgykhzifsxaqca:343f51064cb2dbcd7bb9b08d13b340396e5615570fdb6b29b3...
Set the configurations for the testing environment.
62598f9bdd821e528d6d8cce
class JobFieldModel(models.Model): <NEW_LINE> <INDENT> job_form = models.ForeignKey(JobFormModel) <NEW_LINE> name = models.CharField(max_length = 100) <NEW_LINE> type = models.CharField(max_length = 100, choices= type_mapping_list) <NEW_LINE> required = models.BooleanField(default = True) <NEW_LINE> help_text = models....
Model for Job form fields for a specific Job board.
62598f9b30bbd72246469843
class MySQLExecuteError(MySQLError): <NEW_LINE> <INDENT> pass
Error when try to execute SQL statement
62598f9bcc0a2c111447ada6
class StderrMessageHandler(BaseRunningMessageHandler): <NEW_LINE> <INDENT> def handle(self, message, task, job): <NEW_LINE> <INDENT> self._save_message_to_file('stderr', message['log'], task, mode='ab')
Handler for stderr message. It will save the stderr to the stderr file in the task directory. The log message properties: param status: 'running' param type: 'stderr' param log: stderr message type log: string param time: Time stamp of the message type time: float example: {'status': 'running', 'type': 'stderr', 'lo...
62598f9b45492302aabfc272
class CreateTripView(CreateView): <NEW_LINE> <INDENT> model = Trip <NEW_LINE> form_class = TripForm <NEW_LINE> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> self.car = get_object_or_404(Car, slug=self.kwargs.get('car_slug', None), owner=self.request.user) <NEW_LINE> self.initial['car'] = self.car <NEW_LI...
Override CreateView to create new trip objects.
62598f9b38b623060ffa8e2a
class Meta: <NEW_LINE> <INDENT> model = Notification <NEW_LINE> exclude = ()
Meta class to map serializer's fields with the model fields.
62598f9b2c8b7c6e89bd356b
class TestRuntimeEnvironmentsPlanApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = codefresh_client.api.runtime_environments__plan_api.RuntimeEnvironmentsPlanApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_on_prem_runtime_envs...
RuntimeEnvironmentsPlanApi unit test stubs
62598f9b8e7ae83300ee8e39
class CogentAligner(Aligner): <NEW_LINE> <INDENT> Name = 'CogentAligner' <NEW_LINE> def getResult(self, seq_path): <NEW_LINE> <INDENT> module = self.Params['Module'] <NEW_LINE> seqs = self.getData(seq_path) <NEW_LINE> params = dict( [(k, v) for (k, v) in self.Params.items() if k.startswith('-')]) <NEW_LINE> result = mo...
Generic aligner using Cogent multiple alignment methods.
62598f9bbd1bec0571e14f91
class KrakenTradesXETCZCADInput(ABCKrakenTradesInput): <NEW_LINE> <INDENT> pair = "XETCZCAD" <NEW_LINE> quote = QuoteEnum.CAD <NEW_LINE> crypto = CryptoEnum.ETC
Kraken trade input for ETC crypto vs CAD quote
62598f9b0a50d4780f705173
class ClientResource(Resource): <NEW_LINE> <INDENT> def __init__(self, resource_manager, model_manager, store, **kwargs): <NEW_LINE> <INDENT> Resource.__init__(self, model_manager, store, **kwargs) <NEW_LINE> self._resource_manager = resource_manager <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def load_from_graph(cls, ...
ClientResource: resource manipulated by the end-user. Has access to the `resource_manager`. Is not serializable.
62598f9b0fa83653e46f4c84
class Localizer(object): <NEW_LINE> <INDENT> def __init__(self, locale_name, translations): <NEW_LINE> <INDENT> self.locale_name = locale_name <NEW_LINE> self.translations = translations <NEW_LINE> self.pluralizer = None <NEW_LINE> self.translator = None <NEW_LINE> <DEDENT> def translate(self, tstring, domain=None, map...
An object providing translation and pluralizations related to the current request's locale name. A :class:`pyramid.i18n.Localizer` object is created using the :func:`pyramid.i18n.get_localizer` function.
62598f9b67a9b606de545d64
class NUEsIndexConfigsFetcher(NURESTFetcher): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def managed_class(cls): <NEW_LINE> <INDENT> from .. import NUEsIndexConfig <NEW_LINE> return NUEsIndexConfig
Represents a NUEsIndexConfigs fetcher Notes: This fetcher enables to fetch NUEsIndexConfig objects. See: bambou.NURESTFetcher
62598f9b0c0af96317c5611d
class Blockchain: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.blocks = [] <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "%s" % self.blocks <NEW_LINE> <DEDENT> def addBlock(self): <NEW_LINE> <INDENT> self.blocks.append("") <NEW_LINE> <DEDENT> def getBlocks(self): <NEW_LINE> <IND...
classe représentant la blockchain. Elle n'a comme variable d'instance qu'un tableau représentant les blocs
62598f9b097d151d1a2c0dc0
class TcpSensor(TcpEntity, SensorEntity): <NEW_LINE> <INDENT> @property <NEW_LINE> def native_value(self) -> StateType: <NEW_LINE> <INDENT> return self._state <NEW_LINE> <DEDENT> @property <NEW_LINE> def native_unit_of_measurement(self) -> str | None: <NEW_LINE> <INDENT> return self._config[CONF_UNIT_OF_MEASUREMENT]
Implementation of a TCP socket based sensor.
62598f9b6fb2d068a7693d01
class GetW3actAsCsvZip(luigi.Task): <NEW_LINE> <INDENT> date = luigi.DateParameter(default=datetime.date.today()) <NEW_LINE> db_name = luigi.Parameter(default='w3act') <NEW_LINE> db_user = luigi.Parameter(default='w3act') <NEW_LINE> db_host = luigi.Parameter(default='ingest') <NEW_LINE> db_port = luigi.IntParameter(def...
Connect to the W3ACT database and dump the whole thing as CSV files.
62598f9b8e71fb1e983bb850
class ThresholdFeedback(TrivialFeedback, Initializable): <NEW_LINE> <INDENT> @lazy <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(ThresholdFeedback, self).__init__(**kwargs)
A generica MLP feedback Parameters ---------- mlp : Brick :class:`bricks.MLP` defines the transformation from output back to hidden state
62598f9bd99f1b3c44d0544b
class ImageUploadForm(forms.Form): <NEW_LINE> <INDENT> image = forms.ImageField(required=False) <NEW_LINE> image_url = forms.CharField(required=False) <NEW_LINE> gender = forms.CharField(required=True)
Image upload form.
62598f9b379a373c97d98daf
class ROSError(Error): <NEW_LINE> <INDENT> def __init__(self, strerror="", filename=""): <NEW_LINE> <INDENT> self.strerror = strerror; <NEW_LINE> self.filename = filename; <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "%s: %s" % (self.strerror, self.filename)
Exception raised when the execution of a remote command failed. strerror -- message filename -- filename
62598f9bf8510a7c17d7e045
class TestIsraelFalseInConfigFile(TestNoConfigFile): <NEW_LINE> <INDENT> config_data = "israel = false"
Test "israel = false" in configuration file.
62598f9bb7558d58954633ca
class TestHttpRetry: <NEW_LINE> <INDENT> ENTITY_ENCLOSING_METHODS = ['post', 'put', 'patch'] <NEW_LINE> ALL_METHODS = ENTITY_ENCLOSING_METHODS + ['get', 'delete', 'head', 'options'] <NEW_LINE> @classmethod <NEW_LINE> def setup_class(cls): <NEW_LINE> <INDENT> _http_client.DEFAULT_RETRY_CONFIG.backoff_factor = 0 <NEW_LIN...
Unit tests for the default HTTP retry configuration.
62598f9b3cc13d1c6d465507
class EditStructuralSubscription(AuthorizationBase): <NEW_LINE> <INDENT> permission = "launchpad.Edit" <NEW_LINE> usedfor = IStructuralSubscription <NEW_LINE> def checkAuthenticated(self, user): <NEW_LINE> <INDENT> return user.inTeam(self.obj.subscriber)
Edit permissions for `IStructuralSubscription`.
62598f9b56ac1b37e6301f85
class NetBlock( models.Model): <NEW_LINE> <INDENT> start = models.GenericIPAddressField( protocol='IPv4') <NEW_LINE> end = models.GenericIPAddressField( protocol='IPv4') <NEW_LINE> location = models.ForeignKey( Location, on_delete=models.CASCADE) <NEW_LINE> def __str__( self): <NEW_LINE> <INDENT> return '%s - %...
Geo-referenced IP address block
62598f9b3c8af77a43b67e0b
class IBANValidator(object): <NEW_LINE> <INDENT> def __init__(self, use_nordea_extensions=False, include_countries=None): <NEW_LINE> <INDENT> self.validation_countries = IBAN_COUNTRY_CODE_LENGTH.copy() <NEW_LINE> if use_nordea_extensions: <NEW_LINE> <INDENT> self.validation_countries.update(NORDEA_COUNTRY_CODE_LENGTH) ...
A validator for International Bank Account Numbers (IBAN - ISO 13616-1:2007).
62598f9b44b2445a339b683a
class AddBrownianIntegrator(GenericOperation): <NEW_LINE> <INDENT> def __init__(self, dt, friction, seed, **options): <NEW_LINE> <INDENT> super().__init__(dt, friction, seed, **options)
Brownian dynamics for a NVT ensemble. Parameters ---------- dt : float Time step size for each simulation iteration friction : float Sets drag coefficient for each particle type. seed : int Seed used to randomly generate a uniform force. options : kwargs Options used in integrator function.
62598f9b45492302aabfc273
class Samochod(object): <NEW_LINE> <INDENT> def __init__(self, marka, model, kolor): <NEW_LINE> <INDENT> self.marka = marka <NEW_LINE> self.model = model <NEW_LINE> self.color = kolor <NEW_LINE> self.czy_jedzie = False <NEW_LINE> self.silnik = None <NEW_LINE> <DEDENT> def jedz(self): <NEW_LINE> <INDENT> print(self.mark...
Opisuje właściwości samochodu
62598f9b76e4537e8c3ef351
@register_scenario <NEW_LINE> class ImportPolicyExCommunityAdd2(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def boot(env): <NEW_LINE> <INDENT> lookup_scenario('ImportPolicy').boot(env) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def setup(env): <NEW_LINE> <INDENT> g1 = env.g1 <NEW_LINE> e1 = env.e1 <NEW_LINE...
No.44 extended community add action import-policy test -------------------------------- e1 ->(extcommunity=RT:65000:1) -> | -> q1-rib -> q1-adj-rib-out | --> q1 | | | -> q2-rib -> q2-adj-...
62598f9b5f7d997b871f92ac
class Thread(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length = 200) <NEW_LINE> author = models.CharField(max_length = 50) <NEW_LINE> timestamp = models.DateTimeField(auto_now = True, null = False) <NEW_LINE> pic = models.ImageField(upload_to = 'blog', blank=True) <NEW_LINE> description = models.T...
Contains data about a thread which is a simple unit of a blog
62598f9b91f36d47f2230d6d
class TicketReporterSubscriber(Component): <NEW_LINE> <INDENT> implements(INotificationSubscriber) <NEW_LINE> def matches(self, event): <NEW_LINE> <INDENT> if event.realm != 'ticket': <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> if event.category not in ('created', 'changed', 'attachment added', 'attachment deleted')...
Allows the users to subscribe to tickets that they report.
62598f9bdd821e528d6d8cd0
class WarningValue(_messages.Message): <NEW_LINE> <INDENT> class CodeValueValuesEnum(_messages.Enum): <NEW_LINE> <INDENT> CLEANUP_FAILED = 0 <NEW_LINE> DEPRECATED_RESOURCE_USED = 1 <NEW_LINE> DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 2 <NEW_LINE> INJECTED_KERNELS_DEPRECATED = 3 <NEW_LINE> NEXT_HOP_ADDRESS_NOT_ASSIGNED = 4 <NE...
Informational warning which replaces the list of forwarding rules when the list is empty. Enums: CodeValueValuesEnum: [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Messages: DataValueListEntry: A DataValueListEn...
62598f9badb09d7d5dc0a325
class MailList(): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self.__name = name <NEW_LINE> self.subscribers = [] <NEW_LINE> <DEDENT> def add_subscriber(self, subscriber): <NEW_LINE> <INDENT> emails = [member.get_email() for member in self.subscribers] <NEW_LINE> if subscriber.get_email() in email...
docstring for MailList
62598f9be5267d203ee6b6aa
class SNIProxyHandler(object): <NEW_LINE> <INDENT> bufsize = 1024*1024 <NEW_LINE> timeout = 300 <NEW_LINE> def __init__(self, sock, address): <NEW_LINE> <INDENT> self.sock = sock <NEW_LINE> self.address = address <NEW_LINE> self.process_request() <NEW_LINE> <DEDENT> def process_request(self): <NEW_LINE> <INDENT> sock =...
SNI Proxy Handler
62598f9b0a50d4780f705174
class TextSource(Base): <NEW_LINE> <INDENT> __tablename__ = 'text_source' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> source_key = Column( Enum( AllowedSources.twitter.name, name='allowed_sources' ) ) <NEW_LINE> source_url = Column(String) <NEW_LINE> written_text = Column(Text) <NEW_LINE> time_posted =...
Base model that all text sources will use
62598f9b3617ad0b5ee05eec
class ReflectionCoefficient(BoundaryConditionType2): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.type = 2 <NEW_LINE> self.Rt = 0 <NEW_LINE> self.returnFunction = None <NEW_LINE> self.omegaNew = np.empty((2)) <NEW_LINE> <DEDENT> def __call__(self, _domegaField_, duPrescribed, R, L, nmem, n, dt, P, Q...
Boundary profile - type 2 Terminal reflection only in combination with prescribed influx condition (Type1) or alone call function input: _domega_,dO,du,R,L,n,dt returns the domega-vector with (domega_ , _domega) based on the input values and its returnFunction
62598f9b7b25080760ed7241
class AsyncGenerator(Generator): <NEW_LINE> <INDENT> def pytype(self): <NEW_LINE> <INDENT> return "%s.async_generator" % BUILTINS <NEW_LINE> <DEDENT> def display_type(self): <NEW_LINE> <INDENT> return "AsyncGenerator" <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<AsyncGenerator({}) l.{} at 0x{}>"...
Special node representing an async generator
62598f9b38b623060ffa8e2c
class DeviceModel(metaclass=DeviceModelMetaclass): <NEW_LINE> <INDENT> KNOWN_DEVICES = {} <NEW_LINE> def __init__(self, address): <NEW_LINE> <INDENT> self.address = address <NEW_LINE> self.reset() <NEW_LINE> <DEDENT> def reset(self): <NEW_LINE> <INDENT> self.configurations = {} <NEW_LINE> self.interfaces = {} <NEW_...
Class representing our model of a USB device, which encapsulates our knowledge of the device -- and accordinly any parser state associated with the given device.
62598f9be64d504609df9286
class Instances(base.Group): <NEW_LINE> <INDENT> pass
Manage Cloud Bigtable instances.
62598f9b379a373c97d98db0
@read_only_properties( "tnorm_ci", "poisson_ci", "lrt_ci", "score_ci", "posterior_ci", "simulated_ci" ) <NEW_LINE> @dataclass <NEW_LINE> class CIDataClass: <NEW_LINE> <INDENT> tnorm_ci: Tuple[float, float] <NEW_LINE> poisson_ci: Tuple[float, float] <NEW_LINE> lrt_ci: Tuple[float, float] <NEW_LINE> score_ci: Tuple[float...
Confidence Intervals Data Class. Attributes: tnorm_ci (tuple): Truncated normal confidence interval. poisson_ci (tuple): Poisson confidence interval. lrt_ci (tuple): Inverted binomial likelihood ratio test confidence interval. score_ci (tuple): Inverted binomial score test confidence interval. post...
62598f9b097d151d1a2c0dc2
class Art(PronType): <NEW_LINE> <INDENT> pass
article
62598f9b498bea3a75a578bd
class TestCompareXLSXFiles(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.maxDiff = None <NEW_LINE> filename = 'chart_format05.xlsx' <NEW_LINE> test_dir = 'xlsxwriter/test/comparison/' <NEW_LINE> self.got_filename = test_dir + '_test_' + filename <NEW_LINE> self.exp_filename = test_di...
Test file created by XlsxWriter against a file created by Excel.
62598f9b21a7993f00c65d1d
class IncrementalEncoder(object): <NEW_LINE> <INDENT> def __init__(self, encoding=UTF8, errors='strict'): <NEW_LINE> <INDENT> encoding = _get_encoding(encoding) <NEW_LINE> self.encode = encoding.codec_info.incrementalencoder(errors).encode
“Push”-based encoder. :param encoding: An :class:`Encoding` object or a label string. :param errors: Type of error handling. See :func:`codecs.register`. :raises: :exc:`~exceptions.LookupError` for an unknown encoding label. .. method:: encode(input, final=False) :param input: An Unicode string. :pa...
62598f9b8e71fb1e983bb852
class TDataRaw: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRING, 'raw_data', None, None, ), ) <NEW_LINE> def __init__(self, raw_data=None,): <NEW_LINE> <INDENT> self.raw_data = raw_data <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAcceler...
Attributes: - raw_data
62598f9b004d5f362081eecb
class testCollection: <NEW_LINE> <INDENT> __testCollection = [] <NEW_LINE> def __init__(self, __CollectionName): <NEW_LINE> <INDENT> self.__collectionName = __CollectionName <NEW_LINE> <DEDENT> def getCollectionName(self): <NEW_LINE> <INDENT> return self.__collectionName <NEW_LINE> <DEDENT> def getAllTests(self): <NEW_...
A class of all test subjects with their runs.
62598f9b30dc7b766599f5e9
class SessionCredStorage(Storage): <NEW_LINE> <INDENT> def locked_put(self, cred): <NEW_LINE> <INDENT> session['_cred'] = pickle.dumps(cred) <NEW_LINE> <DEDENT> def locked_get(self): <NEW_LINE> <INDENT> return pickle.loads(session.get('_cred'))
Take a credential object and store it into the session.
62598f9bfff4ab517ebcd58a
class HeatmiserV3Thermostat(ThermostatDevice): <NEW_LINE> <INDENT> def __init__(self, heatmiser, device, name, serport): <NEW_LINE> <INDENT> self.heatmiser = heatmiser <NEW_LINE> self.device = device <NEW_LINE> self.serport = serport <NEW_LINE> self._current_temperature = None <NEW_LINE> self._name = name <NEW_LINE> se...
Represents a HeatmiserV3 thermostat.
62598f9b1f5feb6acb1629bf
class SoftmaxFocalLoss(Loss): <NEW_LINE> <INDENT> def __init__(self, axis=-1, alpha=0.25, gamma=2.0, weight=None, batch_axis=0, **kwargs): <NEW_LINE> <INDENT> super(SoftmaxFocalLoss, self).__init__( weight, batch_axis, **kwargs) <NEW_LINE> self._axis = axis <NEW_LINE> self._alpha = alpha <NEW_LINE> self._gamma = gamma ...
Computes the focal loss for softmax output If `sparse_label` is `True` (default), label should contain integer category indicators: .. math:: \DeclareMathOperator{softmax}{softmax} p = \softmax({pred}) L = -\alpha \sum_i (1 - p_{i, {label}_i})^\gamma \log p_{i,{label}_i} `label`'s shape should be `pre...
62598f9b462c4b4f79dbb7a8
class HomePageCategoryKeywordGrouping(APIView): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> filtered_keyword_queryset = Keyword.objects.filter( show_on_home_page=True ) <NEW_LINE> home_page_categories_with_keywords = Category.objects.filter( show_on_home_page=True ).prefetch_related( Prefetch( 'keyw...
Retrieve keywords grouped by category for the home page --- GET: response_serializer: HomePageCategoryKeywordGroupingSerializer
62598f9b379a373c97d98db1
class BlinkyLayer(EffectLayer): <NEW_LINE> <INDENT> on = False <NEW_LINE> def render(self, model, params, frame): <NEW_LINE> <INDENT> self.on = not self.on <NEW_LINE> if self.on: <NEW_LINE> <INDENT> for i, rgb in enumerate(frame): <NEW_LINE> <INDENT> mixAdd(rgb, 1, 1, 1)
Test our timing accuracy: Just blink everything on and off every other frame.
62598f9b0c0af96317c56120
class PoolerEndLogits(nn.Module): <NEW_LINE> <INDENT> def __init__(self, config: PretrainedConfig): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.dense_0 = nn.Linear(config.hidden_size * 2, config.hidden_size) <NEW_LINE> self.activation = nn.Tanh() <NEW_LINE> self.LayerNorm = nn.LayerNorm(config.hidden_size, e...
Compute SQuAD end logits from sequence hidden states. Args: config ([`PretrainedConfig`]): The config used by the model, will be used to grab the `hidden_size` of the model and the `layer_norm_eps` to use.
62598f9b96565a6dacd2ce47
class ModelItemIO(BaseModel, ABC): <NEW_LINE> <INDENT> id: str = Field(default="") <NEW_LINE> tags: List[str] = Field(default=()) <NEW_LINE> properties: Dict[str, str] = Field(default={}) <NEW_LINE> perspectives: List[PerspectiveIO] = Field(default=()) <NEW_LINE> @validator("tags", pre=True) <NEW_LINE> def split_tags(c...
Define a base class for elements and relationships. Attributes: id (str): tags (set of str): properties (dict): perspectives (set of Perspective):
62598f9b596a897236127a1d
class JobFilter(django_filters.FilterSet): <NEW_LINE> <INDENT> title = django_filters.CharFilter(field_name = 'title', lookup_expr = 'icontains') <NEW_LINE> location = django_filters.CharFilter(field_name = 'location', lookup_expr = 'icontains') <NEW_LINE> tag = TagsFilter(field_name = "tags",lookup_expr = 'icontains')...
create filter for class job
62598f9b3cc13d1c6d465509
class ApiTokenizer: <NEW_LINE> <INDENT> def __init__(self, endpoint: str) -> None: <NEW_LINE> <INDENT> self.endpoint: str = endpoint <NEW_LINE> <DEDENT> def __call__(self, text: str) -> List[str]: <NEW_LINE> <INDENT> body: bytes = text.encode('utf-8') <NEW_LINE> res: Response = requests.post(self.endpoint, data=body) <...
An API based tokenizer functor, assuming that the response body is a jsonifyable string with content of list of `str` tokens. Example: tokenizer: ApiTokenizer = ApiTokenizer() tokens: List[str] = tokenizer(your_text_here)
62598f9b1f037a2d8b9e3e83
class Pipeline_seed(Base): <NEW_LINE> <INDENT> __tablename__ = 'pipeline_seed' <NEW_LINE> __table_args__ = ( UniqueConstraint('pipeline_id','seed_id','seed_table'), { 'mysql_engine':'InnoDB', 'mysql_charset':'utf8' }) <NEW_LINE> pipeline_seed_id = Column(INTEGER(unsigned=True), primary_key=True, nullable=False) <NEW_L...
A table for loading pipeline seed information :param pipeline_seed_id: An integer id for pipeline_seed table :param seed_id: A required integer id :param seed_table: An optional enum list to specify seed table information, default unknown, allowed values project, sample, experiment, run, file, seqr...
62598f9ba79ad16197769e01
class MelScale(torch.nn.Module): <NEW_LINE> <INDENT> __constants__ = ['n_mels', 'sample_rate', 'f_min', 'f_max'] <NEW_LINE> def __init__(self, n_mels: int = 128, sample_rate: int = 16000, f_min: float = 0., f_max: Optional[float] = None, n_stft: Optional[int] = None, norm: Optional[str] = None) -> None: <NEW_LINE> <IND...
Turn a normal STFT into a mel frequency STFT, using a conversion matrix. This uses triangular filter banks. User can control which device the filter bank (`fb`) is (e.g. fb.to(spec_f.device)). Args: n_mels (int, optional): Number of mel filterbanks. (Default: ``128``) sample_rate (int, optional): Sample rate...
62598f9b44b2445a339b683b
@ENTITY_ADAPTERS.register(alarm_control_panel.DOMAIN) <NEW_LINE> class AlarmControlPanelCapabilities(AlexaEntity): <NEW_LINE> <INDENT> def default_display_categories(self): <NEW_LINE> <INDENT> return [DisplayCategory.SECURITY_PANEL] <NEW_LINE> <DEDENT> def interfaces(self): <NEW_LINE> <INDENT> if not self.entity.attrib...
Class to represent Alarm capabilities.
62598f9b7047854f4633f17f
class BaseAI: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._actor = None <NEW_LINE> <DEDENT> def set_actor(self, actor): <NEW_LINE> <INDENT> self._actor = actor <NEW_LINE> <DEDENT> def update(self, dt): <NEW_LINE> <INDENT> pass
Base class for AI
62598f9b45492302aabfc275
class PatronBlockConditions(FolioApi): <NEW_LINE> <INDENT> def get_patronBlockConditions(self, **kwargs): <NEW_LINE> <INDENT> return self.call("GET", "/patron-block-conditions", query=kwargs) <NEW_LINE> <DEDENT> def get_patronBlockCondition(self, patronBlockConditionId: str): <NEW_LINE> <INDENT> return self.call("GET",...
mod-users Patron Block Conditions API Query and manage each condition that can trigger a patron block and the messages that should be displayed when triggered.
62598f9b76e4537e8c3ef353
class Ghoul(Monster): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.mon_mult = {'HersheyKisses': 1, 'SourStraws': 1, 'ChocolateBars': 1, 'NerdBombs': 5} <NEW_LINE> self.__id = 2 <NEW_LINE> super().__init__(random.randint(40, 80), random.randint(15, 30), self.mon_mult) <NEW_LINE> <DEDENT> def get_id(s...
Ghoul object: A monster type.
62598f9b8e7ae83300ee8e3c
class CyclicRemovable(object): <NEW_LINE> <INDENT> class Dropped(object): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __init__(self, iterable, debug=False): <NEW_LINE> <INDENT> self.index = 0 <NEW_LINE> self.elements = list(iterable) <NEW_LINE> self.length = len(self.elements) <NEW_LINE> self.indexes = range(1, se...
Implements a cyclic iterator over a finite set of objects where you can remove objects while iterating and the iterator will automatically skip removed objects. It is efficient in the sense that there is no more iteration than strictly required by using a kind of simply linked list that skips dropped elements.
62598f9bfbf16365ca793e56
class Packet: <NEW_LINE> <INDENT> def __init__(self, header, data): <NEW_LINE> <INDENT> self.header = header <NEW_LINE> self.data = data <NEW_LINE> self.md5 = hashlib.md5(b'%s%s' % (header,data)) <NEW_LINE> <DEDENT> def __bytes__(self): <NEW_LINE> <INDENT> return b'%s%s%s' % ( self.header, self.md5.digest(), self.data)...
Encapsulates a PES packet, which consists of three things: header, md5, data
62598f9b56ac1b37e6301f88
class ReportBuilderPositionAverage(ReportBuilderBase): <NEW_LINE> <INDENT> DEFAULT_REPORTS = (fseq.LinePlot, ) <NEW_LINE> def __init__(self, *reports, **kwargs): <NEW_LINE> <INDENT> if len(reports) == 0: <NEW_LINE> <INDENT> reports = tuple(r() for r in self.DEFAULT_REPORTS) <NEW_LINE> <DEDENT> super(ReportBuilderPositi...
Per position analysis builder. Parameters ---------- outputRoot: str, optional Path to the directory where all reports should be put (Default: ``None``) outputNamePrefix: str, optional Partial name to be added to all reports done by the builder (Default: ``None``) undecidedValue: int, optional ...
62598f9b4e4d5625663721c1
class DefaultItemView(DefaultView): <NEW_LINE> <INDENT> template = ViewPageTemplateFile("default_item.pt") <NEW_LINE> def __init__(self, context, request): <NEW_LINE> <INDENT> self.context = context <NEW_LINE> self.request = request <NEW_LINE> <DEDENT> def __call__(self): <NEW_LINE> <INDENT> html = self.template() <NEW...
The default blog item view
62598f9badb09d7d5dc0a327
class UserDisplayConfiguration(BaseClass): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(UserDisplayConfiguration, self).__init__(DBOHHOUserDisplayConfiguration)
后台用户配置信息
62598f9be5267d203ee6b6ac
class MailBuilder(object): <NEW_LINE> <INDENT> def __init__(self, message_model): <NEW_LINE> <INDENT> self._parameters = dict() <NEW_LINE> self._message = message_model <NEW_LINE> <DEDENT> def message(self): <NEW_LINE> <INDENT> message = self._message <NEW_LINE> for key in self._parameters.keys(): <NEW_LINE> <INDENT> m...
Mail builder tool
62598f9bcc0a2c111447adaa
class MymonPlugin(object): <NEW_LINE> <INDENT> def start(self, reqhandler, logger, timer): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def stop(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_ui_icon_html(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_ui_name(self): <NEW_LINE> <INDENT> return ...
An abstract Mymon plugin class. This should be subclassed in order to implement a Mymon plugin
62598f9b4428ac0f6e6582c9
class Gruppa(Base): <NEW_LINE> <INDENT> __tablename__ = 'Gruppa' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> name = Column(Unicode) <NEW_LINE> abspara = relationship("AbstractPara", backref="gruppa", viewonly=False) <NEW_LINE> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name
Таблица Группа Модель Группа
62598f9b32920d7e50bc5df4
class RetroHotSpot(predictors.DataTrainer): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.weight = Quartic() <NEW_LINE> <DEDENT> def predict(self, start_time=None, end_time=None): <NEW_LINE> <INDENT> coords = _clip_data(self.data, start_time, end_time) <NEW_LINE> if coords.shape[1] == 0: <NEW_LINE> <...
Implements the retro-spective hotspotting algorithm. To change the weight/kernel used, set the :attr:`weight` attribute.
62598f9b2c8b7c6e89bd356f
class BulkProcessRequest(object): <NEW_LINE> <INDENT> swagger_types = { 'batch_name': 'str', 'envelope_or_template_id': 'str' } <NEW_LINE> attribute_map = { 'batch_name': 'batchName', 'envelope_or_template_id': 'envelopeOrTemplateId' } <NEW_LINE> def __init__(self, _configuration=None, **kwargs): <NEW_LINE> <INDENT> if...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f9b498bea3a75a578be
@attr.s(auto_attribs=True) <NEW_LINE> class SerialProps: <NEW_LINE> <INDENT> port: str ='/dev/ttyACM0' <NEW_LINE> port_filter: str = '' <NEW_LINE> baud_rate: int = 115200 <NEW_LINE> message_length: int = 4096 <NEW_LINE> message_delimiter: bytes = b'\0' <NEW_LINE> open_delay: float = 1.0 <NEW_LINE> read_timeout: Optiona...
Defines driver properties for serial devices.
62598f9b07f4c71912baf1e9
class AlphaBetaAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> def getAction(self, gameState): <NEW_LINE> <INDENT> a = int(-100000) <NEW_LINE> b = int(100000) <NEW_LINE> bestScore,bestMove=self.maxAB(gameState,self.depth, a, b) <NEW_LINE> return bestMove <NEW_LINE> <DEDENT> def maxAB(self,gameState,depth, a, b): <NEW...
Your minimax agent with alpha-beta pruning (question 3)
62598f9b0a50d4780f705177
class DashboardHandler(BaseHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> user = None <NEW_LINE> try: <NEW_LINE> <INDENT> user = self.session['user'] <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> self.redirect('/login/') <NEW_LINE> <DEDENT> if user: <NEW_LINE> <INDENT> context = {'data': user, } <NE...
Controlador que trae el html principal del dashboard
62598f9bb5575c28eb712b9c