code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class JsonSerializer(object): <NEW_LINE> <INDENT> __json_public__ = None <NEW_LINE> __json_hidden__ = None <NEW_LINE> __json_modifiers__ = None <NEW_LINE> def get_field_names(self): <NEW_LINE> <INDENT> for p in self.__mapper__.iterate_properties: <NEW_LINE> <INDENT> yield p.key <NEW_LINE> <DEDENT> <DEDENT> def to_json(...
A mixin that can be used to mark a SQLAlchemy model class which implements a :func:`to_json` method. The :func:`to_json` method is used in conjuction with the custom :class:`JSONEncoder` class. By default this mixin will assume all properties of the SQLAlchemy model are to be visible in the JSON output. Extend this cla...
625990688e7ae83300eea83a
class ConnectorCodecAdapter(Codec): <NEW_LINE> <INDENT> def __init__(self, codec): <NEW_LINE> <INDENT> self.codec = codec <NEW_LINE> <DEDENT> def encode(self, value): <NEW_LINE> <INDENT> return self.codec.encode(value) <NEW_LINE> <DEDENT> def decode(self, data, mask=None): <NEW_LINE> <INDENT> return self.codec.decode(d...
Removes the type parameter and forwards the calls to the more basic codec types.
6259906826068e7796d4e0e5
class SampleIngestionViewSet(mixins.CreateModelMixin, mixins.ListModelMixin, mixins.RetrieveModelMixin, mixins.DestroyModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> queryset = SampleIngestion.objects.all() <NEW_LINE> serializer_class = SampleIngestionSerializer <NEW_LINE> lookup_field = 'name_slug' <NEW_LINE...
retrieve: Return SampleIngestion data, use this endpoint to check the status of the ingestion process list: list SampleIngestion data. delete: Delete the Coverage data associated to a sample for a gene collection create: Trigger the ingestion of Coverage data, given a file a sample and a gene collection. You will in...
625990683eb6a72ae038be0d
class StreamLimitMiddleware(object): <NEW_LINE> <INDENT> def __init__(self, app, maximum_size=1024 * 1024 * 10): <NEW_LINE> <INDENT> self.app = app <NEW_LINE> self.maximum_size = maximum_size <NEW_LINE> <DEDENT> def __call__(self, environ, start_response): <NEW_LINE> <INDENT> environ['wsgi.input'] = _SilentLimitedStrea...
Limits the input stream to a given number of bytes. This is useful if you have a WSGI application that reads form data into memory (django for example) and you don't want users to harm the server by uploading tons of data. Default is 10MB
62599068f548e778e596cd38
class PrettyStackTemplate(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._template = TEMPLATE_FOLDER.joinpath("console.jinja2") <NEW_LINE> self._cut_calling_code = None <NEW_LINE> self._only_the_exception = False <NEW_LINE> <DEDENT> def to_console(self): <NEW_LINE> <INDENT> new_template = cop...
Template for generating pretty stacktraces on command.
625990683317a56b869bf119
class Collections(enum.Enum): <NEW_LINE> <INDENT> PROJECTS = ( 'projects', 'projects/{projectsId}', {}, [u'projectsId'], True ) <NEW_LINE> PROJECTS_LOCATIONS = ( 'projects.locations', '{+name}', { '': 'projects/{projectsId}/locations/{locationsId}', }, [u'name'], True ) <NEW_LINE> PROJECTS_LOCATIONS_INSTANCES = ( 'proj...
Collections for all supported apis.
625990680c0af96317c57935
class Album(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length = 80) <NEW_LINE> description = models.TextField(blank=False) <NEW_LINE> genres = [] <NEW_LINE> artist = models.CharField(max_length=50) <NEW_LINE> songs = [] <NEW_LINE> state = models.IntegerField()
DEFINES AN ALBUM
62599068adb09d7d5dc0bd17
class PolyLR(WarmUpLRScheduler): <NEW_LINE> <INDENT> def __init__(self, optimizer, total_epoch, iteration_per_epoch, warmup_epochs=0, iteration_decay=True, power=0.9): <NEW_LINE> <INDENT> self.power = power <NEW_LINE> super(PolyLR, self).__init__(optimizer, total_epoch, iteration_per_epoch, warmup_epochs, iteration_dec...
Sets the learning rate of each parameter group to the initial lr multiply by (1 - iter / total_iter) ** gamma. Args: optimizer (Optimizer): Wrapped optimizer. power (float): Multiplicative factor of learning rate decay. Default: 0.1. total_iter(int) : Total epoch last_epoch (int): The index of ...
6259906823849d37ff852862
class River(Link): <NEW_LINE> <INDENT> type = "river" <NEW_LINE> _properties = {'flow':0}
A river which establishes a connection between two reservoirs or a junction and a reservoir. No hydrological or hydraulic routing is implemented.
6259906871ff763f4b5e8f53
class ScanSummary(db.Model, WithConcurrentGetOrCreate): <NEW_LINE> <INDENT> job_id = db.CharField(unique=True, max_length=36) <NEW_LINE> current_checksum = db.CharField(max_length=32, blank=True, null=True) <NEW_LINE> previous_checksum = db.CharField(max_length=32, blank=True, null=True) <NEW_LINE> false_positive_check...
For every IP address we prescanned we add scan summary record which holds checksum and ignored checksum. When the user press `Ignore change` button we store the current checksum as ignored one.
625990687b25080760ed88b8
class Root(object): <NEW_LINE> <INDENT> __acl__ = [ [Allow, 'admin', ALL_PERMISSIONS], [Allow, 'unlock', 'unlock'], [Allow, Authenticated, 'default'], DENY_ALL, ] <NEW_LINE> def __init__(self, request): <NEW_LINE> <INDENT> self.request = request
Root context. Defines ACL, not much else.
625990686e29344779b01dff
class DocumentClusterAPIView(apps.common.mixins.JqListAPIView, viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = DocumentCluster.objects.all() <NEW_LINE> http_method_names = ['get', 'patch', 'put'] <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> qs = super().get_queryset() <NEW_LINE> document_id = self.requ...
list: Document Cluster List retrieve: Retrieve Document Cluster update: Update Document Cluster (name) partial_update: Partial Update Document Cluster (name)
62599068be8e80087fbc0838
class RPCProcedureException(RPCFault): <NEW_LINE> <INDENT> def __init__(self, message=None, error_data=None): <NEW_LINE> <INDENT> RPCFault.__init__(self, PROCEDURE_EXCEPTION, message, error_data)
Procedure exception. (PROCEDURE_EXCEPTION)
625990685fcc89381b266d2d
class Photo(core_models.TimeStampedModel): <NEW_LINE> <INDENT> caption = models.CharField(max_length=80) <NEW_LINE> file = models.ImageField(upload_to="room_photos") <NEW_LINE> room = models.ForeignKey("Room", related_name="photos", on_delete=models.CASCADE) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self...
Photo Model Definition
625990688a43f66fc4bf393f
class MarginRule(object): <NEW_LINE> <INDENT> def __init__(self, at_keyword, declarations, line, column): <NEW_LINE> <INDENT> self.at_keyword = at_keyword <NEW_LINE> self.declarations = declarations <NEW_LINE> self.line = line <NEW_LINE> self.column = column
A parsed at-rule for margin box. .. attribute:: at_keyword One of the 16 following strings: * ``@top-left-corner`` * ``@top-left`` * ``@top-center`` * ``@top-right`` * ``@top-right-corner`` * ``@bottom-left-corner`` * ``@bottom-left`` * ``@bottom-center`` * ``@bottom-right`` ...
625990685fdd1c0f98e5f733
@configmapper.map("models", "two_layer_nn") <NEW_LINE> class TwoLayerNN(Module): <NEW_LINE> <INDENT> def __init__(self, embedding, dims): <NEW_LINE> <INDENT> super(TwoLayerNN, self).__init__() <NEW_LINE> self.embedding = embedding <NEW_LINE> self.linear1 = Linear(dims[0], dims[1]) <NEW_LINE> self.relu = ReLU() <NEW_LIN...
Implements two layer neural network. Methods: forward(x_input): Returns the output of the neural network.
62599068009cb60464d02ce7
class UserError(TerraSyncPyException): <NEW_LINE> <INDENT> ExceptionShortDescription = "User error"
Exception raised when the program is used in an incorrect way.
6259906863d6d428bbee3e60
class User(BaseModel): <NEW_LINE> <INDENT> email = "" <NEW_LINE> password = "" <NEW_LINE> first_name = "" <NEW_LINE> last_name = ""
class User - inherits from BaseModel - Public class attr - email, password, first_name, last_name
625990688e71fb1e983bd275
class BaseScript(object): <NEW_LINE> <INDENT> def __init__(self, script_obj): <NEW_LINE> <INDENT> if callable(script_obj): <NEW_LINE> <INDENT> self.callable_obj = script_obj <NEW_LINE> params = signature(script_obj).parameters <NEW_LINE> if len(params) > 1: <NEW_LINE> <INDENT> raise UserWarning('function to create base...
Proxy class for creating a base simulation. It acts as an interface to place the appropriate call in the FDTD CAD to build the base simulation depending on the input object. Options are: 1) a Python callable, 2) any visible *.fsp project file, 3) any visible *.lsf script file or 4) a plain string with a...
625990688da39b475be04999
class BaseExtraLogFormatter(logging.Formatter): <NEW_LINE> <INDENT> PREFIX = '_' <NEW_LINE> def _get_extra_attributes(self, record): <NEW_LINE> <INDENT> attributes = dict([(k, v) for k, v in six.iteritems(record.__dict__) if k.startswith(self.PREFIX)]) <NEW_LINE> return attributes <NEW_LINE> <DEDENT> def _get_common_ex...
Base class for the log formatters which expect additional context to be passed in the "extra" dictionary. For example: extra={'_id': 'user-1', '_path': '/foo/bar'} Note: To avoid clashes with standard Python log record attributes, all the keys in the extra dictionary need to be prefixed with a slash ('_').
6259906826068e7796d4e0e7
class SingleDesignVisualization(BaseVisualization): <NEW_LINE> <INDENT> def __init__(self,main,only_focused = False): <NEW_LINE> <INDENT> self._watched_design = main.focusedDesign() <NEW_LINE> self._only_focused = only_focused <NEW_LINE> BaseVisualization.__init__(self,main) <NEW_LINE> <DEDENT> def update(self,design):...
A convenient base class for Visualizations that only care about a single design. This design can be "only_focused", which means the design will change to match the focused design at all times. Otherwise, the design will be whatever is currently focused at the time of creation and then never changed afterwards.
6259906832920d7e50bc77f5
class TreeGraph: <NEW_LINE> <INDENT> def __init__(self, tree, features): <NEW_LINE> <INDENT> self.tree = tree <NEW_LINE> self.features = features <NEW_LINE> self.__graph = pydot.Dot(graph_type='graph', strict=False) <NEW_LINE> self.__graph_node_count = 0 <NEW_LINE> self.__build_tree() <NEW_LINE> <DEDENT> def __build_tr...
An tool for creating and exporting graphs from previously built (decision) trees. Attributes: tree: A dictionary representing a tree. features: A list with all features in the tree.
625990688e7ae83300eea83d
class AiRecognitionTaskInput(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Definition = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Definition = params.get("Definition")
AI 视频内容识别输入参数类型
62599068d6c5a102081e38d6
class ChartCLI(object): <NEW_LINE> <INDENT> def __init__(self, parser=None, args=None): <NEW_LINE> <INDENT> self.parser = argparse.ArgumentParser(**{ 'prog': 'Nielsen Chart Exercise', 'description': 'Joshua Powell\'s Technical CSV to Chart exercise.' }) <NEW_LINE> self.parser.add_argument('--file', **{ 'type': str, 'he...
Command Line Interface. Setup named application arguments and command line interface help information. :param (class) self The representation of the instantiated Class Instance :param (class) parser The name of the application :param (class) args The name of the enviornment in which to load the applicatio...
62599068f548e778e596cd3a
class AccessMethod(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name_plural = _('Access Methods') <NEW_LINE> <DEDENT> name = models.CharField(max_length=64) <NEW_LINE> created_time = models.DateTimeField(auto_now_add=True) <NEW_LINE> modified_time = models.DateTimeField(auto_now=True) <NEW...
Represents an access method.
6259906897e22403b383c6bc
class SignOutHandler(BaseHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> self.remove_from_session() <NEW_LINE> self.redirect(self.uri_for('home'))
handles signing out
6259906899cbb53fe6832694
class ActionDescription(object): <NEW_LINE> <INDENT> COPY = "copy" <NEW_LINE> ARCHIVING = "archiving" <NEW_LINE> COMMENT = "content-comment" <NEW_LINE> CREATION = "creation" <NEW_LINE> DELETION = "deletion" <NEW_LINE> EDITION = "edition" <NEW_LINE> REVISION = "revision" <NEW_LINE> STATUS_UPDATE = "status-update" <NEW_L...
Allowed status are: - open - closed-validated - closed-invalidated - closed-deprecated
62599068435de62698e9d5b9
class JenkinsAPIException(Exception): <NEW_LINE> <INDENT> pass
Base class for all errors
62599068627d3e7fe0e08638
class CachedS3StaticStorage(CachedS3BotoStorage): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> kwargs["location"] = "static" <NEW_LINE> super(CachedS3StaticStorage, self).__init__(*args, **kwargs)
Mix of the :class:`S3MediaStorage` and :class:`CachedS3BotoStorage`, saves files in ``/static`` subdirectory
6259906844b2445a339b7537
class IxnBgpV6L3VpnRoutePropertyEmulation(IxnEmulationHost): <NEW_LINE> <INDENT> def __init__(self, ixnhttp): <NEW_LINE> <INDENT> super(IxnBgpV6L3VpnRoutePropertyEmulation, self).__init__(ixnhttp) <NEW_LINE> <DEDENT> def find(self, vport_name=None, emulation_host=None, **filters): <NEW_LINE> <INDENT> return super(IxnBg...
Generated NGPF bgpV6L3VpnRouteProperty emulation host
6259906871ff763f4b5e8f55
class MemberToGooduser(models.Model): <NEW_LINE> <INDENT> LOW = 'LOW' <NEW_LINE> HIGH = 'HIGH' <NEW_LINE> LEVEL_CHOICES = ( (LOW, 'Low'), (HIGH, 'High') ) <NEW_LINE> member = models.ForeignKey(Member) <NEW_LINE> gooduser = models.ForeignKey(GoodUser) <NEW_LINE> follow_level = models.CharField(max_length=20, null=True, ...
Additional ManyToMany fields for relation of Member and Gooduser
625990682ae34c7f260ac897
class _ProtocolWrapper(protocol.ProcessProtocol): <NEW_LINE> <INDENT> def __init__(self, proto): <NEW_LINE> <INDENT> self.proto = proto <NEW_LINE> <DEDENT> def connectionMade(self): self.proto.connectionMade() <NEW_LINE> def outReceived(self, data): self.proto.dataReceived(data) <NEW_LINE> def processEnded(self, reason...
This class wraps a L{Protocol} instance in a L{ProcessProtocol} instance.
625990681b99ca400229010d
class DatasetNotFoundError(FusekiClientError): <NEW_LINE> <INDENT> pass
Dataset not found error.
6259906899cbb53fe6832695
class SystemTestSuite(NoseTestSuite): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(SystemTestSuite, self).__init__(*args, **kwargs) <NEW_LINE> self.test_id = kwargs.get('test_id', self._default_test_id) <NEW_LINE> self.fasttest = kwargs.get('fasttest', False) <NEW_LINE> <DEDENT> de...
TestSuite for lms and cms nosetests
6259906856ac1b37e63038ba
class Link( object ): <NEW_LINE> <INDENT> def __init__( self, node1, node2, port1=None, port2=None, intfName1=None, intfName2=None, addr1=None, addr2=None, intf=Intf, cls1=None, cls2=None, params1=None, params2=None, fast=True ): <NEW_LINE> <INDENT> if params1 is None: <NEW_LINE> <INDENT> params1 = {} <NEW_LINE> <DEDEN...
A basic link is just a veth pair. Other types of links could be tunnels, link emulators, etc..
62599068aad79263cf42ff66
class LogMessage(structs.RDFProtoStruct): <NEW_LINE> <INDENT> protobuf = jobs_pb2.PrintStr
A log message sent from the client to the server.
625990683539df3088ecda4f
class ReporttionUserModel(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(UserProFile, verbose_name='举报用户') <NEW_LINE> activity = models.ForeignKey(ActivityModel, verbose_name='举报活动') <NEW_LINE> contion = models.TextField(verbose_name='举报理由') <NEW_LINE> addtime = models.DateTimeField(default=datetime.now, v...
用户活动举报记录
62599068b7558d5895464b08
class HttpProblem(Serializable): <NEW_LINE> <INDENT> type: str = "about:blank" <NEW_LINE> title: HttpProblemTitle = None <NEW_LINE> status: int = None <NEW_LINE> detail: str = None <NEW_LINE> instance: str = None <NEW_LINE> def __post_init__(self): <NEW_LINE> <INDENT> self.Schema._hooks.update({('post_dump', False): ['...
Store the reasons for failures of the HTTP layers for the API. The reason is stored as an RFC 7807 Problem. It is a way to define a uniform, machine-readable details of errors in a HTTP response. See https://tools.ietf.org/html/rfc7807 for details. Attributes: type (str): A URI reference that identifies the ...
625990688e7ae83300eea83e
class HistogramsByPileUpCollection(BaseHistCollection): <NEW_LINE> <INDENT> def __init__(self, pileupBins, dimensions=1, initialValue=0): <NEW_LINE> <INDENT> from rootpy.plotting import Hist <NEW_LINE> BaseHistCollection.__init__(self, dimensions, initialValue) <NEW_LINE> self._pileupBins = pileupBins <NEW_LINE> self._...
Specialisation of BaseHistCollection to bin histograms by pileup :Example: >>> hists = HistogramsByPileUp(pileupBins=[0,10,15,20,30,999]) >>> pileup=11 >>> # translates pileup=11 to 2nd pileup bin >>> hists[pileup] = Hist(bins=np.arange(-1, 1.5, 0.05))
625990681f5feb6acb16439e
class ResendInviteView(APIView): <NEW_LINE> <INDENT> permission_classes = [IsAuthenticated & IsInviteOwner] <NEW_LINE> def post(self, request, format=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> invited_member_obj = InvitedMembers.objects.get(pk=request.query_params['invite_id']) <NEW_LINE> <DEDENT> except Invit...
This view will regenerate token, update it into the InvitedMembers model and resend member invite mail. This view require a `query_params` as `invite_id` and `email` in JSON body as shown below - {{host}}/api/users/resend-invite/?invite_id=17 Sample input data - { "email":"" }
62599068a8370b77170f1b75
@zope.interface.provider(interfaces.IPluginFactory) <NEW_LINE> class DarwinConfigurator(configurator.ApacheConfigurator): <NEW_LINE> <INDENT> OS_DEFAULTS = dict( server_root="/etc/apache2", vhost_root="/etc/apache2/other", vhost_files="*.conf", logs_root="/var/log/apache2", ctl="apachectl", version_cmd=['apachectl', '-...
macOS specific ApacheConfigurator override class
62599068fff4ab517ebcefcc
class Transition(object): <NEW_LINE> <INDENT> def __init__(self, from_state, to_state, rate, name=None, swap_properties=False, prop_update_fn=None): <NEW_LINE> <INDENT> self.from_state = from_state <NEW_LINE> self.to_state = to_state <NEW_LINE> self.rate = rate <NEW_LINE> self.name = name <NEW_LINE> self.swap_propertie...
A transition from one state to another. Represents a transition from one state ("from_state") to another ("to_state") at a link. The transition probability is represented by a rate parameter "rate", with dimensions of 1/T. The probability distribution of time until the transition event occurs is exponentional with mea...
6259906897e22403b383c6be
class DirectExchange(ExchangeType): <NEW_LINE> <INDENT> type = 'direct' <NEW_LINE> def lookup(self, table, exchange, routing_key, default): <NEW_LINE> <INDENT> return { queue for rkey, _, queue in table if rkey == routing_key } <NEW_LINE> <DEDENT> def deliver(self, message, exchange, routing_key, **kwargs): <NEW_LINE> ...
The `direct` exchange routes based on exact routing keys.
6259906856b00c62f0fb407f
class EpsilonGreedyPolicy(ActionValuePolicy): <NEW_LINE> <INDENT> def __init__(self, nb_bandits: int, debug: bool, initial_q_value=0.0, epsilon=0.1): <NEW_LINE> <INDENT> super().__init__(nb_bandits, debug, initial_q_value) <NEW_LINE> self.epsilon: float = epsilon <NEW_LINE> <DEDENT> def select_action(self) -> int: <NEW...
Select an action greedily with epsilon chance of a random action.
62599068cb5e8a47e493cd5c
class Evolvable(Named): <NEW_LINE> <INDENT> def mutate(self, **args): <NEW_LINE> <INDENT> abstractMethod() <NEW_LINE> <DEDENT> def copy(self): <NEW_LINE> <INDENT> return copy.deepcopy(self) <NEW_LINE> <DEDENT> def randomize(self): <NEW_LINE> <INDENT> abstractMethod() <NEW_LINE> <DEDENT> def newSimilarInstance(self): <N...
The interface for all Evolvables, i.e. which implement mutation, randomize and copy operators.
6259906899fddb7c1ca639a8
class loop7(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "object.loops7" <NEW_LINE> bl_label = "origin to selected / in objectmode" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> bpy.ops.view3d.snap_cursor_to_selected() <NEW_LINE> bpy.ops.object.editmode_...
set origin to selected / objectmode
62599068dd821e528d6da55a
class WebAPIAuthBackend(object): <NEW_LINE> <INDENT> www_auth_scheme = None <NEW_LINE> SENSITIVE_CREDENTIALS_RE = re.compile('api|token|key|secret|password|signature', re.I) <NEW_LINE> def get_auth_headers(self, request): <NEW_LINE> <INDENT> return {} <NEW_LINE> <DEDENT> def authenticate(self, request): <NEW_LIN...
Handles a form of authentication for the web API. This can be overridden to provide custom forms of authentication, or to support multiple types of authentication. More than one authentication backend can be used with the web API. In that case, the client can make the determination about which to use. Auth backends ...
62599068be8e80087fbc083c
class CapturePointConstraint(UnilateralConstraint, JointVelocityConstraint): <NEW_LINE> <INDENT> def __init__(self, model): <NEW_LINE> <INDENT> super(CapturePointConstraint, self).__init__(model)
Capture Point constraint. Definition: "For a biped in state :math:`x`, a Capture Point (CP) :math:`P`, is a point on the ground such that if the biped covers :math:`P` (makes its base of support include :math:`P`), either with its stance foot or by stepping to :math:`P` in a single step, and then maintains its Center ...
6259906845492302aabfdc89
class IntegrityMonitoringPolicyExtension(object): <NEW_LINE> <INDENT> swagger_types = { 'state': 'str', 'rule_ids': 'list[int]' } <NEW_LINE> attribute_map = { 'state': 'state', 'rule_ids': 'ruleIDs' } <NEW_LINE> def __init__(self, state=None, rule_ids=None): <NEW_LINE> <INDENT> self._state = None <NEW_LINE> self._rule_...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
625990681f5feb6acb1643a0
class ManageTest(integration.ShellCase): <NEW_LINE> <INDENT> def test_active(self): <NEW_LINE> <INDENT> ret = self.run_run_plus('jobs.active') <NEW_LINE> self.assertFalse(ret['fun']) <NEW_LINE> self.assertFalse(ret['out'][1]) <NEW_LINE> <DEDENT> def test_lookup_jid(self): <NEW_LINE> <INDENT> ret = self.run_run_plus('jo...
Test the manage runner
62599068d6c5a102081e38da
class PyWarningsLoggingFilter(object): <NEW_LINE> <INDENT> label = "py.warnings:" <NEW_LINE> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> <DEDENT> def filter(self, record): <NEW_LINE> <INDENT> record.msg = '%s %s' % (self.label, record.msg) <NEW_LINE> return True
Add a prefix to the messages from py.warnings. To help distinquish log messages from python and pygtk 'warnings', while avoiding changing the log format.
62599068a8370b77170f1b77
class StreamWrapper(object): <NEW_LINE> <INDENT> def __init__(self,stream): <NEW_LINE> <INDENT> if not hasattr(stream,"readline") and hasattr(stream,"recv"): <NEW_LINE> <INDENT> stream = stream.makefile('rb', 0) <NEW_LINE> <DEDENT> self.stream = stream <NEW_LINE> <DEDENT> def readline(self,size=None): <NEW_LINE> <INDEN...
Base class for wrapping of streams.
625990684f88993c371f10f8
class Introduction(Page): <NEW_LINE> <INDENT> def vars_for_template(self): <NEW_LINE> <INDENT> self.group.set_payoffs() <NEW_LINE> return {'x': self.player.contribution} <NEW_LINE> <DEDENT> def is_displayed(self): <NEW_LINE> <INDENT> return self.round_number==1
Description of the game: How to play and returns expected
625990683eb6a72ae038be13
class LOOT_420: <NEW_LINE> <INDENT> pass
Skull of the Man'ari
625990683317a56b869bf11c
class ColaProcessor(DataProcessor): <NEW_LINE> <INDENT> def get_train_examples(self, data_dir): <NEW_LINE> <INDENT> return self._create_examples( self._read_tsv(os.path.join(data_dir, "train.tsv")), "train") <NEW_LINE> <DEDENT> def get_dev_examples(self, data_dir): <NEW_LINE> <INDENT> return self._create_examples( self...
Processor for the CoLA data set (GLUE version).
62599068460517430c432c2e
class EventPanelView(grok.View): <NEW_LINE> <INDENT> grok.context(ISwimmingFolder) <NEW_LINE> grok.require('zope2.View') <NEW_LINE> grok.name('event_panel_view') <NEW_LINE> def update(self): <NEW_LINE> <INDENT> self.haveContents = len(self.folder_contents()) > 0 <NEW_LINE> <DEDENT> @memoize <NEW_LINE> def folder_...
A new view for a swimming folder. The associated template is found in swimmingfolder_templates/event_panel_view.pt.
62599068435de62698e9d5bd
class AppSpiderResponse(object): <NEW_LINE> <INDENT> def __init__(self, message, success, data=None, response_code=-1): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> self.data = data <NEW_LINE> self.success = success <NEW_LINE> self.response_code = response_code <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE>...
Container for all AppSpider Enterprise API responses, even errors.
6259906856b00c62f0fb4081
class InputError(Exception): <NEW_LINE> <INDENT> pass
Raised when but user input is processed.
62599068091ae356687063e4
class TestAnsibleModuleWarnDeprecate(unittest.TestCase): <NEW_LINE> <INDENT> def test_warn(self): <NEW_LINE> <INDENT> args = json.dumps(dict(ANSIBLE_MODULE_ARGS={})) <NEW_LINE> with swap_stdin_and_argv(stdin_data=args): <NEW_LINE> <INDENT> with swap_stdout(): <NEW_LINE> <INDENT> ansible.module_utils.basic._ANSIBLE_ARGS...
Test the AnsibleModule Warn Method
6259906816aa5153ce401c8c
class Subjects(db.Model): <NEW_LINE> <INDENT> __tablename__ = "subjects" <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> title = db.Column(db.String(2), unique=True) <NEW_LINE> description = db.Column(db.Text) <NEW_LINE> date_created = db.Column(db.DateTime, default=datetime.utcnow) <NEW_LINE> date_m...
Creates subjects
625990682c8b7c6e89bd4f99
class RandomAgent(Agent): <NEW_LINE> <INDENT> def __init__(self, reversi, turn): <NEW_LINE> <INDENT> self.reversi = reversi <NEW_LINE> self.color = turn <NEW_LINE> <DEDENT> def get_action(self, state, legal_moves): <NEW_LINE> <INDENT> if not legal_moves: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> return random...
An agent that simply chooses totally random legal moves.
6259906871ff763f4b5e8f59
class MultiHeadAttention(nn.Module): <NEW_LINE> <INDENT> def __init__(self, n_head, d_model, d_k, d_v, dropout=0.1): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.n_head = n_head <NEW_LINE> self.d_k = d_k <NEW_LINE> self.d_v = d_v <NEW_LINE> self.w_qs = nn.Linear(d_model, n_head * d_k, bias=True) <NEW_LINE> se...
Multi-Head Attention module
6259906899fddb7c1ca639a9
class User(BaseModel): <NEW_LINE> <INDENT> username: str = Field(..., min_length=1, max_length=256) <NEW_LINE> password: str = Field( ..., min_length=settings.MINIMUM_PASSWORD_LENGTH, max_length=settings.MAXIMUM_PASSWORD_LENGTH, ) <NEW_LINE> email: EmailStr <NEW_LINE> full_name: str = Field("", max_length=100) <NEW_LIN...
Schema for user sign up data.
625990685fcc89381b266d30
class Email(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'emails' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> created_at = db.Column(db.DateTime, nullable=False, default=datetime.utcnow) <NEW_LINE> updated_at = db.Column(db.DateTime, nullable=False, default=datetime.utcnow, onupdate=datetime.ut...
Represents a user's email address
62599068442bda511e95d932
class OffsetHierarchyFilter(OffsetFilter): <NEW_LINE> <INDENT> derivationStr = 'getElementsByOffsetInHierarchy' <NEW_LINE> def __call__(self, e, iterator): <NEW_LINE> <INDENT> s = iterator.srcStream <NEW_LINE> if s is e: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> if not hasattr(iterator, 'iteratorStartOffsetI...
see iterator.getElementsByOffsetInHierarchy() Finds elements that match a given offset range in the hierarchy. Do not call .stream() afterwards or unstable results can occur.
625990687047854f46340b68
class J(DStatistic): <NEW_LINE> <INDENT> def __init__(self, pp, n=100, intervals=10, dmin=0.0, dmax=None, d=None): <NEW_LINE> <INDENT> res = _j(pp, n, intervals, dmin, dmax, d) <NEW_LINE> self.d = res[:, 0] <NEW_LINE> self.j = self._stat = res[:, 1] <NEW_LINE> self.ev = self.j / self.j <NEW_LINE> super(J, self).__init_...
Estimates the J function for a point pattern :cite:`VanLieshout1996` Parameters ---------- pp : :class:`.PointPattern` Point Pattern instance. n : int Number of empty space points (random points). intervals : int The length of distance domain sequence. dmin ...
62599068be8e80087fbc083e
class TextParser(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.processors = [] <NEW_LINE> for l in inspect.getmembers(processors, inspect.isclass): <NEW_LINE> <INDENT> c = getattr(processors, l[0]) <NEW_LINE> self.register_processor(c()) <NEW_LINE> <DEDENT> <DEDENT> def register_processor(self, pr...
docstring for TextParser
6259906856ac1b37e63038bc
class MUX(Ghost): <NEW_LINE> <INDENT> def __init__(self,selfobj): <NEW_LINE> <INDENT> Ghost.__init__(self, selfobj) <NEW_LINE> selfobj.IAm = 'PartOMagic.MUX' <NEW_LINE> selfobj.addProperty('App::PropertyBool','FlattenCompound',"MUX","If true, compound nesting does not follow nesting of Parts. If False, compound nesting...
MUX object, converts assembly into a compound
625990685fdd1c0f98e5f739
class Blight(Spell): <NEW_LINE> <INDENT> name = "Blight" <NEW_LINE> level = 4 <NEW_LINE> casting_time = "1 action" <NEW_LINE> casting_range = "30 feet" <NEW_LINE> components = ('V', 'S') <NEW_LINE> materials = """""" <NEW_LINE> duration = "Instantaneous" <NEW_LINE> ritual = False <NEW_LINE> magic_school = "Necromancy" ...
Necromantic energy washes over a creature of your choice that you can see within range, draining moisture and vitality from it. The target must make a Constitution saving throw. The target takes 8d8 necrotic damage on a failed save, or half as much damage on a successful one. This spell has no effect on undead or c...
625990685166f23b2e244b86
class TagAdmin(sqla.ModelView): <NEW_LINE> <INDENT> def is_accessible(self): <NEW_LINE> <INDENT> return is_admin(current_user)
Defines the Tag administration page
62599068f548e778e596cd3f
class PyssStateObject(PyssOwnerObject): <NEW_LINE> <INDENT> def __init__(self, entityType, label=None, owner=None): <NEW_LINE> <INDENT> super(PyssStateObject, self).__init__(entityType, label=label, owner=owner) <NEW_LINE> self[ON_STATE_CHANGE] = {} <NEW_LINE> <DEDENT> def existsHandlerOnStateChange(self, handlerName):...
Базовый класс для объектов модели с обработкой состояний Args: entityType - задает строку, идентифицирующую объект модели. objectNumber - номер объекта label - задаёт метку, по которой можно найти объект в контейнерах модели: Атрибуты базового класса объекта модели (в дополнение к атрибутам pyssobject.Py...
625990680a50d4780f70699a
class BasisDependentMul(BasisDependent, Mul): <NEW_LINE> <INDENT> def __new__(cls, *args, **options): <NEW_LINE> <INDENT> from sympy.vector import Cross, Dot, Curl, Gradient <NEW_LINE> count = 0 <NEW_LINE> measure_number = S.One <NEW_LINE> zeroflag = False <NEW_LINE> extra_args = [] <NEW_LINE> for arg in args: <NEW_LIN...
Denotes product of base- basis dependent quantity with a scalar.
6259906832920d7e50bc77fa
class GetTopTagsInputSet(InputSet): <NEW_LINE> <INDENT> def set_APIKey(self, value): <NEW_LINE> <INDENT> super(GetTopTagsInputSet, self)._set_input('APIKey', value) <NEW_LINE> <DEDENT> def set_Album(self, value): <NEW_LINE> <INDENT> super(GetTopTagsInputSet, self)._set_input('Album', value) <NEW_LINE> <DEDENT> def set_...
An InputSet with methods appropriate for specifying the inputs to the GetTopTags Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
62599068009cb60464d02cee
class LabelEditEventArgs(EventArgs): <NEW_LINE> <INDENT> def __getitem__(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def __new__(self,item,label=None): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> CancelEdit=property(lambda self: object(),lambda self,v: None,lambda self: None) <NE...
Provides data for the System.Windows.Forms.ListView.BeforeLabelEdit and System.Windows.Forms.ListView.AfterLabelEdit events. LabelEditEventArgs(item: int) LabelEditEventArgs(item: int,label: str)
6259906855399d3f05627cd5
class Memory(core.BaseReader): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.header = MemoryHeader() <NEW_LINE> self.data = MemoryData() <NEW_LINE> self.inputter = MemoryInputter() <NEW_LINE> self.outputter = core.TableOutputter() <NEW_LINE> self.meta = {} <NEW_LINE> self.keywords = [] <NEW_LINE> <DE...
Read a table from a data object in memory. Several input data formats are supported: **Output of asciitable.read()**:: table = asciitable.get_reader(Reader=asciitable.Daophot) data = table.read('t/daophot.dat') mem_data_from_table = asciitable.read(table, Reader=asciitable.Memory) mem_data_from_data = asciit...
62599068460517430c432c2f
class JsonKeyNotExistedError(ModelKeyNotExistError): <NEW_LINE> <INDENT> def __init__(self, fk: str, model_name: str): <NEW_LINE> <INDENT> super().__init__(f"Json key `{fk}` not existed in the model `{model_name}`.")
Raised if the json key does not exist in the model.
625990687d43ff2487427feb
class Mish(nn.Module): <NEW_LINE> <INDENT> def forward(self, input: torch.Tensor) -> torch.Tensor: <NEW_LINE> <INDENT> return input * torch.tanh(torch.nn.functional.softplus(input))
Applies the element-wise function: .. math:: \text{Mish}(x) = x * tanh(\text{softplus}(x)). Citation: Mish: A Self Regularized Non-Monotonic Activation Function, Diganta Misra, 2019, https://arxiv.org/abs/1908.08681. Shape: - Input: :math:`(N, *)` where `*` means, any number of additional dimensions ...
6259906821bff66bcd72441b
class ManufactureViewSet(mixins.RetrieveModelMixin, mixins.CreateModelMixin, mixins.ListModelMixin, mixins.UpdateModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> model = Manufacture <NEW_LINE> permission_classes = [IsAuthenticated, IsAdminUser,] <NEW_LINE> serializer_class = ManufactureDeviceSerializer <NEW_...
List all device manufactured, or manufacture a new device.
62599068627d3e7fe0e0863e
class CallInstruction(BaseInstruction): <NEW_LINE> <INDENT> ret_names = List().tag(pref=True) <NEW_LINE> action_kwargs = Typed(OrderedDict, ()).tag(pref=(ordered_dict_to_pref, ordered_dict_from_pref)) <NEW_LINE> def prepare(self): <NEW_LINE> <INDENT> source = ( "def _call_(driver, kwargs, **ch_ids):" " return {path}...
Call an instrument action and store the result in the database.
6259906823849d37ff85286a
class KeyStorage(KeyStorageType_): <NEW_LINE> <INDENT> c_tag = 'KeyStorage' <NEW_LINE> c_namespace = NAMESPACE <NEW_LINE> c_children = KeyStorageType_.c_children.copy() <NEW_LINE> c_attributes = KeyStorageType_.c_attributes.copy() <NEW_LINE> c_child_order = KeyStorageType_.c_child_order[:] <NEW_LINE> c_cardinality = Ke...
The urn:oasis:names:tc:SAML:2.0:ac:classes:TLSClient:KeyStorage element
6259906867a9b606de54767c
class FeatureTopDownExpandRule(TopDownExpandRule): <NEW_LINE> <INDENT> def __init__(self, trace=0): <NEW_LINE> <INDENT> TopDownExpandRule.__init__(self) <NEW_LINE> self.unify_memo = {} <NEW_LINE> self.trace = trace <NEW_LINE> <DEDENT> def apply_iter(self, chart, grammar, edge): <NEW_LINE> <INDENT> if edge.is_complete()...
The @C{TopDownExpandRule} specialised for feature-based grammars.
625990681b99ca4002290110
class SharedSessionByEmailManager(models.Manager): <NEW_LINE> <INDENT> pass
Manager for the SharedSessionByEmail model
62599068a8370b77170f1b7a
class SampleNodeV5(desc.Node): <NEW_LINE> <INDENT> inputs = [ desc.File(name='in', label='Input', description='', value='', uid=[0]), desc.ListAttribute(name='paramA', label='ParamA', elementDesc=desc.GroupAttribute( groupDesc=SampleGroupV2, name='gA', label='gA', description=''), description='') ] <NEW_LINE> outputs =...
Changes from V4: * 'paramA' elementDesc has changed from SampleGroupV1 to SampleGroupV2
62599068e1aae11d1e7cf3e7
class DEMove(RedBlueMove): <NEW_LINE> <INDENT> def __init__(self, sigma=1.0e-5, gamma0=None, **kwargs): <NEW_LINE> <INDENT> self.sigma = sigma <NEW_LINE> self.gamma0 = gamma0 <NEW_LINE> kwargs["nsplits"] = 3 <NEW_LINE> super(DEMove, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def setup(self, coords): <NEW_LINE> <INDEN...
A proposal using differential evolution. This `Differential evolution proposal <http://www.stat.columbia.edu/~gelman/stuff_for_blog/cajo.pdf>`_ is implemented following `Nelson et al. (2013) <https://arxiv.org/abs/1311.5229>`_. Args: sigma (float): The standard deviation of the Gaussian used to stretch th...
62599068dd821e528d6da55c
@inherit_doc <NEW_LINE> class RandomForestRegressor(JavaEstimator, HasFeaturesCol, HasLabelCol, HasPredictionCol, HasSeed, RandomForestParams, TreeRegressorParams, HasCheckpointInterval, JavaMLWritable, JavaMLReadable, HasVarianceCol): <NEW_LINE> <INDENT> @keyword_only <NEW_LINE> def __init__(self, featuresCol="feature...
`Random Forest <http://en.wikipedia.org/wiki/Random_forest>`_ learning algorithm for regression. It supports both continuous and categorical features. >>> from numpy import allclose >>> from pyspark.ml.linalg import Vectors >>> df = spark.createDataFrame([ ... (1.0, Vectors.dense(1.0)), ... (0.0, Vectors.spars...
62599068462c4b4f79dbd1bc
class AlphanumericDataGrid(DataGrid): <NEW_LINE> <INDENT> def __init__(self, request, queryset, sortable_column, extra_regex='^[0-9].*', *args, **kwargs): <NEW_LINE> <INDENT> self.current_letter = request.GET.get('letter', 'all') <NEW_LINE> regex_match = re.compile(extra_regex) <NEW_LINE> if self.current_letter == 'all...
A DataGrid subclass for an alphanumerically-paginated datagrid. This is useful for datasets that need to be queried alphanumerically, according to the starting character of their ``sortable`` column.
625990683d592f4c4edbc694
class TripletLoss(Layer): <NEW_LINE> <INDENT> def __init__(self, margin, epsilon=1e-6, **kwargs): <NEW_LINE> <INDENT> self.margin = margin <NEW_LINE> self.epsilon = epsilon <NEW_LINE> super(TripletLoss, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def build(self, input_shape): <NEW_LINE> <INDENT> super(TripletLoss, sel...
Computes the triplet distance loss given the triplet embeddings. The input to the layer is a list of tensors in the following order: `[anchor_embeddings, positive_embeddings, negative_embeddings]`. Note that this is the naive version of the triplet loss; no in-batch mining is done for "hard"...
62599068baa26c4b54d50a5c
@skipIf(NO_MOCK, NO_MOCK_REASON) <NEW_LINE> class SMTPReturnerTestCase(TestCase, LoaderModuleMockMixin): <NEW_LINE> <INDENT> def setup_loader_modules(self): <NEW_LINE> <INDENT> return {smtp: {}} <NEW_LINE> <DEDENT> def _test_returner(self, mocked_smtplib, *args): <NEW_LINE> <INDENT> ret = {'id': '12345', 'fun': 'mytest...
Test SMTP returner
625990687b180e01f3e49c3f
class SaneDefList(Extension): <NEW_LINE> <INDENT> class Prep(Preprocessor): <NEW_LINE> <INDENT> def run(self, lines): <NEW_LINE> <INDENT> new_lines = [] <NEW_LINE> for line in lines: <NEW_LINE> <INDENT> match = re.match(r'^(\s*)([^:]+):\s{2,}(.+)', line) <NEW_LINE> if match: <NEW_LINE> <INDENT> new_lines.append(match.g...
## Better definition lists
6259906801c39578d7f14310
class StorageInventoryPage(BasePage): <NEW_LINE> <INDENT> def __init__(self, driver): <NEW_LINE> <INDENT> BasePage.__init__(self, driver, __file__) <NEW_LINE> self.driver = driver <NEW_LINE> self.carton_locator = None <NEW_LINE> self.next_step_locator = None <NEW_LINE> self.outer_box_code_locator = None <NEW_LINE> self...
功能:上架详细信息页面
625990688e7ae83300eea845
class HistBinDoaneSelector(HistBinSelector): <NEW_LINE> <INDENT> def __call__(self): <NEW_LINE> <INDENT> x = self._x <NEW_LINE> if x.size <= 2: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> sg1 = np.sqrt(6.0 * (x.size - 2) / ((x.size + 1.0) * (x.size + 3))) <NEW_LINE> sigma = mt.std(x) <NEW_LINE> g1 = mt.mean(((x - mt...
Doane's histogram bin estimator. Improved version of Sturges' formula which works better for non-normal data. See stats.stackexchange.com/questions/55134/doanes-formula-for-histogram-binning
625990687d847024c075db90
class TestInlineResponse2XX3(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 make_instance(self, include_optional): <NEW_LINE> <INDENT> if include_optional : <NEW_LINE> <INDENT> return InlineRespon...
InlineResponse2XX3 unit test stubs
625990687d43ff2487427fec
class IPV4ReputationDownloader(DownloaderBase): <NEW_LINE> <INDENT> DOWNTIME_INDEX: str = "ipv4_reputation" <NEW_LINE> DOWNLOAD_FREQUENCY: int = 1 <NEW_LINE> def __init__(self) -> None: <NEW_LINE> <INDENT> self.destination = os.path.join( PyFunceble.storage.CONFIG_DIRECTORY, PyFunceble.storage.IPV4_REPUTATION_FILENAME,...
Provides the downloader of our user agent file.
625990683539df3088ecda56
class InvalidArgumentError(KbhffApiError): <NEW_LINE> <INDENT> pass
Raised when the passed arguments are invalid.
625990684e4d562566373bbe
class TrainTypesDelegate(QtWidgets.QStyledItemDelegate): <NEW_LINE> <INDENT> def createEditor(self, parent, option, index): <NEW_LINE> <INDENT> simulation = index.model().sourceModel().simulation <NEW_LINE> comboBox = QtWidgets.QComboBox(parent) <NEW_LINE> comboBox.setModel(simulation.trainTypesModel) <NEW_LINE> comboB...
TrainTypesDelegate is a delegate that provides a combo box for selecting a TrainType.
625990682ae34c7f260ac89f
class TestFile: <NEW_LINE> <INDENT> def __init__(self, root_directory, filename): <NEW_LINE> <INDENT> self.source_name = filename <NEW_LINE> extensionless, _ = path.splitext(filename) <NEW_LINE> self.binary_name = extensionless + ".sept" <NEW_LINE> self.name = path.relpath(extensionless, root_directory) <NEW_LINE> <DED...
Represents a single test and is responsible for running it to conclusion.
6259906871ff763f4b5e8f5d
class SvNoiseNode(bpy.types.Node, SverchCustomTreeNode): <NEW_LINE> <INDENT> bl_idname = 'SvNoiseNode' <NEW_LINE> bl_label = 'Vector Noise' <NEW_LINE> bl_icon = 'OUTLINER_OB_EMPTY' <NEW_LINE> def changeMode(self, context): <NEW_LINE> <INDENT> if self.out_mode == 'SCALAR': <NEW_LINE> <INDENT> if 'Noise S' not in self.ou...
Vector Noise node
625990687c178a314d78e7c7
class SQLiteDataTimeStream(DataTimeStream): <NEW_LINE> <INDENT> def __init__(self, cur, query, id, labels=None, truncate=None, timeSpan=None, tz=None, TYPE='SQLite', conn=None): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.cur = cur <NEW_LINE> self.query = query <NEW_LINE> self.query_cur = None <NEW_LINE>...
Data time stream implementation in SQLite
625990687d847024c075db91
class InvalidCredentialsError(exceptions.Error): <NEW_LINE> <INDENT> pass
Raised if credentials are not usable.
62599068a8370b77170f1b7c
class L2Normalization(HybridBlock): <NEW_LINE> <INDENT> def __init__(self, mode, **kwargs): <NEW_LINE> <INDENT> self._mode = mode <NEW_LINE> super(L2Normalization, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def hybrid_forward(self, F, x): <NEW_LINE> <INDENT> return F.L2Normalization(x, mode=self._mode, name='l2_norm'...
Applies L2 Normalization to input. Parameters ---------- mode : str Mode of normalization. See :func:`~mxnet.ndarray.L2Normalization` for available choices. Inputs: - **data**: input tensor with arbitrary shape. Outputs: - **out**: output tensor with the same shape as `data`.
625990687047854f46340b6d