code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ZoneAddrBookSet( Resource ): <NEW_LINE> <INDENT> PROPERTIES = [ 'description', 'addr_list', 'set_list', ] <NEW_LINE> def _xml_at_top(self): <NEW_LINE> <INDENT> return E.security(E.zones( E('security-zone', E.name(self.P._name), E('address-book', E('address-set',E.name(self._name)) ) ) )) <NEW_LINE> <DEDENT> def _... | [edit security zone security-zone <zone> address-book address-set <name>]
Resource name: str
<name> is the name of the address sets
Managed by: ZoneAddrBook
<zone> is the name of the secuirty zone | 62598f766fece00bbaccb282 |
class Integrator: <NEW_LINE> <INDENT> def setdfun(self, dfun): <NEW_LINE> <INDENT> xtest = dfun(self.time, self.x) <NEW_LINE> if not isinstance(xtest, np.ndarray): <NEW_LINE> <INDENT> def array_dfun(t, x): <NEW_LINE> <INDENT> x = dfun(t, x) <NEW_LINE> xarray = np.array(x) <NEW_LINE> return xarray <NEW_LINE> <DEDENT> se... | Defines reusable attribute settors where checking is needed | 62598f7682261d6c5272fb51 |
class SymbolResolverMixin(object): <NEW_LINE> <INDENT> def resolve_dependency(self, xml_path): <NEW_LINE> <INDENT> with open(xml_path, 'r') as xml_file: <NEW_LINE> <INDENT> symbol_xml = xml_file.read() <NEW_LINE> <DEDENT> updated_xml = fix_xml_node( symbol_xml, self.collection_path, QgsApplication.svgPaths()) <NEW_LINE... | Mixin for Resources Handler that need to resolve image symbol path. | 62598f7630dc7b766599f153 |
class DispatchReport(Report): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Report.__init__(self) <NEW_LINE> self.reboot = dict(scheduled=False, details={}) | The (internal) dispatch report is returned for all handler methods
dispatched to handlers. It represents an aggregation of handler reports.
The handler (class) reports are collated by type_id (content, distributor, system).
The overall succeeded is True (succeeded) only if all of the handler reports have
a succeeded o... | 62598f76a4f1c619b294dee1 |
class Protocol(asyncio.DatagramProtocol): <NEW_LINE> <INDENT> def __init__(self, recvq, excq, drained): <NEW_LINE> <INDENT> self._recvq = recvq <NEW_LINE> self._excq = excq <NEW_LINE> self._drained = drained <NEW_LINE> self._drained.set() <NEW_LINE> self._transport = None <NEW_LINE> <DEDENT> def connection_made(self, t... | asyncio.DatagramProtocol for feeding received packets into the
Datagram{Client,Server} which handles converting the lower level callback
based asyncio into higher level coroutines. | 62598f77fb3f5b602db47e2c |
class HashType(RedisType, MutableMapping): <NEW_LINE> <INDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> if not self._r.hexists(self.key, key): <NEW_LINE> <INDENT> raise KeyError(key) <NEW_LINE> <DEDENT> return to_value(self._r.hget(self.key, key)) <NEW_LINE> <DEDENT> def __setitem__(self, key, value): <NEW_LINE>... | Dict-like wrapper for list data | 62598f7707d97122c4216598 |
class CompraUpdateView(UpdateView): <NEW_LINE> <INDENT> model = Compra <NEW_LINE> form_class = CompraForm <NEW_LINE> template_name = "compras/compra/form.html" <NEW_LINE> success_url = reverse_lazy("compras:compra_list") <NEW_LINE> @method_decorator(permission_resource_required) <NEW_LINE> def dispatch(self, request, *... | Tipo Documento Update View. | 62598f7776d4e153a661c50c |
class Tarea(ModelView, ModelSQL): <NEW_LINE> <INDENT> __name__ = 'oci.tarea' <NEW_LINE> name = fields.Char('Nombre', required=True) <NEW_LINE> code = fields.Char('Codigo') <NEW_LINE> loc = fields.One2Many('oci.tarea.loc', 'tarea', 'Localizacion', order=[('name', 'ASC')]) | Tareas para los cierres | 62598f777c178a314d78cd9e |
class GK_EditBevelCurve(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "gkcurve.edit_bevel_curve" <NEW_LINE> bl_label = "Edit Bevel" <NEW_LINE> bl_description = "Редактировать профиль кривой" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <INDENT... | Nice Useful Tooltip | 62598f77b830903b9686e0ee |
@dataclasses.dataclass <NEW_LINE> class CmdOptions: <NEW_LINE> <INDENT> torrent_file: Path | Command line options. | 62598f7715fb5d323ce7e620 |
class CoreMonsterDelta(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.damage_die = 0 <NEW_LINE> self.hp_bonus = 0 <NEW_LINE> self.tags_to_add = [] <NEW_LINE> self.damage_tags_to_add = [] <NEW_LINE> self.damage_bonus = 0 <NEW_LINE> self.armor_bonus = 0 <NEW_LINE> self.best_damage = False <NEW_... | A delta between the current state of a monster and a desired state. | 62598f7707d97122c4216599 |
class EchoReply(GenericMessage): <NEW_LINE> <INDENT> header = Header(message_type=Type.OFPT_ECHO_REPLY, length=8) <NEW_LINE> def __init__(self, xid=None): <NEW_LINE> <INDENT> super().__init__(xid) | OpenFlow Reply message.
This message does not contain a body beyond the OpenFlow Header. | 62598f77a8ecb03325870b00 |
class Matrix: <NEW_LINE> <INDENT> def __init__(self, w, h, z, player): <NEW_LINE> <INDENT> super(Matrix, self).__init__() <NEW_LINE> self.w = w <NEW_LINE> self.h = h <NEW_LINE> self.z = z <NEW_LINE> self.matrix = [] <NEW_LINE> self.player = player <NEW_LINE> self.objects = [] <NEW_LINE> self.__initialize() <NEW_LINE> <... | Matrix that holds all the game entities | 62598f77d99f1b3c44d04fa4 |
class HPShellFormingProcess(HasStrictTraits): <NEW_LINE> <INDENT> L_x = Float(10, auto_set=False, enter_set=True, input=True) <NEW_LINE> L_y = Float(10, auto_set=False, enter_set=True, input=True) <NEW_LINE> n_stripes = Int(2, auto_set=False, enter_set=True, input=True) <NEW_LINE> ctf = Property(depends_on='+input') <N... | Define the simulation task prescribing the boundary conditions,
target surfaces and configuration of the algorithm itself. | 62598f778c3a8732951f5e46 |
class SubscriberRouter(object): <NEW_LINE> <INDENT> def db_for_read(self, model, **hints): <NEW_LINE> <INDENT> if model._meta.app_label == 'subscribers': <NEW_LINE> <INDENT> return 'subscribers' <NEW_LINE> <DEDENT> return None <NEW_LINE> <DEDENT> def db_for_write(self, model, **hints): <NEW_LINE> <INDENT> if model._met... | A router to control all database operations on models in the
subscribers application. | 62598f770383005118f6cff9 |
class StaticMapMarker(StaticMapParam): <NEW_LINE> <INDENT> def __init__(self, locations, size=None, color=None, label=None): <NEW_LINE> <INDENT> super(StaticMapMarker, self).__init__() <NEW_LINE> if size: <NEW_LINE> <INDENT> self.params.append("size:%s" % size) <NEW_LINE> <DEDENT> if color: <NEW_LINE> <INDENT> self.par... | Handles marker parameters for Maps Static API. | 62598f7750485f2cf55da867 |
class Add(Node): <NEW_LINE> <INDENT> instance = 0 <NEW_LINE> _cache = { } <NEW_LINE> def __init__(self, number1=0, number2=0): <NEW_LINE> <INDENT> super(Add, self).__init__() <NEW_LINE> self.number1 = Number() <NEW_LINE> self.number2 = Number() <NEW_LINE> self.output = Number() <NEW_LINE> self.number1.setValue(number1)... | This node adds two numbers | 62598f778da39b475be02ada |
class BoolGaugeCell(object): <NEW_LINE> <INDENT> __slots__ = ["_cell"] <NEW_LINE> def __init__(self, cell): <NEW_LINE> <INDENT> self._cell = cell <NEW_LINE> <DEDENT> def set(self, value): <NEW_LINE> <INDENT> pywrap_tfe.TFE_MonitoringBoolGaugeCellSet(self._cell, value) <NEW_LINE> <DEDENT> def value(self): <NEW_LINE> <IN... | A single boolean value stored in an `BoolGauge`. | 62598f7730dc7b766599f155 |
class Circle(Shape, Movable): <NEW_LINE> <INDENT> def __init__(self, x=0, y=0, radius=0): <NEW_LINE> <INDENT> Shape.__init__(self, x, y) <NEW_LINE> self._x = x <NEW_LINE> self._y = y <NEW_LINE> self._radius = radius <NEW_LINE> self._calculate_points() <NEW_LINE> <DEDENT> def _calculate_area(self): <NEW_LINE> <INDENT> s... | Handles all functionality for creating circles.
Functions: (6) _calculate_area(), _calculate_perimeter(), _calculate_points(), display_stats(),
move(new_x, new_y), scale(scale_x, scale_y) | 62598f7730c21e258be980fe |
class Sprite: <NEW_LINE> <INDENT> def __init__(self, game): <NEW_LINE> <INDENT> super(Sprite, self).__init__() <NEW_LINE> self.game = game <NEW_LINE> self.endgame = False <NEW_LINE> self.coordinates = None <NEW_LINE> <DEDENT> def move(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def coords(self): <NEW_LINE> <IND... | docstring for Sprite | 62598f77d10714528d69d7c6 |
class PiFaceCAD(pifacecommon.mcp23s17.MCP23S17, pifacecommon.interrupts.GPIOInterruptDevice): <NEW_LINE> <INDENT> def __init__(self, hardware_addr=0, bus=DEFAULT_SPI_BUS, chip_select=DEFAULT_SPI_CHIP_SELECT, init_board=True): <NEW_LINE> <INDENT> super(PiFaceCAD, self).__init__(hardware_addr, bus, chip_select) <NEW_LINE... | A PiFace Control and Display board.
:attribute: switch_port -- See
:class:`pifacecommon.mcp23s17.MCP23S17RegisterNeg`.
:attribute: switches --
list containing :class:`pifacecommon.mcp23s17.MCP23S17RegisterBitNeg`.
:attribute: lcd -- See :class:`pifacecad.lcd.PiFaceLCD`.
Example:
>>> cad = pifacecad.PiFaceCAD... | 62598f7773bcbd0ca4bc9b47 |
class Update(ValuesBase): <NEW_LINE> <INDENT> __visit_name__ = "update" <NEW_LINE> def __init__( self, table, whereclause=None, values=None, inline=False, bind=None, prefixes=None, returning=None, return_defaults=False, preserve_parameter_order=False, **dialect_kw ): <NEW_LINE> <INDENT> self._preserve_parameter_order =... | Represent an Update construct.
The :class:`_expression.Update`
object is created using the :func:`update()`
function. | 62598f778e05c05ec3f6eac2 |
class HttpVerb(object): <NEW_LINE> <INDENT> GET = 'GET' <NEW_LINE> PUT = 'PUT' <NEW_LINE> DELETE = 'DELETE' <NEW_LINE> HEAD = 'HEAD' <NEW_LINE> POST = 'POST' | HttpVerbs as Enums | 62598f7796565a6dacd2cbf7 |
class OpenCloseType(StringType): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def validate(cls, value: str): <NEW_LINE> <INDENT> super().validate(value) <NEW_LINE> if value not in ['OPEN', 'CLOSED']: <NEW_LINE> <INDENT> raise ValueError() | OpenCloseType type class | 62598f7738b623060ffa8993 |
class SecurityRuleAssociations(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'network_interface_association': {'key': 'networkInterfaceAssociation', 'type': 'NetworkInterfaceAssociation'}, 'subnet_association': {'key': 'subnetAssociation', 'type': 'SubnetAssociation'}, 'default_security_rules': {'... | All security rules associated with the network interface.
:param network_interface_association: Network interface and its custom security rules.
:type network_interface_association:
~azure.mgmt.network.v2018_07_01.models.NetworkInterfaceAssociation
:param subnet_association: Network interface and its custom security ... | 62598f7715baa72349461878 |
class KarmaAssignedEvent: <NEW_LINE> <INDENT> implements(IKarmaAssignedEvent) <NEW_LINE> def __init__(self, object, karma): <NEW_LINE> <INDENT> self.object = object <NEW_LINE> self.karma = karma | See `IKarmaAssignedEvent`. | 62598f77507cdc57c63a4683 |
class BasicModelDetailObjectiveRemoveMixin(PermissionRequiredMixin, LoginRequiredMixin): <NEW_LINE> <INDENT> def dispatch(self, request, *args, **kwargs): <NEW_LINE> <INDENT> self.object = self.get_object() <NEW_LINE> return super().dispatch(request, *args, **kwargs) <NEW_LINE> <DEDENT> def has_permission(self): <NEW_L... | This is the class that manage the permissions for the objective addition | 62598f7766656f66f7d59cea |
class Register(View): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> return render(request, "PWS_PR_PriceBook/register.html") <NEW_LINE> <DEDENT> def post(self, request): <NEW_LINE> <INDENT> email = request.POST.get("InputEmail") <NEW_LINE> password = request.POST.get("InputPassword") <NEW_LINE> confir... | 注册用户 | 62598f77b57a9660fecd1377 |
class Post(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'posts' <NEW_LINE> id = db.Column(db.String(45), primary_key=True) <NEW_LINE> title = db.Column(db.String(255)) <NEW_LINE> picture = db.Column(db.String(255)) <NEW_LINE> text = db.Column(db.Text()) <NEW_LINE> publish_date = db.Column(db.DateTime) <NEW_LINE> user... | Represents Proected posts. | 62598f77a4f1c619b294dee4 |
class ParentFlowWithoutResponses(flow.GRRFlow): <NEW_LINE> <INDENT> success = False <NEW_LINE> @flow.StateHandler() <NEW_LINE> def Start(self): <NEW_LINE> <INDENT> self.CallFlow( "ChildFlow", send_replies=False, next_state="ParentReceiveHello") <NEW_LINE> <DEDENT> @flow.StateHandler() <NEW_LINE> def ParentReceiveHello(... | This flow will launch a child flow. | 62598f773eb6a72ae0389f3b |
class LUTStretcher(BaseStretcher): <NEW_LINE> <INDENT> stretchtype = 'lut' <NEW_LINE> def __init__(self, offset=0, vmin=0, vmax=255, dtype='uint8', fill=True): <NEW_LINE> <INDENT> if np.dtype(dtype) not in (np.uint8, np.uint16): <NEW_LINE> <INDENT> raise ValueError('only "uint8" and "uint16" are allowed.') <NEW_LINE> <... | Stretch using LUT.
Perform an arbitrary scaling on unsigned data using a look-up table
(LUT).
An optional offset is applied before LUT application. | 62598f7707d97122c421659b |
class IntlArFaHePageSet(story.StorySet): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(IntlArFaHePageSet, self).__init__( archive_data_file='data/intl_ar_fa_he.json', cloud_storage_bucket=story.PARTNER_BUCKET) <NEW_LINE> urls_list = [ 'http://msn.co.il/', 'http://ynet.co.il/', 'http://www.islamweb.n... | Popular pages in right-to-left languages Arabic, Farsi and Hebrew. | 62598f77d164cc617582086f |
class MpdContext(object): <NEW_LINE> <INDENT> dispatcher = None <NEW_LINE> session = None <NEW_LINE> events = None <NEW_LINE> subscriptions = None <NEW_LINE> def __init__(self, dispatcher, session=None): <NEW_LINE> <INDENT> self.dispatcher = dispatcher <NEW_LINE> self.session = session <NEW_LINE> self.events = set() <N... | This object is passed as the first argument to all MPD command handlers to
give the command handlers access to important parts of Mopidy. | 62598f77a05bb46b3848a177 |
class SmsCodeView(View): <NEW_LINE> <INDENT> def post(self, request): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> mobile = request.POST.get('mobile') <NEW_LINE> redis_conn = get_redis_connection('sms_code') <NEW_LINE> sms_code = 888888 <NEW_LINE> print(sms_code) <NEW_LINE> redis_conn.setex('sms_%s' % mobile, 300, sms_... | 容联云 | 62598f778c3a8732951f5e48 |
class ManagedClusterLoadBalancerProfile(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'allocated_outbound_ports': {'maximum': 64000, 'minimum': 0}, 'idle_timeout_in_minutes': {'maximum': 120, 'minimum': 4}, } <NEW_LINE> _attribute_map = { 'managed_outbound_i_ps': {'key': 'managedOutboundIPs', 'type':... | Profile of the managed cluster load balancer.
:ivar managed_outbound_i_ps: Desired managed outbound IPs for the cluster load balancer.
:vartype managed_outbound_i_ps:
~azure.mgmt.containerservice.v2021_09_01.models.ManagedClusterLoadBalancerProfileManagedOutboundIPs
:ivar outbound_ip_prefixes: Desired outbound IP Pre... | 62598f7721bff66bcd72255d |
class RiabHelpTest(unittest.TestCase): <NEW_LINE> <INDENT> def XtestDialogLoads(self): <NEW_LINE> <INDENT> myHelp = RiabHelp(PARENT) <NEW_LINE> myText = myHelp.ui.webView.page().currentFrame().toPlainText() <NEW_LINE> myHelp.close() <NEW_LINE> myExpectedText = 'This is the project: Risk in a Box - QGIS' <NEW_LINE> myMe... | Test the risk in a box help GUI
.. note:: Currently these tests will all fail unless you comment out the
APP.exec_() lines because the web view does not load content without
the main application event loop running. | 62598f77d4950a0f3b110ab3 |
class LoginForm(forms.Form): <NEW_LINE> <INDENT> email = forms.CharField( label="Email", widget=forms.EmailInput( attrs={ 'class': 'form-control', 'placeholder': 'Email', 'id': 'email', 'data-required': 'true', 'data-describedby': 'email-description', 'data-description': 'email', 'data-pattern': r'^(([^<>()[\]\\.,;:\s@... | The class is to create login form | 62598f771d351010ab8f3439 |
class TenCrop(object): <NEW_LINE> <INDENT> def __init__(self, size, vertical_flip=False): <NEW_LINE> <INDENT> self.size = size <NEW_LINE> if isinstance(size, numbers.Number): <NEW_LINE> <INDENT> self.size = (int(size), int(size)) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> assert len(size) == 2, "Please provide only ... | Crop the given PIL Image into four corners and the central crop plus the flipped version of
these (horizontal flipping is used by default)
.. Note::
This transform returns a tuple of images and there may be a mismatch in the number of
inputs and targets your Dataset returns. See below for an example of how t... | 62598f77ac7a0e7691f71e12 |
class DataverseDataFileMetadataResponse(DataverseClientResponse): <NEW_LINE> <INDENT> def get_data(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return json.loads(self.data.text) <NEW_LINE> <DEDENT> except Exception: <NEW_LINE> <INDENT> return {} | Class responsible for handling dataverse details response | 62598f7771ff763f4b5e7066 |
class Warning(Exception): <NEW_LINE> <INDENT> pass | Exception for important warnings | 62598f77287bf620b62714b2 |
class DeleteResponse: <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.requested = False <NEW_LINE> <DEDENT> def request_callback(self, request, uri, response_headers): <NEW_LINE> <INDENT> self.requested = True <NEW_LINE> return [200, response_headers, self.data] | Returns body and keep flag | 62598f7730c21e258be98100 |
class PatchSeveralDependencies(Package): <NEW_LINE> <INDENT> homepage = "http://www.example.com" <NEW_LINE> url = "http://www.example.com/patch-a-dependency-1.0.tar.gz" <NEW_LINE> version('2.0', '0123456789abcdef0123456789abcdef') <NEW_LINE> version('1.0', '0123456789abcdef0123456789abcdef') <NEW_LINE> variant('foo', d... | Package that requries multiple patches on a dependency. | 62598f77be383301e02530f2 |
class HeraCallback(Callback): <NEW_LINE> <INDENT> def __init__(self, model_key, host, port, dispatch=None, hera_config=None): <NEW_LINE> <INDENT> if dispatch is None: <NEW_LINE> <INDENT> self.dispatch = get_socketio_dispatcher(host, port) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.dispatch = dispatch <NEW_LINE>... | A Keras callback streaming data to a hera socket server | 62598f774e696a045264da7c |
class Client(object): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.http_client = http._construct_http_client(*args, **kwargs) <NEW_LINE> self.services = services.ServiceManager(self.http_client) <NEW_LINE> self.accounts = accounts.AccountManager(self.http_client) | Client for the King v1 API.
:param string endpoint: A user-supplied endpoint URL for the king
service.
:param string token: Token for authentication.
:param integer timeout: Allows customization of the timeout for client
http requests. (optional) | 62598f773eb6a72ae0389f3d |
class KmaxCNN(object): <NEW_LINE> <INDENT> def __init__(self, vocab_size, nb_labels, emb_dim, maxlen, embedding_weights, filter_hs, nb_filters, dropout_p, trainable_embeddings, pretrained_embeddings): <NEW_LINE> <INDENT> self.nb_labels = nb_labels <NEW_LINE> self.k = 8 <NEW_LINE> if pretrained_embeddings is False: <NEW... | A CNN for text classification.
embedding --> conv --> k-max pool --> softmax | 62598f7715baa7234946187a |
class DialingPermissionsPage(Page): <NEW_LINE> <INDENT> def __init__(self, version, response, solution): <NEW_LINE> <INDENT> super(DialingPermissionsPage, self).__init__(version, response) <NEW_LINE> self._solution = solution <NEW_LINE> <DEDENT> def get_instance(self, payload): <NEW_LINE> <INDENT> return DialingPermiss... | PLEASE NOTE that this class contains preview products that are subject
to change. Use them with caution. If you currently do not have developer
preview access, please contact help@twilio.com. | 62598f771d351010ab8f343a |
class BaseQuestion(mixins.ThematicElementMixin, mixins.AsFinalMixin): <NEW_LINE> <INDENT> answer_type = None <NEW_LINE> label = models.CharField(_('Question label') , max_length=220) <NEW_LINE> hint_text = models.CharField(_('Question hint text'), max_length=120, blank=True, null=True) <N... | Base class for question, will be inherited by concrete question typologies | 62598f7721bff66bcd72255f |
class BoolDictFeat(BoolMixin, DictMFeatMixin, DictFeat): <NEW_LINE> <INDENT> def __init__(self, get_cmd, set_cmd, true_value=None, false_value=None, keys=None): <NEW_LINE> <INDENT> BoolMixin.__init__(self, true_value, false_value) <NEW_LINE> DictMFeatMixin.__init__(self, get_cmd, set_cmd, keys) | A boolean DictFeat for message based drivers.
If the True and False are not given,
class attributes `DRIVER_TRUE` and `DRIVER_FALSE` will be used | 62598f778a349b6b43685b3e |
class GridView(QWidget): <NEW_LINE> <INDENT> pick_position = pyqtSignal(tuple) <NEW_LINE> colors = { "background": QColor(250, 250, 250), "grid_line": QColor(40, 40, 40), "wall": QColor(100, 100, 100), "start": QColor(0, 100, 0), "end": QColor(100, 0, 0), } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super().__i... | Top level widget for the world grid view region.
This will have different internal representations depending on the
world configuration that the user selects.
Note that if the world have higher dimension,
the view restricts to the first N usable coordinates.
If the world have lower dimensionality the remaining M dime... | 62598f77d99f1b3c44d04fa9 |
class RollingWindowFilter(aFilter): <NEW_LINE> <INDENT> def __init__(self, source, **kwargs): <NEW_LINE> <INDENT> super(RollingWindowFilter, self).__init__(source, **kwargs) <NEW_LINE> self.source = source <NEW_LINE> self.cache = {} <NEW_LINE> self.window_size = kwargs.pop("window_size", 1) <NEW_LINE> self.channels = k... | Cache a frame stream for ``window_size`` number of records, yielding
a frame for each new record. The ``window_size`` only affects the first
dimension.
Note that a "windowed" frame is yielded for *each* new record, NOT for
every ``window_size`` number of records. This is useful when a frame of
the past N records is wa... | 62598f778da39b475be02ade |
class Redundancy(Model): <NEW_LINE> <INDENT> _attrs = { 'redundancy-mode': '', 'redundancy-mode-numeric': '', 'redundancy-status': '', 'redundancy-status-numeric': '', 'controller-a-status': '', 'controller-a-status-numeric': '', 'controller-a-serial-number': '', 'controller-b-status': '', 'controller-b-status-numeric'... | Class to represent the redundancy model from the ME4 API
https://www.dell.com/support/manuals/uk/en/ukbsdt1/powervault-me4012/me4_series_cli_pub/redundancy | 62598f77c432627299fa28d4 |
class FactoryException(Exception): <NEW_LINE> <INDENT> pass | Used in mode selection | 62598f7773bcbd0ca4bc9b4b |
class JsonRpcServer(Server): <NEW_LINE> <INDENT> max_connections = 1000 <NEW_LINE> def __init__(self, message_handler, version='2.0', timeout=30): <NEW_LINE> <INDENT> super(JsonRpcServer, self).__init__(self._create_protocol, timeout=timeout) <NEW_LINE> self._message_handler = message_handler <NEW_LINE> if version not ... | A JSON-RPC server. | 62598f778e05c05ec3f6eac4 |
class FlowArea(ConstraintsWidget): <NEW_LINE> <INDENT> direction = Enum( 'left_to_right', 'right_to_left', 'top_to_bottom', 'bottom_to_top' ) <NEW_LINE> align = Enum('leading', 'trailing', 'center', 'justify') <NEW_LINE> horizontal_spacing = Range(low=0, value=10) <NEW_LINE> vertical_spacing = Range(low=0, value=10) <N... | A widget which lays out its children in flowing manner, wrapping
around at the end of the available space. | 62598f7773bcbd0ca4bc9b4c |
class ArticleImageReq1Model(ImageModelReq, Article1Model): <NEW_LINE> <INDENT> class Meta(ImageModelReq.Meta, Article1Model.Meta): <NEW_LINE> <INDENT> abstract = True | Абстрактный класс обязат. изображение + статьи + активность, сортировка + дата создания/изменения + мета-теги | 62598f7763f4b57ef00859ed |
class SortieSuivi(models.Model): <NEW_LINE> <INDENT> _name = 'tchandra.sortie.suivi' <NEW_LINE> _description = 'Sortie suivi dans TCHANDRA' <NEW_LINE> date_creation=fields.Datetime(string="Date de création du formulaire", compute='_compute_date_creation') <NEW_LINE> date_derniere_modification=fields.Datetime(string="Da... | Class Sortie Suivi de TCHANDRA. | 62598f777c178a314d78cda4 |
class CorrMM(BaseCorrMM): <NEW_LINE> <INDENT> _direction = "forward" <NEW_LINE> def make_node(self, img, kern): <NEW_LINE> <INDENT> img = as_tensor_variable(img) <NEW_LINE> kern = as_tensor_variable(kern) <NEW_LINE> img, kern = self.as_common_dtype(img, kern) <NEW_LINE> if img.type.ndim != 4: <NEW_LINE> <INDENT> raise ... | CPU correlation implementation using Matrix Multiplication.
Parameters
----------
border_mode
The width of a border of implicit zeros to pad the
input with. Must be a tuple with 2 elements giving the numbers of rows
and columns to pad on each side, or a single integer to pad the same
on all sides, or a... | 62598f77e76e3b2f99fd832e |
class TestClass(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.new_user = User('DavidHashisoma','XyZ3thf1') <NEW_LINE> <DEDENT> def test_init(self): <NEW_LINE> <INDENT> self.assertEqual(self.new_user.username,'Davidhashisoma') <NEW_LINE> self.assertEqual(self.new_user.password,'XyZ3th... | A Test class that defines test cases for the User class. | 62598f77287bf620b62714b4 |
class Address(_Item): <NEW_LINE> <INDENT> def __init__(self, addr, netmask, num, ip_version): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.addr = addr <NEW_LINE> self.netmask = netmask <NEW_LINE> self.num = num <NEW_LINE> self.ip_version = ip_version <NEW_LINE> <DEDENT> def __lt__(self, other): <NEW_LINE> <IN... | An IPv4/6 address
Also saves the subnet mask and a number for uniqueness among all addresses
of a given interface | 62598f778c3a8732951f5e4b |
class HighScore(object): <NEW_LINE> <INDENT> def __init__(self, score, name): <NEW_LINE> <INDENT> self.score = score <NEW_LINE> self.name = name <NEW_LINE> <DEDENT> def compare(self, other): <NEW_LINE> <INDENT> if(self.compare2 == -1): <NEW_LINE> <INDENT> if(self.compare3(other) == -1): <NEW_LINE> <INDENT> return 1 <NE... | classdocs | 62598f7707d97122c421659f |
class EmailLinkTreeNode(TreeNode): <NEW_LINE> <INDENT> inline = True <NEW_LINE> close_inlines = False <NEW_LINE> canonical_tag_name = 'email' <NEW_LINE> alias_tag_names = () <NEW_LINE> html_render_template = '<a href="mailto:{email_address}"{extra_args}>{inner_html}</a>' <NEW_LINE> def is_email_inside_tag_content(self)... | Email link tree node class. | 62598f770a366e3fb87dc2c6 |
class ZAutomationDeviceList(object): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> self.__dict__ = data <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "'{!s}'".format(self.id) | Collection of devices. | 62598f775e10d32532ce356c |
class FlowTemplate(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=128, unique=True) <NEW_LINE> description = models.TextField(blank=True, null=True) <NEW_LINE> flow_type_choices = (('_FlowVaction', '请假流程'), ('_FlowTrip', '出差申请'), ('_FlowBecome_Full_Staff', '转正申请'), ('_FlowLoan', '借款申请'), ) <NEW_L... | 流程模版 | 62598f7721bff66bcd722561 |
class Vertex: <NEW_LINE> <INDENT> def __init__(self, key): <NEW_LINE> <INDENT> self.key = key <NEW_LINE> self.edges = [] <NEW_LINE> self.num_edges = 0 <NEW_LINE> self.status = UNDISCOVERED <NEW_LINE> self.predecessor = None <NEW_LINE> self.color = BLACK <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return... | class for Vertex
Attributes:
key(int): a key
val (int): a value
edges (list): a list of tuples of (Vertex, weight)
num_edges (int): number of edges
status(str): None or discovered or done
predecessor (Vertex): the predecessor
color (str): RED or BLACK | 62598f771d351010ab8f343d |
class InstrumentManager(SessionManager): <NEW_LINE> <INDENT> def instruments(self, query: Optional[str] = None) -> Iterable[Instrument]: <NEW_LINE> <INDENT> url = ( urls.INSTRUMENTS_BASE if query is not None else urls.instruments(query=query) ) <NEW_LINE> return base_paginator(url, self, InstrumentPaginatorSchema()) <N... | Group together methods that manipulate instruments.
Examples:
>>> im = InstrumentManager()
>>> im.instruments() # Get all instruments
>>> im.instrument(symbol="TSLA") # Get a particular instrument | 62598f778a349b6b43685b40 |
class Dropout2d(_DropoutNd): <NEW_LINE> <INDENT> def forward(self, input): <NEW_LINE> <INDENT> return F.dropout2d(input, self.p, self.training, self.inplace) | Randomly zero out entire channels (a channel is a 2D feature map,
e.g., the :math:`j`-th channel of the :math:`i`-th sample in the
batched input is a 2D tensor :math:`\text{input}[i, j]`) of the input tensor).
Each channel will be zeroed out independently on every forward call.
with probability :attr:`p` using samples ... | 62598f77d18da76e235b6db4 |
class Recommendation(RecommendsBaseModel): <NEW_LINE> <INDENT> user = models.PositiveIntegerField() <NEW_LINE> score = models.FloatField(null=True, blank=True, default=None) <NEW_LINE> objects = RecommendationManager() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> unique_together = ('object_ctype', 'object_id', 'user') <N... | Recommended an object for a particular user | 62598f771f5feb6acb162534 |
class Logger(object): <NEW_LINE> <INDENT> DEBUG = logging.DEBUG <NEW_LINE> NOTSET = logging.NOTSET <NEW_LINE> INFO = logging.INFO <NEW_LINE> WARN = logging.WARN <NEW_LINE> ERROR = logging.ERROR <NEW_LINE> CRITICAL = logging.CRITICAL <NEW_LINE> def __init__(self, name="__default__", level=logging.NOTSET): <NEW_LINE> <IN... | !!Usage: please create a logger with one line as shown in the example below.
logger = Logger(name = "word2vec", level = Logger.DEBUG).logger
logger.debug('debug message')
logger.info('info message')
logger.warn('warn message')
logger.error('error message')
logger.critical('critical message')
This logger pr... | 62598f7782261d6c5272fb55 |
class MessagesSharingViewSet(SharingViewset): <NEW_LINE> <INDENT> authentication_classes = (authentication.SessionAuthentication, JSONWebTokenAuthentication) <NEW_LINE> permission_classes = (IsAuthenticated, IsOwnerOrReadOnly) <NEW_LINE> SET_PATH = '4' | 获取消息页面分享数据 | 62598f77004d5f362081ec7a |
class Queue: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.size = 0 <NEW_LINE> self.head = QNode() <NEW_LINE> self.last = self.head <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> string = "<" <NEW_LINE> node = self.head.next <NEW_LINE> while node: <NEW_LINE> <INDENT> string += " " + str(n... | Queue class | 62598f7730c21e258be98104 |
class MenuDrop(DropDown): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> app = App.get_running_app() <NEW_LINE> app.drop = self <NEW_LINE> super(MenuDrop, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def click(self, instance, values): <NEW_LINE> <INDENT> for value in values: <NEW_LINE> <INDENT> b... | A list of :mod:`main.SizedButton` s displayed as a menu, where each
button may create another menu depending on the function bound to it. The
main menu is handled through a single instance of :mod:`main.MenuDrop`
which is instantiated before :mod:`main.Krysa.build` function.
Each click/tap on the menu button then assi... | 62598f77a4f1c619b294dee9 |
class S3OrganisationGroupPersonModel(S3Model): <NEW_LINE> <INDENT> names = ("org_group_person",) <NEW_LINE> def model(self): <NEW_LINE> <INDENT> T = current.T <NEW_LINE> tablename = "org_group_person" <NEW_LINE> self.define_table(tablename, self.org_group_id(empty = False, ondelete = "CASCADE", ), self.pr_person_id(emp... | Link table between Organisation Groups & Persons | 62598f774d74a7450cd58b55 |
class TestReport(object): <NEW_LINE> <INDENT> def test_report(self): <NEW_LINE> <INDENT> report = Report('node1.puppet.board', 'hash#', '2013-08-01T09:57:00.000Z', '2013-08-01T10:57:00.000Z', '2013-08-01T10:58:00.000Z', '1351535883', 3, '3.2.1', 'af9f16e3-75f6-4f90-acc6-f83d6524a6f3') <NEW_LINE> assert report.node == '... | Test the Report object. | 62598f776aa9bd52df0d47d5 |
class _BlockMemoryAsSequence(object): <NEW_LINE> <INDENT> def __init__(self, dims): <NEW_LINE> <INDENT> self._dims = dims <NEW_LINE> <DEDENT> def indToSub(self, idx): <NEW_LINE> <INDENT> dims = self._dims <NEW_LINE> ndims = len(dims) <NEW_LINE> sub = [1] * ndims <NEW_LINE> for dIdx, d in enumerate(dims[::-1]): <NEW_LIN... | Helper class used in calculation of slices for requested blocks of a particular size.
The blocking strategy represented by objects of this class is to split into N equally-sized
subdivisions along each dimension, starting with the rightmost dimension.
So for instance consider an Image with spatial dimensions 5, 10, 3... | 62598f777b25080760ed6d9f |
class AzureDevops(object): <NEW_LINE> <INDENT> def __init__(self, org_name, project_name): <NEW_LINE> <INDENT> self.org_name = org_name <NEW_LINE> self.project_name = project_name <NEW_LINE> self.auth = '' <NEW_LINE> self.proxy = { 'http' : '', 'https' : '' } <NEW_LINE> self.proxyauth = None <NEW_LINE> <DEDENT> def se... | DevOps Build Pipeline Class | 62598f77d164cc6175820875 |
class USBPrinter(commandSetClass): <NEW_LINE> <INDENT> def __init__(self, idVendor, idProduct, interface=0, inputEndPoint=0x82, outputEndPoint=0x01, initialize=True): <NEW_LINE> <INDENT> super(USBPrinter, self).__init__() <NEW_LINE> self.idVendor = idVendor <NEW_LINE> self.idProduct = idProduct <NEW_LINE> self.interfac... | USB printer class
Inherits dynamically from printer model commandSets based on available commandSets in escpos.commandset.*
namespace by default Generic command set is loaded | 62598f7707d97122c42165a1 |
class QualifiedNameTests(TestCase): <NEW_LINE> <INDENT> def test_repr(self): <NEW_LINE> <INDENT> self.assertEqual( "<QualifiedName xmlns=None local='tag'>", repr(QualifiedName('tag'))) <NEW_LINE> self.assertEqual( "<QualifiedName xmlns='http://example.com' local='tag'>", repr(QualifiedName('http://example.com', 'tag'))... | Tests for `vumi.transports.parlayx.xmlutil.QualifiedName`. | 62598f770a366e3fb87dc2c8 |
class MissingParameterError(BaseException): <NEW_LINE> <INDENT> def __init__(self, expression, message): <NEW_LINE> <INDENT> self.expression = expression <NEW_LINE> self.message = message | Exception raised for errors in the parameters of functions.
Attributes:
expression -- input expression in which the error occurred
message -- explanation of the error | 62598f77a05bb46b3848a17d |
class CloudDatabaseBackupManager(BaseManager): <NEW_LINE> <INDENT> def _create_body(self, name, instance, description=None): <NEW_LINE> <INDENT> body = {"backup": { "instance": utils.get_id(instance), "name": name, }} <NEW_LINE> if description is not None: <NEW_LINE> <INDENT> body["backup"]["description"] = description... | This class handles operations on backups for a Cloud Database instance. | 62598f77d99f1b3c44d04fac |
class Entity(object): <NEW_LINE> <INDENT> pass | The concept of an object.
Two entities may be, in fact, the same object.
For example, a masquerading knight may be known to
an agent as both the entities Masked Knight and Lancelot. | 62598f776fece00bbaccb28b |
class BaseCsvMapWriter(BaseCsvWriter): <NEW_LINE> <INDENT> def _write_csv(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def _generate_xy_header(self, cube): <NEW_LINE> <INDENT> self.header.append("x-axis,Eastings (BNG)\n") <NEW_LINE> self.header.append("y-axis,Northings (BNG)\n") <NEW_LINE> s... | The base class for map CSV writers.
This class provides common functionality for the map CSV writers. | 62598f774d74a7450cd58b56 |
class DofIndex( ArrayFunc ): <NEW_LINE> <INDENT> def __init__( self, array, iax, index ): <NEW_LINE> <INDENT> assert index.ndim >= 1 <NEW_LINE> assert isinstance( array, numpy.ndarray ) <NEW_LINE> self.array = array <NEW_LINE> assert 0 <= iax < self.array.ndim <NEW_LINE> self.iax = iax <NEW_LINE> self.index = index <NE... | element-based indexing | 62598f7726238365f5fac474 |
class Top(Unary): <NEW_LINE> <INDENT> def __init__(self, lexspan, operand): <NEW_LINE> <INDENT> Unary.__init__(self, lexspan, "top", operand) <NEW_LINE> <DEDENT> def check(self): <NEW_LINE> <INDENT> set_scope(self.operand, self.scope) <NEW_LINE> operand = self.operand.check() <NEW_LINE> types = [('RANGE', 'INT')] <NEW_... | Unary expressions with a 'top()' | 62598f7773bcbd0ca4bc9b50 |
class OperatingSystemType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin): <NEW_LINE> <INDENT> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'OperatingSystemType') <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('http://ddex.net/xml/20100712/ddex.xsd', 1125, 4) <NEW_LINE> _Documenta... | A Type of OperatingSystem. | 62598f776aa9bd52df0d47d6 |
class MathNode: <NEW_LINE> <INDENT> __slots__ = 'left', 'right', 'token' <NEW_LINE> def __init__(self, left, right, token): <NEW_LINE> <INDENT> self.left = left <NEW_LINE> self.right = right <NEW_LINE> self.token = token <NEW_LINE> <DEDENT> def emit(self): <NEW_LINE> <INDENT> return str('(' + self.left.emit() + self.to... | A MathNode consists of:
:slot left: the left expression (LiteralNode, MathNode, VariableNode)
:slot right: the right expression (LiteralNode, MathNode, VariableNode)
:token: the character for the math operation (str) | 62598f77287bf620b62714b9 |
class TestDevMoNextUrl(test_utils.TestCase): <NEW_LINE> <INDENT> def test_basic(self): <NEW_LINE> <INDENT> path = '/one/two' <NEW_LINE> eq_(next_url(_make_request(path))['next_url'], path) <NEW_LINE> <DEDENT> def test_querystring(self): <NEW_LINE> <INDENT> path = '/one/two?something' <NEW_LINE> req = _make_request(path... | Tests that the next_url value is properly set,
including query string | 62598f7716aa5153ce3ffe00 |
class EventHandler(WebsocketHandler): <NEW_LINE> <INDENT> def __init__(self, handle_event): <NEW_LINE> <INDENT> self.handle_event = handle_event <NEW_LINE> <DEDENT> async def handle_message(self, message): <NEW_LINE> <INDENT> await self.handle_event(Event(**message)) | Handle messages from the events websocket.
the `handle_event` handler is called with an :class:`Event` instance. | 62598f77d18da76e235b6db6 |
class ExampleModel(models.Model): <NEW_LINE> <INDENT> _name = "cms.delete.content.example" <NEW_LINE> _inherit = "website.published.mixin" <NEW_LINE> name = fields.Char(required=True) <NEW_LINE> @property <NEW_LINE> def cms_after_delete_url(self): <NEW_LINE> <INDENT> return '/list-delete-content-example' | A demo model | 62598f7715fb5d323ce7e62a |
class UpdateAccountStatusMethod(ContractMethod): <NEW_LINE> <INDENT> def __init__( self, web3_or_provider: Union[Web3, BaseProvider], contract_address: str, contract_function: ContractFunction, validator: Validator = None, ): <NEW_LINE> <INDENT> super().__init__(web3_or_provider, contract_address, validator) <NEW_LINE>... | Various interfaces to the updateAccountStatus method. | 62598f778da39b475be02ae4 |
class DataFile( BasePlot ): <NEW_LINE> <INDENT> def __init__( self, name, index=None, ndigits=0, mode='w' ): <NEW_LINE> <INDENT> BasePlot.__init__( self, name, ndigits=ndigits, index=index ) <NEW_LINE> self.names = [name] <NEW_LINE> self.fout = open( os.path.join(self.path,name), mode ) <NEW_LINE> <DEDENT> def save( s... | data file | 62598f770383005118f6d003 |
class TEXT_PT_Typewriter(bpy.types.Panel): <NEW_LINE> <INDENT> bl_label = "Typewriter Effect" <NEW_LINE> bl_idname = "TEXT_PT_Typewriter" <NEW_LINE> bl_space_type = 'PROPERTIES' <NEW_LINE> bl_region_type = 'WINDOW' <NEW_LINE> bl_context = 'data' <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <IND... | Typewriter Effect Panel | 62598f77d10714528d69d7d0 |
class Readonlyproperty(object): <NEW_LINE> <INDENT> 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> def get_valid( self, custom_... | Readonlyproperty operations.
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer. | 62598f77a4f1c619b294deed |
class VehicleTypeList(object): <NEW_LINE> <INDENT> swagger_types = { } <NEW_LINE> attribute_map = { } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.discriminator = None <NEW_LINE> <DEDENT> def to_dict(self): <NEW_LINE> <INDENT> result = {} <NEW_LINE> for attr, _ in six.iteritems(self.swagger_types): <NEW_LINE... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f77d6c5a102081e1a48 |
class CustomMenu(Menu): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> Menu.__init__(self, **kwargs) <NEW_LINE> self.children.append(items.MenuItem( title=_('Dashboard'), url=reverse('admin:index') )) <NEW_LINE> self.children.append(items.AppList( title=_('Applications'), models=('a2b_satchmo.cus... | Custom Menu for a2b_satchmo admin site. | 62598f778e05c05ec3f6eac7 |
class Relationship(Base): <NEW_LINE> <INDENT> def _get_start(self): <NEW_LINE> <INDENT> return Node(self._dic['start']) <NEW_LINE> <DEDENT> start = property(_get_start) <NEW_LINE> def _get_end(self): <NEW_LINE> <INDENT> return Node(self._dic['end']) <NEW_LINE> <DEDENT> end = property(_get_end) <NEW_LINE> def _get_type(... | Relationship class. | 62598f77baa26c4b54d4ebb6 |
class TestJsonSharingRule(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 testJsonSharingRule(self): <NEW_LINE> <INDENT> pass | JsonSharingRule unit test stubs | 62598f777b25080760ed6da3 |
class WBS(db.Model): <NEW_LINE> <INDENT> __tablename__ = "wbs" <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> code = db.Column(db.String(80)) <NEW_LINE> name = db.Column(db.String(80)) <NEW_LINE> schedule_id = db.Column(db.Integer, db.ForeignKey('schedule.id')) <NEW_LINE> schedule = db.relationship(... | WBS Model for storing wbs related details | 62598f7738b623060ffa899d |
class Video(ElemContainer): <NEW_LINE> <INDENT> pass | elems are fallback content ('your browser no support'), unless Source
src=path.mp4 - or use a Source element.
width & Height
bool: controls, autoplay, loop, muted,
fallback example, 1, 2, 3, 4:
e.g. <video>
<source src="movie.mp4">
<source src="movie.ogv">
<object data="movie.swf">
<a href="movie.mp4">download</a></o... | 62598f770a366e3fb87dc2cc |
@field('choice') <NEW_LINE> class ChoiceField(BaseChoiceField): <NEW_LINE> <INDENT> size = 1 <NEW_LINE> klass = 'form-control select-widget' <NEW_LINE> multiple = None <NEW_LINE> prompt_message = _('select a value ...') <NEW_LINE> tmpl_input = 'form:select' <NEW_LINE> def update_items(self): <NEW_LINE> <INDENT> super(C... | HTML Select input widget. Field name is ``choice``. | 62598f7730c21e258be98109 |
class DELETE_ATTR(ArgumentStackInstruction): <NEW_LINE> <INDENT> pass | Implements del TOS.name, using namei as index into co_names. | 62598f7716aa5153ce3ffe02 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.