code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class Stripped(Adapter): <NEW_LINE> <INDENT> def __init__(self, subcon, pad=None): <NEW_LINE> <INDENT> super(Stripped, self).__init__(subcon) <NEW_LINE> self.pad = pad <NEW_LINE> <DEDENT> def _decode(self, obj, context, path): <NEW_LINE> <INDENT> pad = self.pad <NEW_LINE> if pad is None: <NEW_LINE> <INDENT> pad = u'\0'...
An adapter that strips characters/bytes from the right of the parsed results. NOTE: While this may look similar to Padded() this is different because this doesn't take a length and instead strips out the nulls from within the already parsed subconstruct. :param subcon: The sub-construct to wrap. :param pad: The chara...
62598fbfdc8b845886d537ca
class EquipmentViewSet(viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> queryset = Equipment.objects.all() <NEW_LINE> serializer_class = EquipmentSerializer <NEW_LINE> ordering_fields = '__all__' <NEW_LINE> filter_fields = ('name',)
API endpoint for equipment objects
62598fbff548e778e596b7b6
class UTC(datetime.tzinfo): <NEW_LINE> <INDENT> __getattribute__ = lambda self, attr: ( (lambda *_: self.__class__.__name__) if attr in ('tzname',) else (lambda *_: datetime.timedelta(0)))
UTC tzinfo object used in datetime as tzinfo keyword argument: (usage) datetime.datetime(1970, 1, 1, tzinfo=UTC()) ----- oneliner ----- # UTC = type( # 'UTC', # (datetime.tzinfo,), # {'utcoffset': lambda *_: datetime.timedelta(0)}) ----- (almost) proper OO ----- # utcoffset = l...
62598fbfe1aae11d1e7ce92d
class IPStrategysStatus(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TotalCount = None <NEW_LINE> self.StrategySet = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.TotalCount = params.get("TotalCount") <NEW_LINE> if params.get("StrategySet") is not ...
策略列表
62598fbff548e778e596b7b7
class User(Model): <NEW_LINE> <INDENT> def __init__(self, username, email, manager): <NEW_LINE> <INDENT> super(User, self).__init__(manager) <NEW_LINE> self.username = username <NEW_LINE> self.email = email <NEW_LINE> <DEDENT> def sync(self): <NEW_LINE> <INDENT> self = self.manager.get(username=self.username) <NEW_LINE...
Base model for a user. Attributes: username (str): The user's username. email (str): The user's email. manager (:class:`saltant.models.user.UserManager`): The manager which spawned this user instance.
62598fbfcc40096d6161a2e1
class Expression18(Expression): <NEW_LINE> <INDENT> def get(self, instance): <NEW_LINE> <INDENT> raise NotImplementedError('%s not implemented' % ( str(self)))
System->BEEP music !->A# frequency Return type: Int
62598fbf7b180e01f3e49158
class IOSCfgLine(BaseCfgLine): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(IOSCfgLine, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def is_object_for(cls, line="", re=re): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> @property <NEW_LINE> def i...
An object for a parsed IOS-style configuration line. :class:`~models_cisco.IOSCfgLine` objects contain references to other parent and child :class:`~models_cisco.IOSCfgLine` objects. .. note:: Originally, :class:`~models_cisco.IOSCfgLine` objects were only intended for advanced ciscoconfparse users. As of ...
62598fbf442bda511e95c66f
class AdvertiserCreationForm(forms.ModelForm): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.user_profile = kwargs.pop("user_profile", None) <NEW_LINE> super().__init__(*args, **kwargs) <NEW_LINE> self.helper = FormHelper(self) <NEW_LINE> self.helper.layout = Layout() <NEW_LINE> for ...
A form that creates an advertiser with credit card info
62598fbf76e4537e8c3ef7b7
class AtariVisionModel(TFSeparableModel): <NEW_LINE> <INDENT> def __init__(self, k, statedim=(42,42,1), actiondim=(18,1)): <NEW_LINE> <INDENT> super(AtariVisionModel, self).__init__(statedim, actiondim, k, [0,1],'chain') <NEW_LINE> <DEDENT> def createPolicyNetwork(self): <NEW_LINE> <INDENT> return conv2a3c(self.statedi...
This class defines the abstract class for a tensorflow model for the primitives.
62598fbf283ffb24f3cf3a94
class ChoicesContractor(object): <NEW_LINE> <INDENT> def __iter__(self): <NEW_LINE> <INDENT> from project.models import Contractor <NEW_LINE> for i in Contractor.query.order_by(Contractor.name.asc()).all(): <NEW_LINE> <INDENT> yield (i.id, i.name)
this method ensure a dynamic choice_list for selectField
62598fbf23849d37ff8512c5
class AvroResponder(Responder): <NEW_LINE> <INDENT> def __init__(self, protocol, impl=None): <NEW_LINE> <INDENT> super().__init__(local_protocol=protocol) <NEW_LINE> self._impl = impl or self <NEW_LINE> <DEDENT> def invoke(self, message, request, context=None): <NEW_LINE> <INDENT> logging.debug("Processing message %r (...
Generic Avro responder that delegates to an implementation using reflection.
62598fbf099cdd3c636754eb
class MessageViewTestCase(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = app.test_client() <NEW_LINE> self.testuser = User.signup(username="testuser", email="test@test.com", password="testuser", image_url=None) <NEW_LINE> db.session.commit() <NEW_LINE> self.new_message = Message( text...
Test views for messages.
62598fbfec188e330fdf8aa4
class ReadGroupProgram(_messages.Message): <NEW_LINE> <INDENT> commandLine = _messages.StringField(1) <NEW_LINE> id = _messages.StringField(2) <NEW_LINE> name = _messages.StringField(3) <NEW_LINE> prevProgramId = _messages.StringField(4) <NEW_LINE> version = _messages.StringField(5)
A ReadGroupProgram object. Fields: commandLine: The command line used to run this program. id: The user specified locally unique ID of the program. Used along with prevProgramId to define an ordering between programs. name: The name of the program. prevProgramId: The ID of the program run before this one. ...
62598fbf3d592f4c4edbb0ce
class VideoSearchForm(forms.Form): <NEW_LINE> <INDENT> exclude_fields = ( 'approved', 'active_broadcast', 'video_url', 'description', 'handout', 'presentation', ) <NEW_LINE> test_equal = set(( 'video_type', 'subject', )) <NEW_LINE> field_order_priority = ( 'name', ) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_...
A form class which allows the user to get search results based on form fields for a particular model. It is also possible to add extra fields for custom processing. Following the YAGNI prinicple, it is only implemented for the Video model, instead of being an overly generic solution for all models. If the need for a d...
62598fbf3d592f4c4edbb0cf
class Sequence(object): <NEW_LINE> <INDENT> _revcomp_trans = string.maketrans('acgt', 'tgca') <NEW_LINE> def __init__(self, seq): <NEW_LINE> <INDENT> self.seq = seq.lower() <NEW_LINE> if not re.match(r'^[acgtn]*$', self.seq): <NEW_LINE> <INDENT> raise ValueError('illegal characters in sequence, ' 'currently only suppor...
Represent a DNA sequence. :param seq: a string representing a DNA sequence. Bases A, C, G, T and N are allowed. :raises: ValuError if the sequence contains illegal characters.
62598fbfd486a94d0ba2c1e2
class Pip(): <NEW_LINE> <INDENT> def __init__(self, node0, node1, directional): <NEW_LINE> <INDENT> self.node0 = node0 <NEW_LINE> self.node1 = node1 <NEW_LINE> self.directional = directional <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "Pip({}, {}, {})".format( repr(self.node0), repr(self.node1), ...
Pip device resource object.
62598fbf4f88993c371f0612
class RandomAgent(Agent): <NEW_LINE> <INDENT> def __init__( self, states_spec, actions_spec, device=None, session_config=None, scope='random', saver_spec=None, summary_spec=None, distributed_spec=None, discount=0.99, variable_noise=None, states_preprocessing_spec=None, explorations_spec=None, reward_preprocessing_spec=...
Random agent, useful as a baseline and sanity check.
62598fbf4527f215b58ea0e0
class User(TwitterModel): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.param_defaults = { 'contributors_enabled': None, 'created_at': None, 'default_profile': None, 'default_profile_image': None, 'description': None, 'email': None, 'favourites_count': None, 'followers_count': None, 'follow...
A class representing the User structure.
62598fbfd268445f26639c8d
class UserStyleSheet(File): <NEW_LINE> <INDENT> typestr = 'user-stylesheet' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super().__init__(none_ok=True) <NEW_LINE> <DEDENT> def transform(self, value): <NEW_LINE> <INDENT> if not value: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> path = super().transform(val...
QWebSettings UserStyleSheet.
62598fbff548e778e596b7b9
class Color(models.Model): <NEW_LINE> <INDENT> html = models.CharField(max_length = 7, unique = True) <NEW_LINE> hex = models.CharField(max_length = 8, unique = True) <NEW_LINE> rgb_r = models.IntegerField() <NEW_LINE> rgb_g = models.IntegerField() <NEW_LINE> rgb_b = models.IntegerField() <NEW_LINE> l = models.FloatFie...
Color representations. **Fields:** | html (CharField): html style color definition | hex (CharField): hex style color definition | rgb_r (IntegerField): red value of the rgb-color space | rgb_g (IntegerField): green value of the rgb-color space | rgb_b (IntegerField): blue value of the rgb-color sp...
62598fbfad47b63b2c5a7a68
class CreateTable: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Connect_DB(): <NEW_LINE> <INDENT> con = sqlite3.connect("mydatabase.db") <NEW_LINE> return con <NEW_LINE> <DEDENT> def create_table(self): <NEW_LINE> <INDENT> cursor_obj = CreateTable.Connect_DB().cursor() <NEW_LINE> cursor_obj.execute("CREATE TABLE PD...
Constructing database tables. This should only be run at the beginning of a project.
62598fbf4f6381625f1995cb
class QMultiInputDialog(QDialog): <NEW_LINE> <INDENT> def __init__(self, parent=None, title=None, text=None, fields=[''], values={}, f=0): <NEW_LINE> <INDENT> super().__init__(parent, f) <NEW_LINE> self.setWindowTitle(title) <NEW_LINE> layout = QVBoxLayout(self) <NEW_LINE> layout.addWidget(QLabel(text)) <NEW_LINE> inpu...
Get several inputs in one dialog.
62598fbf63b5f9789fe85384
class Ui: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def renderBaseMenuOptions(self, discard = "X"): <NEW_LINE> <INDENT> if discard != "B" and discard != "b": <NEW_LINE> <INDENT> print("\t(B)inario") <NEW_LINE> <DEDENT> if discard != "O" and discard != "o": <NEW_LINE> <INDENT> ...
Capa de Interfaz
62598fbf7047854f4633f5e7
class JoinPieceTextOutputProcessor(OutputProcessor, Serializable): <NEW_LINE> <INDENT> yaml_tag = "!JoinPieceTextOutputProcessor" <NEW_LINE> @serializable_init <NEW_LINE> def __init__(self, space_token: str = "\u2581") -> None: <NEW_LINE> <INDENT> self.space_token = space_token <NEW_LINE> <DEDENT> def process(self, s: ...
Assumes a sentence-piece vocabulary and joins them to form words. Space_token could be the starting character of a piece per default, the u'▁' indicates spaces
62598fbf283ffb24f3cf3a96
class TestBase(unittest.TestCase): <NEW_LINE> <INDENT> def test_base_parameters(self): <NEW_LINE> <INDENT> b = Base(1) <NEW_LINE> self.assertIsNotNone(id(b)) <NEW_LINE> <DEDENT> def test_instance(self): <NEW_LINE> <INDENT> b = Base(10) <NEW_LINE> self.assertIsInstance(b, Base) <NEW_LINE> <DEDENT> def test_to_json_strin...
Tests for base
62598fbf7c178a314d78d6b2
class Field(dict): <NEW_LINE> <INDENT> def __init__(self, name, type, size, default, desc, start_pos): <NEW_LINE> <INDENT> logging.debug("Creating field") <NEW_LINE> self["name"] = name <NEW_LINE> self["type"] = type <NEW_LINE> self["size"] = size <NEW_LINE> self["start"] = start_pos <NEW_LINE> self["end"] = start_pos ...
Common base class for all rtlog fields
62598fbfec188e330fdf8aa6
class CRPixelPrinter(object): <NEW_LINE> <INDENT> def __init__(self, val): <NEW_LINE> <INDENT> self.val = val <NEW_LINE> <DEDENT> def to_string(self): <NEW_LINE> <INDENT> return "{id=%d (%d, %d)}" % (self.val["id"], self.val["col"], self.val["row"])
Print a CRPixel
62598fbf5fcc89381b266256
class FabricV1Network(FabricNetwork): <NEW_LINE> <INDENT> def __init__(self, name, network_id, network_type): <NEW_LINE> <INDENT> super(FabricV1Network, self).__init__(name, network_id, network_type) <NEW_LINE> <DEDENT> def set_config(self): <NEW_LINE> <INDENT> self.config = FabricV1NetworkConfig()
FabricV1Network represents a Hyperledger Fabric v1.0 network.
62598fbf92d797404e388c6c
class Moneda(models.Model): <NEW_LINE> <INDENT> moneda = models.CharField(max_length=5, unique=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.moneda <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = "Moneda" <NEW_LINE> verbose_name_plural = "Monedas"
docstring for Moneda
62598fbf9f28863672818985
class GroupMembership(BaseObject): <NEW_LINE> <INDENT> def __init__(self, api=None, created_at=None, default=None, group_id=None, id=None, updated_at=None, url=None, user_id=None, **kwargs): <NEW_LINE> <INDENT> self.api = api <NEW_LINE> self.created_at = created_at <NEW_LINE> self.default = default <NEW_LINE> self.grou...
###################################################################### # Do not modify, this class is autogenerated by gen_classes.py # ######################################################################
62598fbf8a349b6b43686451
class TestResults(object): <NEW_LINE> <INDENT> def __init__(self, session_context, cluster): <NEW_LINE> <INDENT> self._results = [] <NEW_LINE> self.session_context = session_context <NEW_LINE> self.cluster = cluster <NEW_LINE> self.start_time = -1 <NEW_LINE> self.stop_time = -1 <NEW_LINE> <DEDENT> def append(self, obj)...
Class used to aggregate individual TestResult objects from many tests.
62598fbf0fa83653e46f50f9
class MainMenu(tk.Menu): <NEW_LINE> <INDENT> def __init__(self, root, *args, **kwargs): <NEW_LINE> <INDENT> tk.Menu.__init__(self, root, *args, **kwargs) <NEW_LINE> file_menu = FileMenu(self, tearoff= 0) <NEW_LINE> self.add_cascade(label="File", menu=file_menu) <NEW_LINE> root.config(menu=self)
Creates Main Menu.
62598fbf7c178a314d78d6b4
class ExplorationCompleteEventHandler(base.BaseHandler): <NEW_LINE> <INDENT> REQUIRE_PAYLOAD_CSRF_CHECK = False <NEW_LINE> @require_playable <NEW_LINE> def post(self, exploration_id): <NEW_LINE> <INDENT> event_services.CompleteExplorationEventHandler.record( exploration_id, self.payload.get('version'), self.payload.get...
Tracks a learner completing an exploration. The state name recorded should be a state with a terminal interaction.
62598fbf7cff6e4e811b5c38
class SimpleXMethodMatcher(XMethodMatcher): <NEW_LINE> <INDENT> class SimpleXMethodWorker(XMethodWorker): <NEW_LINE> <INDENT> def __init__(self, method_function, arg_types): <NEW_LINE> <INDENT> self._arg_types = arg_types <NEW_LINE> self._method_function = method_function <NEW_LINE> <DEDENT> def get_arg_types(self): <N...
A utility class to implement simple xmethod mathers and workers. See the __init__ method below for information on how instances of this class can be used. For simple classes and methods, one can choose to use this class. For complex xmethods, which need to replace/implement template methods on possibly template clas...
62598fbf956e5f7376df5789
class ServerAuthViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = models.ServerAuthRule.objects.all() <NEW_LINE> serializer_class = serializers.ServerAuthRuleSerializer <NEW_LINE> permission_classes = (permissions.AllowAny,)
主机授权规则
62598fbf091ae35668704e3b
class RGB(object): <NEW_LINE> <INDENT> __slots__=['r', 'g', 'b'] <NEW_LINE> def __init__(self, r=0, g=0, b=0): <NEW_LINE> <INDENT> self.r=r <NEW_LINE> self.g=g <NEW_LINE> self.b=b <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "<%f %f %f>" % (self.r, self.g, self.b) <NEW_LINE> <DEDENT> def __eq__(sel...
material color
62598fbf2c8b7c6e89bd39d6
class DecodeProtoFailTest(test_case.ProtoOpTestCase): <NEW_LINE> <INDENT> def _TestCorruptProtobuf(self, sanitize): <NEW_LINE> <INDENT> corrupt_proto = 'This is not a binary protobuf' <NEW_LINE> batch = np.array(corrupt_proto, dtype=object) <NEW_LINE> msg_type = 'tensorflow.contrib.proto.TestCase' <NEW_LINE> field_name...
Test failure cases for DecodeToProto.
62598fbf4f88993c371f0614
class InputPeerChat(TLObject): <NEW_LINE> <INDENT> __slots__ = ["chat_id"] <NEW_LINE> ID = 0x179be863 <NEW_LINE> QUALNAME = "types.InputPeerChat" <NEW_LINE> def __init__(self, *, chat_id: int): <NEW_LINE> <INDENT> self.chat_id = chat_id <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(b: BytesIO, *args) -> "InputP...
Attributes: LAYER: ``112`` Attributes: ID: ``0x179be863`` Parameters: chat_id: ``int`` ``32-bit``
62598fbfdc8b845886d537d0
class ApiPortalResource(ProxyResource): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, 'system_data': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'ty...
API portal resource. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource Id for the resource. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :ivar system_data: Met...
62598fbff548e778e596b7bc
class SolidMembrane(SolidModelBase): <NEW_LINE> <INDENT> def __init__(self, solution, traction, n, dt, bcs, params, tol=1E-8): <NEW_LINE> <INDENT> V = solution.function_space() <NEW_LINE> u = TrialFunction(V) <NEW_LINE> w = TestFunction(V) <NEW_LINE> rho_s = Constant(params.rho_s) <NEW_LINE> E = Constant(params.E) <NEW...
Elastic membrane from A coupled momentum method for modelling blood flow in 3d deformable arteries.
62598fbf0fa83653e46f50fc
class ArgsValidator(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def validate(cls, args): <NEW_LINE> <INDENT> if len(args) == 1: <NEW_LINE> <INDENT> sys_exit('Please enter site url as second argument!') <NEW_LINE> <DEDENT> url = args[1] <NEW_LINE> url_checker = UrlValidator(url=url) <NEW_LINE> url_checker.valid...
Валидатор входных параметров
62598fbf63b5f9789fe85388
class DelayPreds(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, delay=1000, skip=100, two_dim=False): <NEW_LINE> <INDENT> self.delay = delay <NEW_LINE> self.skip = skip <NEW_LINE> self.two_dim = two_dim <NEW_LINE> <DEDENT> def fit(self, X, y=None): <NEW_LINE> <INDENT> return self <NEW_LINE> <D...
Delayed prediction tranformer Mixin.
62598fbf4c3428357761a4d3
class Category(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> db_table = 'category' <NEW_LINE> ordering = ['name'] <NEW_LINE> <DEDENT> category_id = models.AutoField(primary_key=True) <NEW_LINE> name = models.CharField(max_length=255) <NEW_LINE> icon = models.ImageField( upload_to='icons', null=True...
A container for species.
62598fbf67a9b606de5461e2
class Solution: <NEW_LINE> <INDENT> def searchMatrix(self, matrix, target): <NEW_LINE> <INDENT> if target is None or matrix is None or not len(matrix) or not len(matrix[0]): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> sentinels = [] <NEW_LINE> for i in range(len(matrix)): <NEW_LINE> <INDENT> sentinels.append(m...
@param matrix: matrix, a list of lists of integers @param target: An integer @return: a boolean, indicate whether matrix contains target
62598fbf97e22403b383b120
class LapPrinter(Printer): <NEW_LINE> <INDENT> def common_entry(self, row): <NEW_LINE> <INDENT> row_print = list(row) <NEW_LINE> if 'Lap Times' in self.fields: <NEW_LINE> <INDENT> idx_lap = self.fields.index('Lap Times') <NEW_LINE> lap_times = row[idx_lap] <NEW_LINE> row_print[idx_lap] = lap_times[0] <NEW_LINE> <DEDENT...
Printer class for multi lap races
62598fbfaad79263cf42e9ec
class IsTripOwnerOrNothing(permissions.BasePermission): <NEW_LINE> <INDENT> def has_object_permission(self, request, view, obj): <NEW_LINE> <INDENT> return obj.trip.user == request.user
Custom permission to only allow owners of an object to edit it.
62598fbf3d592f4c4edbb0d4
class Address(Model): <NEW_LINE> <INDENT> def __init__(self, json): <NEW_LINE> <INDENT> self.parking_instructions = json.get("parking_instructions") <NEW_LINE> self.city = json.get("city") <NEW_LINE> self.address_city = json.get("address_city") <NEW_LINE> self.contact_preference = json.get("contact_preference") <NEW_LI...
User's delivery address information.
62598fbf99fddb7c1ca62ef8
class ObfuscatedUrlInfo(Model): <NEW_LINE> <INDENT> content = models.ForeignKey(Content) <NEW_LINE> create_date = models.DateTimeField() <NEW_LINE> expire_date = models.DateTimeField() <NEW_LINE> url_uuid = models.CharField(max_length=32, unique=True, editable=False) <NEW_LINE> def save(self, *args, **kwargs): <NEW_LIN...
Stores info used for obfuscated urls of unpublished content.
62598fbf956e5f7376df578a
class StoragePoolOperationListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'value': {'required': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[StoragePoolRPOperation]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): ...
List of operations supported by the RP. All required parameters must be populated in order to send to Azure. :param value: Required. An array of operations supported by the StoragePool RP. :type value: list[~storage_pool_management.models.StoragePoolRPOperation] :param next_link: URI to fetch the next section of the ...
62598fbf57b8e32f52508229
class IDeserializeFromJson(Interface): <NEW_LINE> <INDENT> pass
An adapter to deserialize a JSON object into an object in Plone.
62598fbf4f88993c371f0615
class StaffGradingTab(StaffTab, GradingTab): <NEW_LINE> <INDENT> type = 'staff_grading' <NEW_LINE> def __init__(self, tab=None): <NEW_LINE> <INDENT> super(StaffGradingTab, self).__init__( name=_("Staff grading"), tab_id=self.type, link_func=link_reverse_func(self.type), )
A tab for staff grading.
62598fbfdc8b845886d537d2
class GetTypeInfo_result(object): <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.STRUCT, 'success', (TGetTypeInfoResp, TGetTypeInfoResp.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot...
Attributes: - success
62598fbffff4ab517ebcd9fd
class Layer(object): <NEW_LINE> <INDENT> __bases__ = () <NEW_LINE> __name__ = 'Layer' <NEW_LINE> @classmethod <NEW_LINE> def get_app(cls): <NEW_LINE> <INDENT> return _APP_UNDER_TEST <NEW_LINE> <DEDENT> def make_wsgi_app(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def cooperative_super(self,...
Test layer which sets up WSGI app for use with WebTest/testbrowser. Inherit from this layer and overwrite `make_wsgi_app` for setup. Composing multiple layers into one is supported using plone.testing.Layer.
62598fbfe1aae11d1e7ce931
class FESolver(object): <NEW_LINE> <INDENT> def displace(self, load, x, ke, penal): <NEW_LINE> <INDENT> freedofs = np.array(load.freedofs()) <NEW_LINE> nely, nelx = x.shape <NEW_LINE> f_free = load.force()[freedofs] <NEW_LINE> k_free = self.gk_freedofs(load, x, ke, penal) <NEW_LINE> u = np.zeros(load.dim*(nely+1)*(nelx...
The parent FESolver is used for constructing the global stiffness matrix.
62598fbfcc40096d6161a2e5
class AbstractLocationFeed(EbpubFeed): <NEW_LINE> <INDENT> title_template = 'feeds/streets_title.html' <NEW_LINE> description_template = 'feeds/streets_description.html' <NEW_LINE> def items(self, obj): <NEW_LINE> <INDENT> today_value = today() <NEW_LINE> start_date = today_value - datetime.timedelta(days=5) <NEW_LINE>...
Abstract base class for :py:class:`ebpub.db.models.Location`-aware RSS feeds.
62598fbf55399d3f0562672f
class RequestTicket(Base): <NEW_LINE> <INDENT> __tablename__ = 'request_ticket' <NEW_LINE> id = Column(Integer, unique=True, primary_key=True, autoincrement=True) <NEW_LINE> title = Column(String(50)) <NEW_LINE> description = Column(String(200)) <NEW_LINE> client = Column(Enum('Client A', 'Client B', 'Client C')) <NEW_...
Schema to declare table of requests
62598fbf97e22403b383b121
class Histogram(object): <NEW_LINE> <INDENT> def __init__(self, training_instances, names, granularity=(1, 1, 1), use_progress=False): <NEW_LINE> <INDENT> self.names = names <NEW_LINE> self.buckets = defaultdict(Counter) <NEW_LINE> self.bucket_counts = defaultdict(int) <NEW_LINE> self.granularity = granularity <NEW_LIN...
>>> from stanza.research.instance import Instance as I >>> data = [I((0.0, 100.0, 49.0), 'red'), ... I((0.0, 100.0, 45.0), 'dark red'), ... I((240.0, 100.0, 49.0), 'blue')] >>> h = Histogram(data, names=['red', 'dark red', 'blue'], ... granularity=(4, 10, 10)) >>> h.get_probs((1.0, 91.0, 4...
62598fbf7c178a314d78d6b8
class Edge(object): <NEW_LINE> <INDENT> def __init__(self, nodes=None, edges=None, **attr): <NEW_LINE> <INDENT> self.nodes = nodes <NEW_LINE> self.edges = edges <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self.graph.get('name', '') <NEW_LINE> <DEDENT> @name.setter <NEW_LINE> def ...
Base class for undirected graphs. A Graph stores nodes and edges with optional data, or attributes. Graphs hold undirected edges. Self loops are allowed but multiple (parallel) edges are not. Nodes can be arbitrary (hashable) Python objects with optional key/value attributes. Edges are represented as links between nod...
62598fbf3317a56b869be65c
class sgd_momentum(object): <NEW_LINE> <INDENT> def __init__(self, model, loss_func, learning_rate=1e-4, **kwargs): <NEW_LINE> <INDENT> self.model = model <NEW_LINE> self.loss_func = loss_func <NEW_LINE> self.lr = learning_rate <NEW_LINE> self.grads = None <NEW_LINE> self.optim_config = kwargs.pop('optim_config', {}) <...
Performs stochastic gradient descent with momentum. config format: - momentum: Scalar between 0 and 1 giving the momentum value. Setting momentum = 0 reduces to sgd. - velocity: A numpy array of the same shape as w and dw used to store a moving average of the gradients.
62598fbf26068e7796d4cb75
class ConfigBase: <NEW_LINE> <INDENT> def __init__(self, dictionary: Dict = None): <NEW_LINE> <INDENT> if dictionary is not None: <NEW_LINE> <INDENT> self.__dict__ = dictionary <NEW_LINE> <DEDENT> self._pipework = None <NEW_LINE> self._auxiliaryFlags = {} <NEW_LINE> <DEDENT> def peek(self, name: str): <NEW_LINE> <INDEN...
A base class for config objects that should be used with the Plant. Tracks the access to the config parameters and registers corresponding reactor dependencies. Provides an alternative (better) way of handling configuration, since IDE features for editing
62598fbf8a349b6b43686457
class Node(JsonObject): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.ip = kwargs.get('ip', None) <NEW_LINE> self.mac = kwargs.get('mac', None) <NEW_LINE> self.vid = kwargs.get('vid', None) <NEW_LINE> self.dpid = kwargs.get('dpid', None) <NEW_LINE> self.port = kwargs.get('port', None)
Node (JsonObject) Una representación de python del objeto Node
62598fbfdc8b845886d537d4
class LC400Motor(Motor): <NEW_LINE> <INDENT> def __init__(self, device, axis, **kwargs): <NEW_LINE> <INDENT> super(LC400Motor, self).__init__(**kwargs) <NEW_LINE> assert axis in (1, 2, 3) <NEW_LINE> self.proxy = PyTango.DeviceProxy(device) <NEW_LINE> self.proxy.set_source(PyTango.DevSource.DEV) <NEW_LINE> self.axis = a...
Single axis on the LC400.
62598fbf97e22403b383b123
class Output: <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.description = kwargs.get('description') <NEW_LINE> self.key = kwargs.get('output_key') <NEW_LINE> self.value = kwargs.get('output_value')
SNAPS domain object for an output defined by a heat template
62598fbf4c3428357761a4d7
class BaseConnection(object): <NEW_LINE> <INDENT> def __init__(self, hostname=None, port=None, path=None, username=None, password=None): <NEW_LINE> <INDENT> if hostname is None: <NEW_LINE> <INDENT> hostname = arc.config.get_default().get_server_host() <NEW_LINE> <DEDENT> self.hostname = hostname <NEW_LINE> if port is N...
Base RPC connection
62598fbff9cc0f698b1c53dd
class StreamServerEndpointService(service.Service, object): <NEW_LINE> <INDENT> _raiseSynchronously = None <NEW_LINE> def __init__(self, endpoint, factory): <NEW_LINE> <INDENT> self.endpoint = endpoint <NEW_LINE> self.factory = factory <NEW_LINE> self._waitingForPort = None <NEW_LINE> <DEDENT> def privilegedStartServic...
A L{StreamServerEndpointService} is an L{IService} which runs a server on a listening port described by an L{IStreamServerEndpoint <twisted.internet.interfaces.IStreamServerEndpoint>}. @ivar factory: A server factory which will be used to listen on the endpoint. @ivar endpoint: An L{IStreamServerEndpoint <twi...
62598fbf44b2445a339b6a84
class RawDataField(serializers.WritableField): <NEW_LINE> <INDENT> def field_to_native(self, obj, field_name): <NEW_LINE> <INDENT> params = self.context['request'].QUERY_PARAMS <NEW_LINE> order = None <NEW_LINE> new_sort = [] <NEW_LINE> if params.get('sort'): <NEW_LINE> <INDENT> sort = params.get('sort') <NEW_LINE> if ...
Field for handling the serialization and deserialization of the raw data of a metric.
62598fbfa219f33f346c6a22
class LearningAgent(Agent): <NEW_LINE> <INDENT> def __init__(self, env, learning=False, epsilon=1.0, alpha=0.5): <NEW_LINE> <INDENT> super(LearningAgent, self).__init__(env) <NEW_LINE> self.planner = RoutePlanner(self.env, self) <NEW_LINE> self.valid_actions = self.env.valid_actions <NEW_LINE> self.learning = learning ...
An agent that learns to drive in the Smartcab world. This is the object you will be modifying.
62598fbf4428ac0f6e65873f
class Aliases(MutableMapping): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self._raw = {} <NEW_LINE> self.update(*args, **kwargs) <NEW_LINE> <DEDENT> def get(self, key, default=None): <NEW_LINE> <INDENT> val = self._raw.get(key) <NEW_LINE> if val is None: <NEW_LINE> <INDENT> return defa...
Represents a location to hold and look up aliases.
62598fbf50812a4eaa620cf7
class SearchOrIdFilterTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.filter = filters.SearchOrIdFilter() <NEW_LINE> <DEDENT> def test_filter_queryset_with_search(self): <NEW_LINE> <INDENT> user1 = User.objects.create(first_name="john", username="foo") <NEW_LINE> User.objects.create(first_...
Tests for the joulia.filters.SearchOrIdFilter.
62598fbf7cff6e4e811b5c3e
class Employee: <NEW_LINE> <INDENT> def __init__(self, first_name, last_name, salary): <NEW_LINE> <INDENT> self.first_name = first_name <NEW_LINE> self.last_name = last_name <NEW_LINE> self.salary = salary <NEW_LINE> <DEDENT> @property <NEW_LINE> def fullname_of_employee(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDE...
A class used to represent an Employee ... Attributes ---------- first_name : str a first name of employee last_name : str a last name of employee salary : int a salary of employee
62598fbf8a349b6b43686459
class StorageAccountTypes(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): <NEW_LINE> <INDENT> STANDARD_LRS = "Standard_LRS" <NEW_LINE> PREMIUM_LRS = "Premium_LRS"
Specifies the storage account type for the managed disk. Possible values are: Standard_LRS or Premium_LRS.
62598fbf796e427e5384e9b1
class NamedPackage: <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> <DEDENT> @property <NEW_LINE> def installAs(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> def forRequirements(self, versions): <NEW_LINE> <INDENT> return "{0}=={1}".format(versions.getProp...
Represents a package specified by Name
62598fbff548e778e596b7c3
class DbTypeTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def test_type_is_always_array(self): <NEW_LINE> <INDENT> f = ArrayField() <NEW_LINE> setattr(f, '_type', 'int') <NEW_LINE> self.assertIn('[]', f.db_type(None)) <NEW_LINE> <DEDENT> def test_respects_type_of_class(self): <NEW_LINE> <INDENT> custom_type = 'int' ...
Tests for the db_type.
62598fbfaad79263cf42e9f1
class StunThrower(ThrowerAnt): <NEW_LINE> <INDENT> name = 'Stun' <NEW_LINE> implemented = False <NEW_LINE> food_cost = 6 <NEW_LINE> damage = 0 <NEW_LINE> def throw_at(self, target): <NEW_LINE> <INDENT> if target: <NEW_LINE> <INDENT> apply_effect(make_stun, target, 1)
ThrowerAnt that causes Stun on Bees.
62598fbf0fa83653e46f5101
class Aircraft: <NEW_LINE> <INDENT> def __init__(self, registration): <NEW_LINE> <INDENT> self._registration = registration <NEW_LINE> <DEDENT> def registration(self): <NEW_LINE> <INDENT> return self._registration <NEW_LINE> <DEDENT> def num_seats(self): <NEW_LINE> <INDENT> rows, row_seats = self.seating_plan() <NEW_LI...
Aircraft base class
62598fbf4a966d76dd5ef0f1
class S3MainMenu(default.S3MainMenu): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def menu(cls): <NEW_LINE> <INDENT> main_menu = MM()( cls.menu_modules(), cls.menu_help(right=True), cls.menu_auth(right=True), cls.menu_lang(right=True), cls.menu_admin(right=True), cls.menu_gis(right=True) ) <NEW_LINE> return main_menu <...
Custom Application Main Menu: The main menu consists of several sub-menus, each of which can be customized separately as a method of this class. The overall composition of the menu is defined in the menu() method, which can be customized as well: Function Sub-Menu Access to (standard) menu_modu...
62598fbf283ffb24f3cf3aa1
class Xweathersensor(): <NEW_LINE> <INDENT> def __init__(self,drec,updateint,xid): <NEW_LINE> <INDENT> self.HEADER = 'time\ttemp\thumidity\tpressure\n' <NEW_LINE> self.sid = drec['sid'] <NEW_LINE> self.updateint = updateint <NEW_LINE> self.tdinit = time.strftime('%H%M%S_%d%m%Y') <NEW_LINE> self.outfname = '%s_%s_%d.xls...
class for xiaomi weather sensors - temp/hum/baro instantiate when detected methods to get latest data and write to a file example from detection: INFO:root:{'model': 'weather.v1', 'proto': '1.0.9', 'sid': '158d0002273666', 'short_id': 52719, 'data': {'voltage': 2905, 'temperature': '1815', 'humidity': '5888', 'pressure...
62598fbf60cbc95b0636455a
class PGdevice: <NEW_LINE> <INDENT> def __init__(self, device): <NEW_LINE> <INDENT> self.device = device <NEW_LINE> self.devid = pgopen(device) <NEW_LINE> if self.devid == 0: <NEW_LINE> <INDENT> raise Exception('Failed to open',device) <NEW_LINE> <DEDENT> <DEDENT> def close(self): <NEW_LINE> <INDENT> if self.devid > 0:...
Class to open a PGPLOT device which automatically closes it on exit from a program, when ctrl-C is hit or when deleted using its destructor. It also keeps tabs on the ID of the device making it easy to switch between multiple plots. Use of this class is optional. If you do want to use it, then rather than starting and ...
62598fbfa05bb46b3848aa89
@DataFrame.register_api(staticmethod, "from_periodic") <NEW_LINE> class PeriodicDataFrame(DataFrame): <NEW_LINE> <INDENT> def __init__(self, datafn=random_datablock, interval='500ms', dask=False, start=True, **kwargs): <NEW_LINE> <INDENT> if dask: <NEW_LINE> <INDENT> from streamz.dask import DaskStream <NEW_LINE> sourc...
A streaming dataframe using the asyncio ioloop to poll a callback fn Parameters ---------- datafn: callable Callback function accepting **kwargs and returning a pd.DataFrame. kwargs will include at least 'last' (pd.Timestamp.now() when datafn was last invoked), and 'now' (current pd.Timestamp.now()). ...
62598fbf377c676e912f6e81
class MediaAndroid(test.Test): <NEW_LINE> <INDENT> test = media.Media <NEW_LINE> tag = 'android' <NEW_LINE> page_set = 'page_sets/tough_video_cases.json' <NEW_LINE> options = { 'page_label_filter_exclude': '4k,50fps'}
Obtains media metrics for key user scenarios on Android.
62598fbf7cff6e4e811b5c41
class ShortURI(ndb.Model): <NEW_LINE> <INDENT> uri = ndb.StringProperty() <NEW_LINE> create_date = ndb.DateProperty() <NEW_LINE> last_use_datetime = ndb.DateTimeProperty()
ShortURI
62598fbfdc8b845886d537d8
class FeatureSpecificCloudWatchLoggingTestRunner(CloudWatchLoggingTestRunner): <NEW_LINE> <INDENT> def _verify_log_stream_data(self, logs_state, expected_stream_index, stream): <NEW_LINE> <INDENT> if stream.get("logStreamName") not in expected_stream_index: <NEW_LINE> <INDENT> LOGGER.info("Skipping validation of %s's l...
This class enables running CloudWatch logging tests for only logs specific to a certain feature.
62598fbf796e427e5384e9b3
class Docs(RSSSingleElement): <NEW_LINE> <INDENT> pass
A URL that points to the documentation for the format used in the RSS file Example: Docs('http://blogs.law.harvard.edu/tech/rss')
62598fbff548e778e596b7c4
class JitCore_Tcc(jitcore.JitCore): <NEW_LINE> <INDENT> def __init__(self, ir_arch, bs=None): <NEW_LINE> <INDENT> super(JitCore_Tcc, self).__init__(ir_arch, bs) <NEW_LINE> self.resolver = resolver() <NEW_LINE> self.exec_wrapper = Jittcc.tcc_exec_bloc <NEW_LINE> self.tcc_states =[] <NEW_LINE> self.ir_arch = ir_arch <NEW...
JiT management, using LibTCC as backend
62598fbf5fdd1c0f98e5e1b0
class Event: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.time = 0.0 <NEW_LINE> self._cuda = torch.cuda.is_available() <NEW_LINE> self._event_start: torch.cuda.Event | datetime <NEW_LINE> <DEDENT> def __enter__(self) -> Event: <NEW_LINE> <INDENT> if self._cuda: <NEW_LINE> <INDENT> self._event_start ...
Emulates torch.cuda.Event, but supports running on a CPU too. :example: >>> from ranzen.torch import Event >>> with Event() as event: >>> y = some_nn_module(x) >>> print(event.time)
62598fbf167d2b6e312b7194
class CaliperThreadTest(unittest.TestCase): <NEW_LINE> <INDENT> def test_thread(self): <NEW_LINE> <INDENT> target_cmd = [ './ci_test_thread' ] <NEW_LINE> query_cmd = [ '../../src/tools/cali-query/cali-query', '-e' ] <NEW_LINE> caliper_config = { 'CALI_CONFIG_PROFILE' : 'thread-trace', 'CALI_RECORDER_FILENAME' : 'st...
Caliper thread test case
62598fbf4c3428357761a4db
class DenseGCNBlock(Module): <NEW_LINE> <INDENT> def __init__(self, in_features, out_features, nbaselayer, withbn=True, withloop=True, activation=F.relu, dropout=True, aggrmethod="concat", dense=True): <NEW_LINE> <INDENT> super(DenseGCNBlock, self).__init__() <NEW_LINE> self.model = GraphBaseBlock(in_features=in_featur...
The multiple layer GCN with dense connection block.
62598fbf283ffb24f3cf3aa2
class RemoteTarget(luigi.target.FileSystemTarget): <NEW_LINE> <INDENT> def __init__( self, path, host, format=None, username=None, password=None, port=None, mtime=None, tls=False, timeout=60, sftp=False, pysftp_conn_kwargs=None ): <NEW_LINE> <INDENT> if format is None: <NEW_LINE> <INDENT> format = luigi.format.get_defa...
Target used for reading from remote files. The target is implemented using ssh commands streaming data over the network.
62598fbf56ac1b37e630240c
class Base(object): <NEW_LINE> <INDENT> def __init__(self, pull, fret, **metadata): <NEW_LINE> <INDENT> self.fec = pull <NEW_LINE> self.fret = fret <NEW_LINE> self.metadata = pull.metadata <NEW_LINE> if fret: <NEW_LINE> <INDENT> self.metadata.update(fret.metadata) <NEW_LINE> <DEDENT> self.metadata.update(metadata) <NEW...
.fret .f .ext and other meta-data (sample rate, pull speeds, )
62598fbf1f5feb6acb162e3f
class MainMustBuy(Main): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> db_table = 'axf_mustbuy'
首页必买:axf_mustbuy(img,name,trackid)
62598fbfa219f33f346c6a26
class credentials: <NEW_LINE> <INDENT> credentials_list = [] <NEW_LINE> def __init__(self,name,username,password): <NEW_LINE> <INDENT> self.platform_name = name <NEW_LINE> self.user_name = username <NEW_LINE> self.user_email = email <NEW_LINE> self.password = password <NEW_LINE> <DEDENT> def save_credentials(self): <NE...
class to save the user class information
62598fbf67a9b606de5461ea
class OBJECT_OT_export_dwn(Operator, ExportHelper): <NEW_LINE> <INDENT> bl_idname = "object.export_dwn" <NEW_LINE> bl_label = "Dawn Toolbox Export" <NEW_LINE> bl_options = {"REGISTER", "UNDO"} <NEW_LINE> filename_ext = ".dwn" <NEW_LINE> filter_glob: bpy.props.StringProperty( default="*.dwn", options={"HIDDEN"}, maxlen=...
.dwn file export addon
62598fbf63d6d428bbee29d1
class RegisterException(DefaultPyshellException): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> DefaultPyshellException.__init__(self, value, USER_ERROR)
This exception is used in every methods the user can use to register element in an addon. It can also be used in any method used to parameterize a loader in an addon.
62598fbf3d592f4c4edbb0dc
@zope.interface.implementer(interfaces.ITerms) <NEW_LINE> class CollectionTermsSource(SourceTerms): <NEW_LINE> <INDENT> zope.component.adapts( zope.interface.Interface, interfaces.IFormLayer, zope.interface.Interface, zope.schema.interfaces.ICollection, zope.schema.interfaces.IIterableSource, interfaces.IWidget)
ITerms adapter for zope.schema.ICollection based implementations using source.
62598fbf2c8b7c6e89bd39e0
class Week: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.days: List[WorkDay] = [WorkDay(i) for i in range(7)]
每周
62598fbfa8370b77170f0601
class CatalogHandler(BaseHandler): <NEW_LINE> <INDENT> def get(self, key=None): <NEW_LINE> <INDENT> if not key: <NEW_LINE> <INDENT> self.params['catalog'] = Category.dump_cat() <NEW_LINE> logging.info(self.params['catalog']) <NEW_LINE> self.render('catalog.html', **self.params) <NEW_LINE> <DEDENT> else: <NEW_LINE> <IND...
Create addresses
62598fbf23849d37ff8512d3
class LibShrink(Package): <NEW_LINE> <INDENT> git_url = 'https://github.com/vusec/libshrink.git' <NEW_LINE> def __init__(self, addrspace_bits: int, commit = 'master', debug = False): <NEW_LINE> <INDENT> self.addrspace_bits = addrspace_bits <NEW_LINE> self.commit = commit <NEW_LINE> self.debug = debug <NEW_LINE> <DEDENT...
Dependency package for `libshrink <https://github.com/vusec/libshrink>`_. Libshrink shrinks the application address space to a maximum number of bits. It moves the stack and TLS to a memory region that is within the allowed bitrange, and prelinks all shared libraries as well so that they do not exceed the address spac...
62598fbf099cdd3c636754f2
class Filter(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.conversation_id = None <NEW_LINE> self.sender = None <NEW_LINE> self.performative = None <NEW_LINE> self.protocol = None <NEW_LINE> <DEDENT> def set_sender(self, aid): <NEW_LINE> <INDENT> self.sender = aid <NEW_LINE> <DEDENT> def set_perfo...
This class instantiates a filter object. The filter has the purpose of selecting messages with pre established attributes in the filter object
62598fbf66673b3332c305f3
class Report(object): <NEW_LINE> <INDENT> def __init__(self, jpush, zone = None): <NEW_LINE> <INDENT> self._jpush = jpush <NEW_LINE> self.zone = zone or jpush.zone <NEW_LINE> <DEDENT> def send(self, method, url, body = None, content_type=None, version=3, params = None): <NEW_LINE> <INDENT> response = self._jpush._reque...
JPush Report API V3
62598fbfa219f33f346c6a28
class CustomIndexDashboard(Dashboard): <NEW_LINE> <INDENT> def init_with_context(self, context): <NEW_LINE> <INDENT> site_name = get_admin_site_name(context) <NEW_LINE> self.children.append(modules.AppList( _('AppList: Applications'), collapsible=True, column=1, css_classes=('collapse closed',), exclude=('django.contri...
Custom index dashboard for www.
62598fbf851cf427c66b84d7