code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
@dataclass <NEW_LINE> class BuildJob: <NEW_LINE> <INDENT> name: str <NEW_LINE> source_dir: str <NEW_LINE> dest_dir: str <NEW_LINE> def log_path(self) -> str: <NEW_LINE> <INDENT> return os.path.join(self.dest_dir, "build.log") | Bundle data needed to build. | 62598fb3cc40096d6161a229 |
class CDR(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'CDR_FWR' <NEW_LINE> __table_args__ = {'mysql_row_format': 'DYNAMIC'} <NEW_LINE> seq_id = db.Column(db.Integer, db.ForeignKey('rearrangement.seq_id')) <NEW_LINE> CDR_FWR_id = db.Column(db.Integer, primary_key=True) <NEW_LINE> region= db.Column(db.String(100), in... | Data model for CDR. | 62598fb35fc7496912d482cc |
class CommandLineTestCase(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.dev_null = open(os.devnull, 'w') <NEW_LINE> sys.stdout = cls.dev_null <NEW_LINE> parser = get_parser() <NEW_LINE> cls.parser = parser <NEW_LINE> cls.units = CULINARY_UNITS <NEW_LINE> <D... | Base TestCase class, sets up a CLI parser | 62598fb301c39578d7f12e1a |
class FileViewSet(utils.GenericViewSet): <NEW_LINE> <INDENT> obj_class = models.File <NEW_LINE> queryset = models.File.objects.filter(is_active=True) <NEW_LINE> serializer_class = serializers.FileSerializer <NEW_LINE> filter_class = works_filters.FileFilter | ViewSet for File CRUD REST Service that inherits from utils.GenericViewSet
| 62598fb37b25080760ed7553 |
class IsMember(permissions.BasePermission): <NEW_LINE> <INDENT> def has_object_permission(self, request, view, obj): <NEW_LINE> <INDENT> if request.user in obj.users.all(): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> return False | Custom permission to only allow users of a Workspace to view or edit it. | 62598fb3a05bb46b3848a90d |
class PluginScriptError(Exception): <NEW_LINE> <INDENT> @property <NEW_LINE> def message(self): <NEW_LINE> <INDENT> return self.args[0] <NEW_LINE> <DEDENT> def __init__(self, message): <NEW_LINE> <INDENT> super(PluginScriptError, self).__init__(message) | Plugin-catchable exception
This exception will be thrown whenever a library call is made with check=True
and it returns a non-zero exit code.
This can be handy for plugin author who
chooses to catch exceptions explicitly than checking the exit code of response.
Attributes:
message - A localized user-readable message... | 62598fb3283ffb24f3cf392e |
class MetadataService: <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> @abstractmethod <NEW_LINE> def __init__(self, host, dbname, port, user, password): <NEW_LINE> <INDENT> self.host = host <NEW_LINE> self.dbname = dbname <NEW_LINE> self.port = port <NEW_LINE> self.user = user <NEW_LINE> self.password = passwor... | MetadataService is an abstract class which defines the various signatures for classes
which implement these functions. | 62598fb367a9b606de546070 |
class V1ServiceList(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'api_version': 'str', 'items': 'list[V1Service]', 'kind': 'str', 'metadata': 'UnversionedListMeta' } <NEW_LINE> self.attribute_map = { 'api_version': 'apiVersion', 'items': 'items', 'kind': 'kind', 'metadata'... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fb3cc0a2c111447b0b5 |
class StickyConsumerMsgGroupTests(Base): <NEW_LINE> <INDENT> pass | Tests for the behavior of sticky-consumer message groups. These tests
expect all messages from the same group be consumed by the same clients.
See QPID-3347 for details. | 62598fb37b180e01f3e490a1 |
class MAVLink_novatel_diag_message(MAVLink_message): <NEW_LINE> <INDENT> def __init__(self, timeStatus, receiverStatus, solStatus, posType, velType, posSolAge, csFails): <NEW_LINE> <INDENT> MAVLink_message.__init__(self, MAVLINK_MSG_ID_NOVATEL_DIAG, 'NOVATEL_DIAG') <NEW_LINE> self._fieldnames = ['timeStatus', 'receiver... | Transmits the diagnostics data from the Novatel OEMStar GPS | 62598fb3796e427e5384e836 |
class InfoDialogHW(_DialogWindow): <NEW_LINE> <INDENT> __gtype_name__ = 'InfoDialogHW' <NEW_LINE> def __init__(self, title, comment, evaluation, student, mimetype): <NEW_LINE> <INDENT> super(InfoDialogHW, self).__init__("info", 'Informacion del documento') <NEW_LINE> hbox = gtk.HBox() <NEW_LINE> self.content_vbox.pack_... | Crea un dialog con la informacion de las tareas domicialiarias | 62598fb316aa5153ce4005a5 |
class RequestViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> renderer_classes = (JSONRenderer, JSONPRenderer, BrowsableAPIRenderer, PaginatedCSVRenderer) <NEW_LINE> serializer_class = RequestSerializer <NEW_LINE> permission_classes = (IsAuthenticatedOrWriteOnly,) <NEW_LINE> filter_backends = (filters.DjangoFilterBa... | API endpoint that allows users to be viewed or edited. | 62598fb326068e7796d4c9f8 |
class TowerTile: <NEW_LINE> <INDENT> image = pygame.image.load('Tower.png') <NEW_LINE> def __init__(self,x,y): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> self.damage = 1 <NEW_LINE> self.speed = 1 <NEW_LINE> self.angle = None <NEW_LINE> self.damage_max=False <NEW_LINE> self.rate_max=False <NEW_LINE>... | encodes the state of a tower within a game, keeping track of damage, speed, angle of shots
and timing of the shots | 62598fb3ff9c53063f51a6ef |
class SrgShowImRoleEnum(Enum): <NEW_LINE> <INDENT> none = 0 <NEW_LINE> master = 1 <NEW_LINE> slave = 2 <NEW_LINE> @staticmethod <NEW_LINE> def _meta_info(): <NEW_LINE> <INDENT> from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_subscriber_srg_oper as meta <NEW_LINE> return meta._meta_table['SrgShowImRoleEnum'] | SrgShowImRoleEnum
SRG Interface Management Role
.. data:: none = 0
Not Determined
.. data:: master = 1
Master Role
.. data:: slave = 2
Slave Role | 62598fb3d486a94d0ba2c073 |
class getPlanet_args: <NEW_LINE> <INDENT> thrift_spec = ( None, None, None, None, None, None, None, None, None, None, (10, TType.STRUCT, 'coord', (Coord, Coord.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, coord=None,): <NEW_LINE> <INDENT> self.coord = coord <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE... | Attributes:
- coord | 62598fb367a9b606de546071 |
class FakeSession: <NEW_LINE> <INDENT> def __init__(self, connector=None, responses=(), websocket=None): <NEW_LINE> <INDENT> self.connector = connector <NEW_LINE> self.responses = list(responses) <NEW_LINE> self.websocket = websocket <NEW_LINE> self.calls = [] <NEW_LINE> <DEDENT> async def request( self, method, path, ... | A fake session class. | 62598fb37d847024c075c465 |
class AvaliacaoAPIView(APIView): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> avaliacoes = Avaliacao.objects.all() <NEW_LINE> serializer = AvaliacaoSerializer(avaliacoes, many=True) <NEW_LINE> return Response(serializer.data) <NEW_LINE> def post(self, request): <NEW_LINE> <INDENT> serializer = Avalia... | API de Avaliações | 62598fb3e1aae11d1e7ce875 |
class LoginView(BaseView): <NEW_LINE> <INDENT> def __init__(self, user_id, query_params): <NEW_LINE> <INDENT> self.user_id = user_id <NEW_LINE> self.query_params = query_params <NEW_LINE> <DEDENT> def get(self, headers, data): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.user_id = validate_int(self.user_id, 31) <N... | View objects are created per request | 62598fb357b8e32f5250816d |
class CSVSheetWriter(SheetWriter): <NEW_LINE> <INDENT> def __init__(self, filename, name, encoding="utf-8", single_sheet_in_book=False, sheet_index=None, **keywords): <NEW_LINE> <INDENT> self.encoding = encoding <NEW_LINE> self.sheet_name = name <NEW_LINE> self.single_sheet_in_book = single_sheet_in_book <NEW_LINE> sel... | csv file writer | 62598fb330bbd722464699ca |
class Decorator(SymbolNode, Statement): <NEW_LINE> <INDENT> func = None <NEW_LINE> decorators = None <NEW_LINE> var = None <NEW_LINE> is_overload = False <NEW_LINE> def __init__(self, func: FuncDef, decorators: List[Expression], var: 'Var') -> None: <NEW_LINE> <INDENT> self.func = func <NEW_LINE> self.decorators = deco... | A decorated function.
A single Decorator object can include any number of function decorators. | 62598fb3a219f33f346c68a7 |
class TPrimitiveTypeEntry(object): <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.I32, 'type', None, None, ), (2, TType.STRUCT, 'typeQualifiers', (TTypeQualifiers, TTypeQualifiers.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, type=None, typeQualifiers=None,): <NEW_LINE> <INDENT> self.type = type <NEW_LINE... | Attributes:
- type
- typeQualifiers | 62598fb34a966d76dd5eef7a |
class EdiSoapMapping(orm.Model): <NEW_LINE> <INDENT> _name = 'edi.soap.mapping' <NEW_LINE> _description = 'EDI Soap Mapping' <NEW_LINE> _rec_name = 'name' <NEW_LINE> _order = 'connection_id,default_code' <NEW_LINE> def onchange_product_id(self, cr, uid, ids, product_id, context=None): <NEW_LINE> <INDENT> if not product... | Soap Parameter for connection
| 62598fb38e7ae83300ee9147 |
class Author(db.Model): <NEW_LINE> <INDENT> __tablename__='authors' <NEW_LINE> id=db.Column(db.Integer,primary_key=True) <NEW_LINE> name=db.Column(db.String(64),unique=True) <NEW_LINE> books=db.relationship('Book',backref='author',lazy='dynamic') | 作者模型类 | 62598fb356ac1b37e630228e |
class Sampler(object): <NEW_LINE> <INDENT> def __init__(self, data_source, shuffle=True): <NEW_LINE> <INDENT> self.data_source = data_source <NEW_LINE> self.shuffle = shuffle <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> data_idxs = np.arange(len(self.data_source)) <NEW_LINE> if self.shuffle: <NEW_LINE> <... | Our sampler random selects one element from our data source when shuffle=True,
and it will only iterate our data source only once. | 62598fb34527f215b58e9f78 |
class ChassisConfigurationActions(object): <NEW_LINE> <INDENT> def __init__(self, cli_service, logger): <NEW_LINE> <INDENT> self._cli_service = cli_service <NEW_LINE> self._logger = logger <NEW_LINE> <DEDENT> def set_chassis_name(self, chassis_name): <NEW_LINE> <INDENT> output = CommandTemplateExecutor(self._cli_servic... | Chassis configuration actions | 62598fb3442bda511e95c4fb |
class ApiGetVfsFileContentUpdateStateHandlerRegressionTest( api_regression_test_lib.ApiRegressionTest, vfs_plugin_test.VfsTestMixin): <NEW_LINE> <INDENT> api_method = "GetVfsFileContentUpdateState" <NEW_LINE> handler = vfs_plugin.ApiGetVfsFileContentUpdateStateHandler <NEW_LINE> def Run(self): <NEW_LINE> <INDENT> clien... | Regression test for ApiGetVfsFileContentUpdateStateHandler. | 62598fb3ec188e330fdf8933 |
class HammingRewardSampler(nn.Module): <NEW_LINE> <INDENT> def __init__(self, opt): <NEW_LINE> <INDENT> super(HammingRewardSampler, self).__init__() <NEW_LINE> self.logger = opt.logger <NEW_LINE> self.alpha = opt.alpha <NEW_LINE> assert self.alpha > 0, 'set alpha to a nonzero value, otherwise use the default loss' <NEW... | Sampling the sentences wtr the reward distribution
instead of the captionig model itself | 62598fb3009cb60464d015c5 |
class ErrorResponse(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'error': {'key': 'error', 'type': 'ErrorDefinition'}, } <NEW_LINE> def __init__( self, *, error: Optional["ErrorDefinition"] = None, **kwargs ): <NEW_LINE> <INDENT> super(ErrorResponse, self).__init__(**kwargs) <NEW_LINE> self.error... | Error response.
:param error: The error details.
:type error: ~azure.mgmt.managedservices.models.ErrorDefinition | 62598fb37047854f4633f47f |
class RemoteButtons(Peripheral): <NEW_LINE> <INDENT> _sensor_id = 0x0037 <NEW_LINE> Port = Enum('Port', 'L R', start=0) <NEW_LINE> Button = IntEnum('Button', 'PLUS RED MINUS', start=0) <NEW_LINE> capability = Enum('capability', {'sense_press':4},) <NEW_LINE> datasets = { capability.sense_press: (3,1) } <NEW_LINE> allow... | Represents one set of '+', '-', 'red' buttons on the PoweredHub Remote
Each remote has two sets of buttons, on the left and right side. Pick the one
your want to attach to by using the port argument with either Port.L or Port.R.
There are actually a few different modes that the hardware supports, but we are
only goi... | 62598fb3460517430c4320b0 |
class TestUtil(unittest.TestCase): <NEW_LINE> <INDENT> def test_get_relays_in_country(self): <NEW_LINE> <INDENT> relays1 = util.get_relays_in_country("at") <NEW_LINE> self.assertTrue(len(relays1) > 0) <NEW_LINE> relays2 = util.get_relays_in_country("AT") <NEW_LINE> self.assertTrue(len(relays1) == len(relays2)) <NEW_LIN... | Test the util module. | 62598fb33346ee7daa337699 |
class InfoTagVideo: <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def getDbId(self) -> int: <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> def getDirector(self) -> str: <NEW_LINE> <INDENT> return "" <NEW_LINE> <DEDENT> def getWritingCredits(self) -> str: <NEW_LINE> <INDE... | **Kodi's video info tag class.**
To get video info tag data of currently played source.
.. note::
Info tag load is only be possible from present player class.
Example::
...
tag = xbmc.Player().getVideoInfoTag()
title = tag.getTitle()
file = tag.getFile()
... | 62598fb37d43ff2487427454 |
class ChannelSELayer(nn.Module): <NEW_LINE> <INDENT> def __init__( self, spatial_dims: int, in_channels: int, r: int = 2, acti_type_1: Union[Tuple[str, Dict], str] = ("relu", {"inplace": True}), acti_type_2: Union[Tuple[str, Dict], str] = "sigmoid", add_residual: bool = False, ) -> None: <NEW_LINE> <INDENT> super(Chann... | Re-implementation of the Squeeze-and-Excitation block based on:
"Hu et al., Squeeze-and-Excitation Networks, https://arxiv.org/abs/1709.01507". | 62598fb3a17c0f6771d5c2d9 |
class rule_001(deprecated_rule.Rule): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> deprecated_rule.Rule.__init__(self, 'attribute', '001') <NEW_LINE> self.message.append('Rule ' + self.unique_id + ' has been superceeded by attribute_declaration_300 and attribute_specification_300.') | This rule has been superceeded by:
* `attribute_declaration_300 <attribute_declaration_rules.html#attribute-declaration-300>`_
* `attribute_specification_300 <attribute_specification_rules.html#attribute-specification-300>`_ | 62598fb34e4d5625663724cb |
class AccountController(BaseController): <NEW_LINE> <INDENT> def create_view_account(self, date): <NEW_LINE> <INDENT> _query_builder = Configuration.base_uri <NEW_LINE> _query_builder += '/accounts/viewaccount.json' <NEW_LINE> _query_url = APIHelper.clean_url(_query_builder) <NEW_LINE> _form_parameters = { 'Date': date... | A Controller to access Endpoints in the ytelapi API. | 62598fb3d58c6744b42dc32b |
class TestCustomClass(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> class PersonsGrid(Djid): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> djid_id = 'persons' <NEW_LINE> query_set = Person.objects.all() <NEW_LINE> <DEDENT> first_name = CharColumn(label='First Name') <NEW_LINE> last_... | Test for a class with all custom columns. | 62598fb3f9cc0f698b1c531d |
class BlogEntry(EntryAbstractClass): <NEW_LINE> <INDENT> within_serie = models.ForeignKey(BlogSerie, null=True, blank=True, related_name='entries') <NEW_LINE> @property <NEW_LINE> def real_image(self): <NEW_LINE> <INDENT> if self.image: <NEW_LINE> <INDENT> return self.image <NEW_LINE> <DEDENT> if self.within_serie is n... | Represents a blog entry. Adds an optional `serie` field to the default
Zinnia model. | 62598fb367a9b606de546073 |
class PredictionClient(): <NEW_LINE> <INDENT> BATCH_SIZE = 20 <NEW_LINE> def provide_input(self) -> List[tf.Tensor]: <NEW_LINE> <INDENT> with tf.name_scope('loading'): <NEW_LINE> <INDENT> prediction_input, expected_result = get_data_from_tfrecord( "./data/test.tfrecord", self.BATCH_SIZE).get_next() <NEW_LINE> <DEDENT> ... | Contains methods meant to be executed by a prediction client.
Args:
player_name: `str`, name of the `tfe.player.Player`
representing the data owner
build_update_step: `Callable`, the function used to construct
a local federated learning update. | 62598fb332920d7e50bc60f8 |
class WeekWithScheduleMixin(WeekCalendarMixin): <NEW_LINE> <INDENT> def get_week_schedules(self, start, end, days): <NEW_LINE> <INDENT> lookup = { '{}__range'.format(self.date_field): (start, end) } <NEW_LINE> queryset = self.get_queryset().filter(**lookup) <NEW_LINE> day_schedules = {day: [] for day in days} <NEW_LINE... | スケジュール付きの、週間カレンダーを提供するMixin | 62598fb360cbc95b063643eb |
class RegisterI(object): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> @abstractmethod <NEW_LINE> def getLoginEntry(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def getPasswordEntry(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def getConfirmPa... | Register view interface | 62598fb330dc7b766599f8f0 |
class Horas_Trabajadas(models.Model): <NEW_LINE> <INDENT> horas_trabajadas=models.FloatField() <NEW_LINE> descripcion_horas_trabajadas=models.CharField(max_length = 500) <NEW_LINE> fecha=models.DateTimeField() <NEW_LINE> actividad=models.CharField(max_length = 200) <NEW_LINE> estado=models.CharField(max_length = 200) <... | Modelo representa la descripcion de cada hora de trabajo agregada mostrando de la fecha de la misma | 62598fb3b7558d58954636d0 |
class VarDispatcher(Dispatcher): <NEW_LINE> <INDENT> def __call__(self, *args, **kwargs): <NEW_LINE> <INDENT> func, s = self.resolve(args) <NEW_LINE> d = dict((k.token, v) for k, v in s.items()) <NEW_LINE> return func(**d) | A dispatcher that calls functions with variable names.
>>> d = VarDispatcher('d')
>>> x = var('x')
>>> @d.register('inc', x)
... def f(x):
... return x + 1
>>> @d.register('double', x)
... def f(x):
... return x * 2
>>> d('inc', 10)
11
>>> d('double', 10)
20 | 62598fb33317a56b869be59e |
class CustomSplitMapMixin: <NEW_LINE> <INDENT> _Key = Tuple[StringID, str] <NEW_LINE> _CUSTOM_SPLIT_MAP: Dict[_Key, Tuple[CustomSplit, ...]] = defaultdict(tuple) <NEW_LINE> @staticmethod <NEW_LINE> def _get_key(string: str) -> "CustomSplitMapMixin._Key": <NEW_LINE> <INDENT> return (id(string), string) <NEW_LINE> <DEDEN... | This mixin class is used to map merged strings to a sequence of
CustomSplits, which will then be used to re-split the strings iff none of
the resultant substrings go over the configured max line length. | 62598fb330bbd722464699cb |
class Solution: <NEW_LINE> <INDENT> def isValidSudoku(self, board): <NEW_LINE> <INDENT> row = [set([]) for i in range(9)] <NEW_LINE> col = [set([]) for i in range(9)] <NEW_LINE> grid = [set([]) for i in range(9)] <NEW_LINE> for r in range(9): <NEW_LINE> <INDENT> for c in range(9): <NEW_LINE> <INDENT> if board[r][c] == ... | @param: board: the board
@return: whether the Sudoku is valid | 62598fb3091ae35668704cc2 |
class Object(EventContainer): <NEW_LINE> <INDENT> def __init__(self, cond = None): <NEW_LINE> <INDENT> if cond == None: <NEW_LINE> <INDENT> self.CureCond = self.defCon <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.CureCond = cond <NEW_LINE> <DEDENT> self.SOC[self.CureCond].addObject() <NEW_LINE> self.GenEv() <NEW_... | Класс Объект.
Каждый объект существует внутри некоторого компартмента.
Компартмент-хендлер -- пустой класс-идентификатор поведения для Объектов
По большому счету, нам не важно какие Объекты содержатся в компартменте,
Т.к. от компартмента нам нужно только знание содержимого (количества).
Данные о состоянии Объекта в ... | 62598fb363b5f9789fe8520e |
class Published(PublishingState): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self._namespace = ONTOLOGY_NS <NEW_LINE> self._project_id = PROJECT_ID <NEW_LINE> self._name = "Published" | State of an expression having been published.
Labels: publiziert (de) / published (en) | 62598fb35fc7496912d482ce |
class TransferFunction(lti): <NEW_LINE> <INDENT> def __new__(cls, *system): <NEW_LINE> <INDENT> if len(system) == 1 and isinstance(system[0], lti): <NEW_LINE> <INDENT> return system[0].to_tf() <NEW_LINE> <DEDENT> return super(TransferFunction, cls).__new__(cls) <NEW_LINE> <DEDENT> def __init__(self, *system): <NEW_LINE... | Linear Time Invariant system class in transfer function form.
Represents the system as the transfer function
:math:`H(s)=\sum_i b[i] s^i / \sum_j a[j] s^i`, where :math:`a` are
elements of the numerator `num` and :math:`b` are the elements of the
denominator `den`.
Parameters
----------
*system : arguments
The `T... | 62598fb3a8370b77170f0482 |
class CaseType(ModelBase): <NEW_LINE> <INDENT> @property <NEW_LINE> def is_default(self): <NEW_LINE> <INDENT> return self._content.get('is_default', None) <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self._content.get('name', None) | Object model for TestRail Case Types
To get all case types
.. code-block:: python
case_types = list(traw_client.case_types()) | 62598fb3cc0a2c111447b0b8 |
class TestReportApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = bondora_api.apis.report_api.ReportApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_report_generate_report(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def... | ReportApi unit test stubs | 62598fb3f548e778e596b64a |
class ConsoleApiView: <NEW_LINE> <INDENT> def end_categories_selection(self, category_number, category_list): <NEW_LINE> <INDENT> print("les {} catégories ont été sélectionnées".format(category_number)) <NEW_LINE> print("les catégories sélectionnées sont:") <NEW_LINE> for category in category_list: <NEW_LINE> <INDENT> ... | This class manages the console's messages for the interactions with the API | 62598fb3283ffb24f3cf3932 |
class Node: <NEW_LINE> <INDENT> def __init__(self, item): <NEW_LINE> <INDENT> super(Node, self).__init__() <NEW_LINE> self.item = item <NEW_LINE> self.next = None | 节点类 | 62598fb3a05bb46b3848a911 |
@OFPMultipartReply.register_stats_type() <NEW_LINE> @_set_stats_type(ofproto.OFPMP_TABLE_FEATURES, OFPTableFeaturesStats) <NEW_LINE> class OFPTableFeaturesStatsReply(OFPMultipartReply): <NEW_LINE> <INDENT> def __init__(self, type_=None, **kwargs): <NEW_LINE> <INDENT> super(OFPTableFeaturesStatsReply, self).__init__(**k... | Table features statistics reply message
The switch responds with this message to a table features statistics
request.
================ ======================================================
Attribute Description
================ ======================================================
body List of ``... | 62598fb3379a373c97d990bb |
class _AttrDict(dict): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(_AttrDict, self).__init__(*args, **kwargs) <NEW_LINE> self.__dict__ = self | Attribute dictionary.
A trick to allow accessing dictionary keys as object attributes. | 62598fb355399d3f056265c0 |
class ProductionWorkTestCase(ModuleTestCase): <NEW_LINE> <INDENT> module = 'production_work' | Test Production Work module | 62598fb37b180e01f3e490a3 |
class UnpackUtility: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def sizeOfAxis(x, ind): <NEW_LINE> <INDENT> return x.shape[ind] if x is not None else 0 <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def readBinFile(filePath, dtype, packSize, totFirings, numExpr): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> f = open(fi... | Provide a series of statistic methods for Unpack classes | 62598fb367a9b606de546074 |
class NuProcedure(LambdaProcedure): <NEW_LINE> <INDENT> def _symbol(self): <NEW_LINE> <INDENT> return 'nu' <NEW_LINE> <DEDENT> "*** YOUR CODE HERE ***" <NEW_LINE> def evaluate_arguments(self, arg_list, env): <NEW_LINE> <INDENT> return arg_list.map(lambda operand: Thunk(nil, operand, env)) | A procedure whose parameters are to be passed by name. | 62598fb34f6381625f199513 |
class House: <NEW_LINE> <INDENT> def __init__(self, xpos): <NEW_LINE> <INDENT> self.rect = Rect(xpos, 550, 40, 40) <NEW_LINE> self.exploded = False <NEW_LINE> sysfont = pygame.font.SysFont(None, 40) <NEW_LINE> font_house_a = sysfont.render("A", False, (255, 255, 255)) <NEW_LINE> font_house_b = sysfont.render("X", False... | House Object | 62598fb3e5267d203ee6b9aa |
class LabsEventResult(models.Model): <NEW_LINE> <INDENT> block = models.ForeignKey(LabsEventBlock, on_delete=models.CASCADE, related_name='results', verbose_name=_('Блок мероприятия')) <NEW_LINE> uuid = models.CharField(max_length=36, unique=True, verbose_name=_('UUID')) <NEW_LINE> title = models.TextField(verbose_name... | Результаты блоков мароприятий по данным из лабс | 62598fb3d486a94d0ba2c077 |
class MockParser: <NEW_LINE> <INDENT> def __init__(self, name = None, help = None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.help = help <NEW_LINE> self.description = None <NEW_LINE> self.arguments = {} <NEW_LINE> <DEDENT> def add_argument(self, *names, **params): <NEW_LINE> <INDENT> for name in names: <NEW... | A mock parser, allowing tests to examine the changes. | 62598fb332920d7e50bc60fa |
class ResNet(nn.Module): <NEW_LINE> <INDENT> def __init__(self, layers=(3, 4, 6, 3), outputs=(3, 4, 5), state_dict_path='/Users/nick/.cache/torch/checkpoints/resnet50-19c8e357.pth'): <NEW_LINE> <INDENT> super(ResNet, self).__init__() <NEW_LINE> self.outputs = outputs <NEW_LINE> self.state_dict_path = state_dict_path <N... | Deep Residual Network - https://arxiv.org/abs/1512.03385 | 62598fb391f36d47f2230efb |
class DeletePersonalSqlRequest(JDCloudRequest): <NEW_LINE> <INDENT> def __init__(self, parameters, header=None, version="v1"): <NEW_LINE> <INDENT> super(DeletePersonalSqlRequest, self).__init__( '/regions/{regionId}/personalSql:delete', 'POST', header, version) <NEW_LINE> self.parameters = parameters | 删除收藏sql | 62598fb3a8370b77170f0483 |
class Weapon_Terraformer(Weapon_DirectionalGen_Base): <NEW_LINE> <INDENT> def shoot(self, dir): <NEW_LINE> <INDENT> targetsquare = self.wieldingunit.square <NEW_LINE> for distance in 1, 2: <NEW_LINE> <INDENT> targetsquare = self.game.board[targetsquare].getRelSquare(dir, 1) <NEW_LINE> self._convertGrassland(targetsquar... | Eradicate all life in front of the Terraformer. Terraformer. Yes, the unit is called Terraformer and the weapon is also called Terraformer | 62598fb3dd821e528d6d8fd5 |
class PlaceSingleItem(smach.State): <NEW_LINE> <INDENT> def __init__(self, robot, place_designator): <NEW_LINE> <INDENT> smach.State.__init__(self, outcomes=["succeeded", "failed"]) <NEW_LINE> self._robot = robot <NEW_LINE> if place_designator is not None: <NEW_LINE> <INDENT> self.place_designator = place_designator <N... | Tries to place an object. A 'place' statemachine is constructed dynamically since this makes it easier to
build a statemachine (have we succeeded in grasping the objects?) | 62598fb34a966d76dd5eef7e |
class AppUser(AbstractUser): <NEW_LINE> <INDENT> google_access_token = models.CharField(max_length=100, default=None, null=True, blank=True) <NEW_LINE> facebook_access_token = models.CharField(max_length=100, default=None, null=True, blank=True) <NEW_LINE> google_uid = models.CharField(max_length=100, default=None, nul... | Define fields related to a user | 62598fb332920d7e50bc60fb |
class PSUTag(JSONable): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def construct_from_jdict(cls, jdict): <NEW_LINE> <INDENT> if not jdict: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> items = jdict.split('.') <NEW_LINE> device = items[0] <NEW_LINE> api = items[1] <NEW_LINE> patch = items[2] <NEW_LINE> return cl... | classdocs | 62598fb3cc0a2c111447b0ba |
class MarubatuMenu(wx.MenuBar): <NEW_LINE> <INDENT> def onMenuManageClick(self,event): <NEW_LINE> <INDENT> menu_id=event.GetId() <NEW_LINE> menu_obj=event.GetEventObject() <NEW_LINE> menu_label=menu_obj.GetLabel(menu_id) <NEW_LINE> if menu_label==self.RESET_MENU_LABEL: <NEW_LINE> <INDENT> print(self.RESET_MENU_LABEL) <... | CalcFrameにセットするメニューバークラス | 62598fb39c8ee823130401c6 |
class TestExerciseCase01(TestExercise): <NEW_LINE> <INDENT> length = 2 <NEW_LINE> option_quantity = -100 <NEW_LINE> option_price = 0 <NEW_LINE> asset_quantity = -100 <NEW_LINE> asset_price = 10 <NEW_LINE> exercise = EXERCISE_OPERATION6 | Being exercised on a call. | 62598fb3379a373c97d990bd |
class HasLoss(Params): <NEW_LINE> <INDENT> loss = Param(Params._dummy(), "loss", "the loss function to be optimized.", typeConverter=TypeConverters.toString) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(HasLoss, self).__init__() <NEW_LINE> <DEDENT> def setLoss(self, value): <NEW_LINE> <INDENT> return self._... | Mixin for param loss: the loss function to be optimized. | 62598fb37047854f4633f482 |
class VmadHandlerINFO(_AFixedContainer): <NEW_LINE> <INDENT> processors = OrderedDict([ (u'extra_bind_data_version', get_structs(u'b')), (u'fragment_flags', get_structs(u'B')), (u'file_name', u'str16'), ]) <NEW_LINE> flags_mapper = Flags.from_names(u'on_begin', u'on_end') <NEW_LINE> flags_to_chil... | Implements special VMAD handling for INFO records. | 62598fb33d592f4c4edbaf68 |
class IndexDataReader: <NEW_LINE> <INDENT> def __init__(self, data_file, batch_size, bulk_size, file_source, action_metadata, index_name, type_name): <NEW_LINE> <INDENT> self.data_file = data_file <NEW_LINE> self.batch_size = batch_size <NEW_LINE> self.bulk_size = bulk_size <NEW_LINE> self.file_source = file_source <NE... | Reads a file in bulks into an array and also adds a meta-data line before each document if necessary.
This implementation also supports batching. This means that you can specify batch_size = N * bulk_size, where N is any natural
number >= 1. This makes file reading more efficient for small bulk sizes. | 62598fb3cc0a2c111447b0bb |
class DynamicUnet(SequentialEx): <NEW_LINE> <INDENT> def __init__(self, encoder: nn.Module, n_classes: int, img_size: Tuple[int, int] = (256, 256), blur: bool = False, blur_final=True, self_attention: bool = False, y_range: Optional[Tuple[float, float]] = None, last_cross: bool = True, bottle: bool = False, **kwargs): ... | Create a U-Net from a given architecture. | 62598fb37b180e01f3e490a4 |
class Cart: <NEW_LINE> <INDENT> def __init__(self, request): <NEW_LINE> <INDENT> cart_id = request.session.get(CART_ID) <NEW_LINE> cart = None <NEW_LINE> if cart_id: <NEW_LINE> <INDENT> query = Q(id=cart_id) <NEW_LINE> if request.user.is_authenticated: <NEW_LINE> <INDENT> cart = models.Cart.objects.filter(user=request.... | Cart class, this will have all methods like add, remove, etc related to a cart | 62598fb33539df3088ecc35a |
class InputMediaGifExternal(Object): <NEW_LINE> <INDENT> ID = 0x4843b0fd <NEW_LINE> def __init__(self, url: str, q: str): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> self.q = q <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(b: BytesIO, *args) -> "InputMediaGifExternal": <NEW_LINE> <INDENT> url = String.read(b)... | Attributes:
ID: ``0x4843b0fd``
Args:
url: ``str``
q: ``str`` | 62598fb3d7e4931a7ef3c13c |
class Static(A10BaseClass): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.ERROR_MSG = "" <NEW_LINE> self.required = [ "src_address","nat_address"] <NEW_LINE> self.b_key = "static" <NEW_LINE> self.a10_url="/axapi/v3/ip/nat/inside/source/static/{src_address}+{nat_address}" <NEW_LINE> self.Dev... | Class Description::
Static Address Translations.
Class static supports CRUD Operations and inherits from `common/A10BaseClass`.
This class is the `"PARENT"` class for this module.`
:param nat_address: {"optional": false, "type": "string", "description": "NAT Address", "format": "ipv4-address"}
:param vrid: {"descript... | 62598fb33346ee7daa33769b |
class OptionsManager: <NEW_LINE> <INDENT> normal_defaults = defaultnormaloptions <NEW_LINE> query_defaults = defaultqueryoptions <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.nopts = {} <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def validate_nopts(cls, nopts): <NEW_LINE> <INDENT> illegal_normal_keys = ... | Manages access to program options. | 62598fb3167d2b6e312b701a |
class UpgradeHeader(ft.ProductComment): <NEW_LINE> <INDENT> field_name = "Upgrade" | The Upgrade general-header allows the client to specify
what additional communication protocols it supports and
would like to use if the server finds it appropriate to
switch protocols.
Upgrade = "Upgrade" ":" 1#product | 62598fb34428ac0f6e6585c7 |
class TagPropertyAllowedValue(object): <NEW_LINE> <INDENT> def __init__(self, value=None, display_name=None, flags=None): <NEW_LINE> <INDENT> self.swagger_types = { 'value': 'str', 'display_name': 'str', 'flags': 'list[str]' } <NEW_LINE> self.attribute_map = { 'value': 'value', 'display_name': 'displayName', 'flags': '... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fb34a966d76dd5eef7f |
class Manager(base.SubManager): <NEW_LINE> <INDENT> resource_class = Resource <NEW_LINE> service_type = 'compute' <NEW_LINE> _attr_mapping = ATTRIBUTE_MAPPING <NEW_LINE> _hidden_methods = ["update"] <NEW_LINE> _json_resource_key = 'security_group_rule' <NEW_LINE> _json_resources_key = 'security_group_rules' <NEW_LINE> ... | Manager class for security group rules in Compute API v2 | 62598fb3ff9c53063f51a6f5 |
class Destination(Mixin, db.Model): <NEW_LINE> <INDENT> __tablename__ = "destination" <NEW_LINE> id = db.Column(db.Integer, unique=True, primary_key=True) <NEW_LINE> lat = db.Column(db.Float, nullable=False) <NEW_LINE> lon = db.Column(db.Float, nullable=False) <NEW_LINE> code = db.Column(db.Integer, nullable=False) <NE... | Destination Table. | 62598fb366656f66f7d5a498 |
class BrowseNodeAncestor(object): <NEW_LINE> <INDENT> swagger_types = { 'ancestor': 'BrowseNodeAncestor', 'context_free_name': 'str', 'display_name': 'str', 'id': 'str' } <NEW_LINE> attribute_map = { 'ancestor': 'Ancestor', 'context_free_name': 'ContextFreeName', 'display_name': 'DisplayName', 'id': 'Id' } <NEW_LINE> d... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fb33317a56b869be5a0 |
class TGroup_User(db.Model): <NEW_LINE> <INDENT> __tablename__ = "tgroup_user" <NEW_LINE> targetgroup_id = db.Column( db.Integer, db.ForeignKey("targetgroup.id"), primary_key=True) <NEW_LINE> user_id = db.Column( db.Integer, db.ForeignKey("user.id"), primary_key=True) | Targetgroups contain several users | 62598fb376e4537e8c3ef64f |
class GeneralOutput: <NEW_LINE> <INDENT> def __init__(self, sitesData): <NEW_LINE> <INDENT> self.sitesData = sitesData <NEW_LINE> <DEDENT> def startProcessing(self): <NEW_LINE> <INDENT> pass | The GeneralOuptut class should be subclassed by the output plugin.
:param dict sitesData: The data from sites in the form of a dictionary. The keys should be the sites, and the values should be an array of times for the transfers.
.. _sitesData-label:
An example structure for ``sitesData`` is::
sitesData = {
... | 62598fb3a79ad1619776a112 |
class AccountLimits(Choreography): <NEW_LINE> <INDENT> def __init__(self, temboo_session): <NEW_LINE> <INDENT> Choreography.__init__(self, temboo_session, '/Library/FaceCom/AccountLimits') <NEW_LINE> <DEDENT> def new_input_set(self): <NEW_LINE> <INDENT> return AccountLimitsInputSet() <NEW_LINE> <DEDENT> def _make_resul... | Create a new instance of the AccountLimits Choreography. A TembooSession object, containing a valid
set of Temboo credentials, must be supplied. | 62598fb3be8e80087fbbf10f |
class OrderWidgetItem(QTreeWidgetItem): <NEW_LINE> <INDENT> def __init__(self, parent, order): <NEW_LINE> <INDENT> QTreeWidgetItem.__init__(self, parent) <NEW_LINE> self.order = order <NEW_LINE> order_time = datetime.datetime.fromtimestamp(int(order["timestamp"])).strftime('%Y-%m-%d %H:%M:%S') <NEW_LINE> self.setText(0... | This class represents a widget that displays an order. | 62598fb332920d7e50bc60fd |
@requested_by("streetart.tests.requestors.pages.CreatePostViewRequestor") <NEW_LINE> class CreatePostView(BaseFormView): <NEW_LINE> <INDENT> template_name = "pages/new_streetart_post.html" <NEW_LINE> form_class = NewStreetArtPostForm <NEW_LINE> def form_valid(self, form): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> im... | This is a view for creating new street art posts. | 62598fb3fff4ab517ebcd890 |
class WinkLight(WinkDevice, Light): <NEW_LINE> <INDENT> def __init__(self, wink): <NEW_LINE> <INDENT> WinkDevice.__init__(self, wink) <NEW_LINE> <DEDENT> @property <NEW_LINE> def is_on(self): <NEW_LINE> <INDENT> return self.wink.state() <NEW_LINE> <DEDENT> @property <NEW_LINE> def brightness(self): <NEW_LINE> <INDENT> ... | Representation of a Wink light. | 62598fb34a966d76dd5eef81 |
class FileHandler(LFileHandler): <NEW_LINE> <INDENT> pass | A output FileHandler. | 62598fb3d7e4931a7ef3c13e |
class Statistics(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.allTimers = [] <NEW_LINE> self.stat = 0 <NEW_LINE> <DEDENT> def arithmetic_mean(self, collection): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.allTimers = collection <NEW_LINE> self.stat = mean(collection) <NEW_LINE> <DEDEN... | The library used to define statistical outputs | 62598fb338b623060ffa9146 |
class GamePlayTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.bot = unitility.AutoBot(['win']) <NEW_LINE> self.game = unitility.TestGame(self.bot, '') <NEW_LINE> <DEDENT> def testCleanUpBot(self): <NEW_LINE> <INDENT> self.game.play() <NEW_LINE> self.assertTrue(self.bot.all_done) <... | Tests of playing the game. (unittest.TestCase) | 62598fb37b25080760ed755b |
class SMSOutputData(OutputData): <NEW_LINE> <INDENT> phone_number = None <NEW_LINE> def send(self): <NEW_LINE> <INDENT> logger.info("Sending via SMS") <NEW_LINE> vc = voicecall.Voicecall() <NEW_LINE> return vc.conduct_sms(self.phone_number, self.data, "outbound-sms") | Define necessary OutputData for sending via sms. | 62598fb363b5f9789fe85214 |
class DescribeInstancesResultSet(ResultSet): <NEW_LINE> <INDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None) | Retrieve the value for the "Response" output from this choreography execution. ((xml) The response from Amazon.) | 62598fb38a43f66fc4bf2224 |
class PasswordAuthBackend(ModelBackend): <NEW_LINE> <INDENT> def authenticate(self, username=None, password=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> user = User.objects.get(username=username) <NEW_LINE> <DEDENT> except User.DoesNotExist: <NEW_LINE> <INDENT> User().set_password(password) <NEW_LINE> return Non... | Log in to Django without providing a password.
| 62598fb371ff763f4b5e781e |
class ParseLabelException(ParseBaseException): <NEW_LINE> <INDENT> pass | If dnspython can't decode this label, throw a stringy! | 62598fb3d268445f26639bd8 |
class OutputObserver(Callback): <NEW_LINE> <INDENT> def __init__(self, data, output_path, mask_colors, batch_size = 2, tmp_interval = 100): <NEW_LINE> <INDENT> self.epoch = 0 <NEW_LINE> self.data = data <NEW_LINE> self.output_path = output_path <NEW_LINE> self.mask_colors = mask_colors <NEW_LINE> if isinstance(data,(li... | "
Callback to save segmentation predictions during training.
# Arguments:
data data that should be used for prediction
output_path directory where epoch predictions are to be stored
mask_colors class colors used for visualizing predictions
batch_size batch size used for predicti... | 62598fb3be7bc26dc9251eb1 |
class AdaptorIpV6RssHashProfile(ManagedObject): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> ManagedObject.__init__(self, "AdaptorIpV6RssHashProfile") <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def class_id(): <NEW_LINE> <INDENT> return "adaptorIpV6RssHashProfile" <NEW_LINE> <DEDENT> DN = "Dn" <NEW_LIN... | This class contains the relevant properties and constant supported by this MO. | 62598fb38e7ae83300ee914e |
class AutoUrlGetter(BaseUrlGetter): <NEW_LINE> <INDENT> def action(self): <NEW_LINE> <INDENT> print("开启自动爬取") <NEW_LINE> base_url = "http://weixin.sogou.com/weixin?type=1&query=###&ie=utf8&_sug_=n&_sug_type_=" <NEW_LINE> while True: <NEW_LINE> <INDENT> for record in self.biz_map_db.find_all(): <NEW_LINE> <INDENT> if 'l... | 自动爬取公众号文章列表,不停的循环,每天爬一次
1、搜狗搜索微信公众号名字
2、找到对应的公众号链接
3、进入链接,获取前十条数据 | 62598fb3aad79263cf42e87d |
class SetUserCommand(UserCommand[SetUserRequest, UserResponse]): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def add_subparser(cls, name: str, subparsers: Any) -> ArgumentParser: <NEW_LINE> <INDENT> subparser: ArgumentParser = subparsers.add_parser( name, description=cls.__doc__, help='assign a password to a... | Set the metadata for a user, creating it if it does not exist. | 62598fb3627d3e7fe0e06f59 |
class MongoProxy: <NEW_LINE> <INDENT> def __init__(self, conn, logger=None, wait_time=None): <NEW_LINE> <INDENT> if logger is None: <NEW_LINE> <INDENT> import logging <NEW_LINE> logger = logging.getLogger(__name__) <NEW_LINE> <DEDENT> self.conn = conn <NEW_LINE> self.logger = logger <NEW_LINE> self.wait_time = wait_tim... | Proxy for MongoDB connection.
Methods that are executable, i.e find, insert etc, get wrapped in an
Executable-instance that handles AutoReconnect-exceptions transparently. | 62598fb391f36d47f2230efd |
class Connection(base.Connection): <NEW_LINE> <INDENT> CAPABILITIES = utils.update_nested(base.Connection.CAPABILITIES, COMMON_AVAILABLE_CAPABILITIES) <NEW_LINE> STORAGE_CAPABILITIES = utils.update_nested( base.Connection.STORAGE_CAPABILITIES, AVAILABLE_STORAGE_CAPABILITIES, ) <NEW_LINE> def get_meters(self, user=None,... | Base Connection class for MongoDB and DB2 drivers. | 62598fb3a8370b77170f0487 |
class FeatureMessageBlock(blocks.StructBlock): <NEW_LINE> <INDENT> text = blocks.RichTextBlock() <NEW_LINE> link_url = URLOrPageBlock(required=False) <NEW_LINE> link_text = blocks.CharBlock(required=False) <NEW_LINE> link_button = blocks.ChoiceBlock(choices=FAIR_BUTTON_CHOICES, required=False) <NEW_LINE> class Meta: <N... | Shows a callout. Can be used in several positions of a StreamField. | 62598fb356b00c62f0fb2962 |
@wraps_model(GuildMember, alias='member') <NEW_LINE> class GuildMemberAdd(GatewayEvent): <NEW_LINE> <INDENT> pass | Sent when a user joins a guild.
Attributes
----------
member : :class:`disco.types.guild.GuildMember`
The member that has joined the guild. | 62598fb34527f215b58e9f7f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.