code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Account(models.Model): <NEW_LINE> <INDENT> username = models.CharField(max_length=32) <NEW_LINE> amount = models.DecimalField(max_digits=8, decimal_places=2, default=settings.INIT_CACHE) <NEW_LINE> def __unicode(self): <NEW_LINE> <INDENT> return u'{0}: {1}'.format(self.username, self.amount) <NEW_LINE> <DEDENT> d... | A simple user account implementation | 62598f84379a373c97d98ac9 |
class OneList(metaclass=PythTest): <NEW_LINE> <INDENT> pass | ]5
[5]
---
]]]"test"
[[['test']]]
---
]
[]
---
]]
[[]] | 62598f84be383301e02532b1 |
class TextLineReader(ReaderBase): <NEW_LINE> <INDENT> def __init__(self, skip_header_lines=None, name=None): <NEW_LINE> <INDENT> rr = gen_io_ops._text_line_reader(skip_header_lines=skip_header_lines, name=name) <NEW_LINE> super(TextLineReader, self).__init__(rr) | A Reader that outputs the lines of a file delimited by newlines.
Newlines are stripped from the output.
See ReaderBase for supported methods. | 62598f84c432627299fa2a86 |
class MachineLearningComputeOperations: <NEW_LINE> <INDENT> models = _models <NEW_LINE> def __init__(self, client, config, serializer, deserializer) -> None: <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._serialize = serializer <NEW_LINE> self._deserialize = deserializer <NEW_LINE> self._config = config <NE... | MachineLearningComputeOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~azure.mgmt.machinelearningcomp... | 62598f8450485f2cf55daa2a |
class Movie(Video): <NEW_LINE> <INDENT> def __init__(self, movie_title, movie_duration,movie_description, movie_genre, movie_release, movie_main_actors, poster_image, trailer_youtube): <NEW_LINE> <INDENT> super(Movie, self).__init__(movie_title, movie_duration, movie_description, movie_genre) <NEW_LINE> self.release = ... | This class is used for store info about movies.
Attributes:
- movie_release(str): Release date
- movie_main_actors(str): Main actors inside the movie
- poster_image(str): Urof the video poster image
- trailer_youtube(str): Url of the youtube trailer | 62598f8426238365f5fac625 |
class lldp(packet_base.PacketBase): <NEW_LINE> <INDENT> _tlv_parsers = {} <NEW_LINE> def __init__(self, tlvs): <NEW_LINE> <INDENT> super(lldp, self).__init__() <NEW_LINE> self.tlvs = tlvs <NEW_LINE> <DEDENT> def _tlvs_len_valid(self): <NEW_LINE> <INDENT> return len(self.tlvs) >= 4 <NEW_LINE> <DEDENT> def _tlvs_valid(se... | LLDPDU encoder/decoder class.
An instance has the following attributes at least.
============== =====================================
Attribute Description
============== =====================================
tlvs List of TLV instance.
============== ===================================== | 62598f8471ff763f4b5e7226 |
class Unifize(AFNICommand): <NEW_LINE> <INDENT> _cmd = '3dUnifize' <NEW_LINE> input_spec = UnifizeInputSpec <NEW_LINE> output_spec = UnifizeOutputSpec | 3dUnifize - for uniformizing image intensity
* The input dataset is supposed to be a T1-weighted volume,
possibly already skull-stripped (e.g., via 3dSkullStrip).
However, this program can be a useful step to take BEFORE
3dSkullStrip, since the latter program can fail if the input
volume is strongly shaded -- ... | 62598f84c432627299fa2a87 |
class GUILoggingHandler(logging.StreamHandler): <NEW_LINE> <INDENT> def __init__(self, write_slot): <NEW_LINE> <INDENT> super(GUILoggingHandler, self).__init__() <NEW_LINE> self.sender = GUILoggingSender(write_slot) <NEW_LINE> <DEDENT> def emit(self, record): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> msg = self.form... | A handler class which sends messages to to a connected QSlot | 62598f840fa83653e46f49a6 |
class VerticalSeparator(MouseListenerBase, XMouseMotionListener): <NEW_LINE> <INDENT> VERT_SEP_IMAGE = "vertsep" <NEW_LINE> def __init__(self, ctx, act, vertsep): <NEW_LINE> <INDENT> MouseListenerBase.__init__(self, act) <NEW_LINE> self.enabled = True <NEW_LINE> ps = vertsep.getPosSize() <NEW_LINE> self.origin_x = ps.X... | Vertical separator. | 62598f8429b78933be269e36 |
class ResourceResponseHeadersFixerView(BrowserView): <NEW_LINE> <INDENT> def __call__(self): <NEW_LINE> <INDENT> FONT_NAME = "FontAwesome" <NEW_LINE> FONTS_PATH = "browser/theme/fonts/" <NEW_LINE> if FONT_NAME not in self.request.QUERY_STRING: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> font = self.request.get(... | With /resource_rhf?resource=FontAwesome.eot¶ms=oavxt5#iefix
- get the resource font from
/++resource++land.copernicus.theme/fonts/FontAwesome.eot?oavxt5#iefix
- return it with fixed response headers:
Get rid of Pragma cache
Fix Cache-Control to be not no-cache
instead of not working
- Pragma: no-cache... | 62598f8450485f2cf55daa2b |
class Menu(models.Model): <NEW_LINE> <INDENT> name = models.CharField("Имя", max_length=150) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = "Меню" <NEW_LINE> verbose_name_plural = "Меню" | Меню | 62598f8466656f66f7d59ead |
class VulnscanServerError(VulnscanException): <NEW_LINE> <INDENT> pass | Error message from the OpenVAS server. | 62598f840a366e3fb87dc485 |
class ScorerAndWriter(ConstituentScorer, CorpusFile): <NEW_LINE> <INDENT> def __init__(self, experiment, path=None, directory=None, logger=None, secondary_scores=0): <NEW_LINE> <INDENT> ConstituentScorer.__init__(self) <NEW_LINE> _, path = tempfile.mkstemp(dir=directory) if path is None else path <NEW_LINE> CorpusFile.... | A resource to which parsing results can be written.
Computes LF1 score (inhouse implementation) and writes resulting parse tree to a file. | 62598f84a4f1c619b294e0a5 |
class FixedSized(Subconstruct): <NEW_LINE> <INDENT> def __init__(self, length, subcon): <NEW_LINE> <INDENT> super(FixedSized, self).__init__(subcon) <NEW_LINE> self.length = length <NEW_LINE> <DEDENT> def _parse(self, stream, context, path): <NEW_LINE> <INDENT> length = evaluate(self.length, context) <NEW_LINE> if leng... | Restricts parsing to specified amount of bytes.
Parsing reads `length` bytes, then defers to subcon using new BytesIO with said bytes. Building defers to subcon, then measures how many bytes were written using stream tell(), computes the difference, and then writes additional null bytes accordingly. Size is same as `l... | 62598f8423e79379d538bfb2 |
class PolarAffine(Affine2DBase): <NEW_LINE> <INDENT> def __init__(self, scale_transform, limits): <NEW_LINE> <INDENT> Affine2DBase.__init__(self) <NEW_LINE> self._scale_transform = scale_transform <NEW_LINE> self._limits = limits <NEW_LINE> self.set_children(scale_transform, limits) <NEW_LINE> self._mtx = None <NEW_LIN... | The affine part of the polar projection. Scales the output so
that maximum radius rests on the edge of the axes circle. | 62598f8426068e7796d4c414 |
class Actor(nn.Module): <NEW_LINE> <INDENT> def __init__(self, state_size, action_size, seed, fc1_units=128, fc2_units=64): <NEW_LINE> <INDENT> super(Actor, self).__init__() <NEW_LINE> self.seed = torch.manual_seed(seed) <NEW_LINE> self.b_norm_a = nn.BatchNorm1d(state_size) <NEW_LINE> self.b_norm_b = nn.BatchNorm1d(fc1... | Actor (Policy) Model. | 62598f845f7d997b871f9134 |
class MessageParser(object): <NEW_LINE> <INDENT> TYPE_SYMBOL_LOOKUP = Message.TYPE_SYMBOL_LOOKUP <NEW_LINE> ESCAPE_LOOKUP = Message.ESCAPE_LOOKUP <NEW_LINE> SPECIAL_RE = re.compile(br"[\0\n\r\x1b\t ]") <NEW_LINE> UNESCAPE_RE = re.compile(br"\\(.?)") <NEW_LINE> WHITESPACE_RE = re.compile(br"[ \t]+") <NEW_LINE> NAME_RE =... | Parses lines into Message objects. | 62598f84bde94217f37073c2 |
class AdvertCreateSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Advert <NEW_LINE> exclude = ['user'] | Create Advert object | 62598f841d351010ab8f35f5 |
class ShareableViewSet(ViewSet): <NEW_LINE> <INDENT> def get_record_schema(self, resource_cls, method): <NEW_LINE> <INDENT> schema = super(ShareableViewSet, self).get_record_schema(resource_cls, method) <NEW_LINE> if method.lower() not in map(str.lower, self.validate_schema_for): <NEW_LINE> <INDENT> return schema <NEW_... | A ShareableViewSet will register the given resource with a schema
that supports permissions.
The views will rely on dynamic permissions (e.g. create with PUT if
record does not exist), and solicit the cliquet RouteFactory. | 62598f848a349b6b43685cfd |
class BlindResponse(BaseResponse): <NEW_LINE> <INDENT> current_cover_position: int = Field(alias=ATTR_BLIND_CURRENT_POSITION) | Represent API response for a blind. | 62598f84fbf16365ca793b62 |
class ClassDict(MutableMapping): <NEW_LINE> <INDENT> def __init__(self, mapping_or_iterable=None): <NEW_LINE> <INDENT> self.data = {} <NEW_LINE> if mapping_or_iterable is None: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> for k, v in dict(mapping_or_iterable).iteritems(): <NEW_LINE> <INDENT> self[k] = v <NEW_LINE> <D... | A dict implementation that uses classes as keys. If a sub class of a valid
key is provided, the closest parent in the method resolution order is
provided.
The constructor accepts the same arguments as ``dict``.
:param mapping_or_iterable: Mapping or iterable like the first argument of
``di... | 62598f84d99f1b3c44d05167 |
class RandomForestOracle(SKLearnOracle): <NEW_LINE> <INDENT> name = "random_forest" <NEW_LINE> def __init__(self, dataset: DiscreteDataset, override_input_spec=False, **kwargs): <NEW_LINE> <INDENT> super(RandomForestOracle, self).__init__( dataset, is_batched=True, internal_measurements=1, expect_normalized_y=True, exp... | An abstract class for managing the ground truth score functions f(x)
for model-based optimization problems, where the
goal is to find a design 'x' that maximizes a prediction 'y':
max_x { y = f(x) }
Public Attributes:
external_dataset: DatasetBuilder
an instance of a subclass of the DatasetBuilder class which po... | 62598f847c178a314d78cf65 |
class ExplanationOfBenefitItemAdjudication(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = "ExplanationOfBenefitItemAdjudication" <NEW_LINE> def __init__(self, jsondict=None, strict=True, **kwargs): <NEW_LINE> <INDENT> self.amount = None <NEW_LINE> self.category = None <NEW_LINE> self.reason = Non... | Adjudication details.
If this item is a group then the values here are a summary of the
adjudication of the detail items. If this item is a simple product or
service then this is the result of the adjudication of this item. | 62598f84a79ad16197769b1a |
class JWTRefreshTokenSerializer(RefreshJSONWebTokenSerializer): <NEW_LINE> <INDENT> def validate(self, attrs): <NEW_LINE> <INDENT> token = attrs["token"] <NEW_LINE> payload = self._check_payload(token=token) <NEW_LINE> user = self._check_user(payload=payload) <NEW_LINE> orig_iat = payload.get("orig_iat") <NEW_LINE> if ... | Refresh an access token. | 62598f8407f4c71912baeefd |
class Mutex(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.m = threading.Lock() <NEW_LINE> <DEDENT> def lock(self, *args, **kwargs): <NEW_LINE> <INDENT> return self.m.acquire(*args, **kwargs) <NEW_LINE> <DEDENT> def unlock(self): <NEW_LINE> <INDENT> return self.m.release() | Wrapper for the Lock class in the threading module. | 62598f84009cb60464d00fe5 |
class Rule1Model(object): <NEW_LINE> <INDENT> _names = { "vlan_id":'vlanId', "services":'services', "description":'description' } <NEW_LINE> def __init__(self, vlan_id=None, services=None, description=None): <NEW_LINE> <INDENT> self.description = description <NEW_LINE> self.vlan_id = vlan_id <NEW_LINE> self.services = ... | Implementation of the 'Rule1' model.
TODO: type model description here.
Attributes:
description (string): A description for your Bonjour forwarding rule.
Optional.
vlan_id (string): The ID of the service VLAN. Required.
services (list of ServiceEnum): A list of Bonjour services. At least
o... | 62598f8450485f2cf55daa2c |
class Meta: <NEW_LINE> <INDENT> model = Task <NEW_LINE> fields = '__all__' | Meta. | 62598f8421a7993f00c65a2c |
class MonthPicker(_DatePickers): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> super().__init__(month_type=True) <NEW_LINE> <DEDENT> def on_change(self): <NEW_LINE> <INDENT> return self.get <NEW_LINE> <DEDENT> def get(self, data): <NEW_LINE> <INDENT> return data | A Month Picker.
Let's you choose a month and year. | 62598f84d53ae8145f917f48 |
class RecentProjects(ProjectModule): <NEW_LINE> <INDENT> title = _('Recently Created Projects') <NEW_LINE> template = 'admin_tools/dashboard/recent_projects.html' | Simple implementation of ``ProjectModule`` to show the most recent projects. | 62598f8410dbd63aa1c7066d |
class Author(db.Model): <NEW_LINE> <INDENT> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> name = db.Column(db.String(80), nullable=False) <NEW_LINE> biography = db.Column(db.String(200)) <NEW_LINE> books = db.relationship('Book', back_populates='author') | Author model. | 62598f8423e79379d538bfb4 |
class BoxedLoader(Loader): <NEW_LINE> <INDENT> def __init__(self, start = None, end = None, inclusive = False): <NEW_LINE> <INDENT> self.start = start <NEW_LINE> self.end = end <NEW_LINE> self.inclusive = inclusive <NEW_LINE> self.accepting = start is None <NEW_LINE> <DEDENT> def _compareLine(self, line, command, match... | This loader allows filtering between recognised lines
| 62598f84f8510a7c17d7ded4 |
class ThreadPoolSubmit(ProcessPoolSubmit): <NEW_LINE> <INDENT> def get_executor(self, **executor_kwargs): <NEW_LINE> <INDENT> return ThreadPoolExecutor(**executor_kwargs) | A PoolExecutor that uses ThreadPoolExecutor | 62598f84b7558d58954630ed |
class User: <NEW_LINE> <INDENT> def __init__(self, username, instance_object): <NEW_LINE> <INDENT> self.username = username <NEW_LINE> self.auth_instance = instance_object <NEW_LINE> self.user_repos = [] <NEW_LINE> <DEDENT> def get_user_repositories(self) -> list: <NEW_LINE> <INDENT> repo_owner = self.username <NEW_LIN... | Class object used to represent a user and their repositories. | 62598f848a349b6b43685cff |
class amplificador_ff(gr.sync_block): <NEW_LINE> <INDENT> def __init__(self, Kamp=1): <NEW_LINE> <INDENT> gr.sync_block.__init__(self, name="amplificador_ff", in_sig=[numpy.float32], out_sig=[numpy.float32]) <NEW_LINE> self.Kamp=Kamp <NEW_LINE> <DEDENT> def work(self, input_items, output_items): <NEW_LINE> <INDENT> in0... | actua como un amplificador. Para ello la funcion work() toma cada valor de entrada y lo multiplica
por el coeficiente que tiene previamente preconfigurado el bloque. Ese coeficiente puede ser cambiado aun
despues de haber sido preconfigurado el bloque, gracias al callback representado en la funcion
set_ka
| 62598f8476d4e153a661c6ce |
class Dataset(models.Model): <NEW_LINE> <INDENT> Name = models.CharField(max_length=50, null=False) <NEW_LINE> Team = models.CharField(max_length=50, null=False) <NEW_LINE> Number = models.IntegerField(null=True) <NEW_LINE> Position = models.CharField(max_length=10, null=False) <NEW_LINE> Age = models.IntegerField(null... | Dataset class | 62598f84d99f1b3c44d05169 |
class MyCmd(object): <NEW_LINE> <INDENT> def __init__(self, service,aclass): <NEW_LINE> <INDENT> self.service = service <NEW_LINE> self.init_cmd(aclass) <NEW_LINE> cmd = threads.deferToThread(raw_input) <NEW_LINE> cmd.addCallback(self.docmd) <NEW_LINE> <DEDENT> def init_cmd(self,aclass): <NEW_LINE> <INDENT> self.comman... | classdocs | 62598f848e05c05ec3f6eba5 |
class SLPolicy(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> in_channels = 2 <NEW_LINE> ksize = 3 <NEW_LINE> super(SLPolicy, self).__init__() <NEW_LINE> self.block1 = Block(in_channels, 64, ksize) <NEW_LINE> self.block2 = Block(64, 128, ksize) <NEW_LINE> self.block3 = Block(128, 128, ksize) <N... | Supervised learning policy | 62598f84e76e3b2f99fd84f1 |
class BufferingSMTPHandler(handlers.SMTPHandler): <NEW_LINE> <INDENT> def __init__(self, mailhost, fromaddr, toaddrs, subject, credentials=None, secure=None, capacity=1024): <NEW_LINE> <INDENT> handlers.SMTPHandler.__init__(self, mailhost, fromaddr, toaddrs, subject, credentials, secure) <NEW_LINE> self.capacity = capa... | BufferingSMTPHandler works like SMTPHandler log handler except that
it buffers log messages until buffer size reaches or exceeds the specified
capacity at which point it will then send everything that was buffered up
until that point in one email message. Contrast this with SMTPHandler
which sends one email per log me... | 62598f8494891a1f408b944c |
class TestUtil(unittest.TestCase): <NEW_LINE> <INDENT> def test_set_grey(self): <NEW_LINE> <INDENT> colors = [list(COLORS["colors"].values())] <NEW_LINE> result = util.set_grey(colors[0]) <NEW_LINE> self.assertEqual(result, "#999999") <NEW_LINE> <DEDENT> def test_read_file(self): <NEW_LINE> <INDENT> result = util.read_... | Test the util functions. | 62598f85ec188e330fdf8359 |
class xGroup(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> app_label = "webui" <NEW_LINE> <DEDENT> group_name = models.CharField(max_length=30) <NEW_LINE> comment = models.CharField(max_length=COMMENT_LENGTH, blank=True) <NEW_LINE> created = models.DateTimeField() <NEW_LINE> users = models.ManyToMa... | The xGroup object class | 62598f85dc8b845886d53071 |
class WmiAttributeError(WmiIfaceException): <NEW_LINE> <INDENT> def __init__(self, typ, attribute): <NEW_LINE> <INDENT> self.type, self.attribute = typ, attribute <NEW_LINE> self.message = "Failed to retrieve {.__name__} attribute(s) {}".format( typ, attribute) <NEW_LINE> super().__init__(self.message) | An error occurred retrieving an attribute from a WMI class. | 62598f8566656f66f7d59eb1 |
class Type(Enum): <NEW_LINE> <INDENT> ARRAY: str = 'ARRAY' <NEW_LINE> BOOLEAN: str = 'BOOLEAN' <NEW_LINE> BINARY: str = 'BINARY' <NEW_LINE> DATETIME: str = 'DATETIME' <NEW_LINE> NUMBER: str = 'NUMBER' <NEW_LINE> NULL: str = 'NULL' <NEW_LINE> OBJECT: str = 'OBJECT' <NEW_LINE> STRING: str = 'STRING' | Enumeration for all possible `Node` data types. | 62598f850a366e3fb87dc489 |
class CreateRoute(Wizard): <NEW_LINE> <INDENT> __name__ = 'product.cost.plan.create_route' <NEW_LINE> start = StateView('product.cost.plan.create_route.start', 'product_cost_plan_operation.create_route_start_view_form', [ Button('Cancel', 'end', 'tryton-cancel'), Button('Ok', 'route', 'tryton-ok', True), ]) <NEW_LINE> ... | Create Route | 62598f8523e79379d538bfb6 |
class RootInfo(bb.Struct): <NEW_LINE> <INDENT> __slots__ = [ '_root_namespace_id_value', '_home_namespace_id_value', ] <NEW_LINE> _has_required_fields = True <NEW_LINE> def __init__(self, root_namespace_id=None, home_namespace_id=None): <NEW_LINE> <INDENT> self._root_namespace_id_value = bb.NOT_SET <NEW_LINE> self._hom... | Information about current user's root.
:ivar common.RootInfo.root_namespace_id: The namespace ID for user's root
namespace. It will be the namespace ID of the shared team root if the
user is member of a team with a separate team root. Otherwise it will be
same as ``RootInfo.home_namespace_id``.
:ivar commo... | 62598f85097d151d1a2c0ae1 |
class NetworkWatcher(Resource): <NEW_LINE> <INDENT> _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'locat... | Network watcher in a resource group.
Variables are only populated by the server, and will be ignored when sending a request.
:param id: Resource ID.
:type id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param location: Resource location.
:type location: str
:param ... | 62598f851d351010ab8f35f9 |
class Car(): <NEW_LINE> <INDENT> def __init__(self, manufacturer, model, year): <NEW_LINE> <INDENT> self.manufacturer = manufacturer <NEW_LINE> self.model = model <NEW_LINE> self.year = year <NEW_LINE> self.odometer_reading = 0 <NEW_LINE> <DEDENT> def get_descriptive_name(self): <NEW_LINE> <INDENT> long_name = f"{self.... | A simple attempt to represent a car. | 62598f85baa26c4b54d4ed6e |
class ParentCommand(Command): <NEW_LINE> <INDENT> pass | Parent Command.
parent | 62598f856e29344779b00121 |
class class_export_rigged_character(bpy.types.Operator, ExportHelper): <NEW_LINE> <INDENT> bl_idname = "bear.export_rigged_character" <NEW_LINE> bl_label = "Export Rigged Character" <NEW_LINE> filename_ext = "" <NEW_LINE> filepath = "" <NEW_LINE> clear_materials = BoolProperty( name="Clear Materials", description="Wipe... | Toggle deform status for bones not required by mecanim | 62598f85d7e4931a7ef3bb58 |
class ProtectEventBinarySensor(EventThumbnailMixin, ProtectDeviceBinarySensor): <NEW_LINE> <INDENT> device: Camera <NEW_LINE> @callback <NEW_LINE> def _async_get_event(self) -> Event | None: <NEW_LINE> <INDENT> event: Event | None = None <NEW_LINE> if self.device.is_motion_detected and self.device.last_motion_event is ... | A UniFi Protect Device Binary Sensor with access tokens. | 62598f85b57a9660fecd153a |
class MiscTest(_base.ORMTest): <NEW_LINE> <INDENT> def test_compileonattr(self): <NEW_LINE> <INDENT> t = Table('t', MetaData(), Column('id', Integer, primary_key=True), Column('x', Integer)) <NEW_LINE> class A(object): pass <NEW_LINE> mapper(A, t) <NEW_LINE> a = A() <NEW_LINE> assert a.id is None <NEW_LINE> <DEDENT> de... | Seems basic, but not directly covered elsewhere! | 62598f853eb6a72ae038a0f3 |
class Dialogue(object): <NEW_LINE> <INDENT> def __init__(self, anno, edus, relations): <NEW_LINE> <INDENT> self.edus = [FakeRootEDU] + edus <NEW_LINE> self.grouping = anno.identifier() <NEW_LINE> self.edu2sent = {i: e.subgrouping() for i, e in enumerate(edus, start=1)} <NEW_LINE> self.relations = relations <NEW_LINE> <... | STAC Dialogue
Note that input EDUs should be sorted by span | 62598f85dc8b845886d53073 |
class FuzzWrapper(wrapper.DfuzzWrapper): <NEW_LINE> <INDENT> def method(self): pass <NEW_LINE> def set_up(self): pass <NEW_LINE> def run(self): pass | Standard wrapper class, inherited | 62598f8510dbd63aa1c70671 |
class AllowNoneFieldRecord(Record): <NEW_LINE> <INDENT> class Schema(Schema): <NEW_LINE> <INDENT> ref = fields.RefField(required=True) <NEW_LINE> can_be_none = fields.Int(allow_none=True, missing=None) <NEW_LINE> cant_be_none = fields.Int(allow_none=False, missing=0) <NEW_LINE> default_can_be_none = fields.Int(allow_no... | allow_none documentation:
Set this to True if None should be considered a valid value during validation/deserialization.
If missing=None and allow_none is unset, will default to True. Otherwise, the default is False. | 62598f851f5feb6acb1626f0 |
class Boolean(Codec): <NEW_LINE> <INDENT> def __init__(self, true="true", false="false", default_value=None): <NEW_LINE> <INDENT> self.true = true <NEW_LINE> self.false = false <NEW_LINE> self.default_value = default_value <NEW_LINE> <DEDENT> def encode(self, value): <NEW_LINE> <INDENT> if value is None: <NEW_LINE> <IN... | Codec to interpret boolean representation in strings e.g. ``'true'``,
``'no'``, and encode :class:`bool` values back to string.
:param true: text to parse as :const:`True`. ``'true'`` by default
:type true: :class:`str`, :class:`tuple`
:param false: text to parse as :const:`False`. ``'false'`` by default
:type false... | 62598f85bde94217f37073c5 |
class CreateFolderBatchResultEntry(bb.Union): <NEW_LINE> <INDENT> _catch_all = None <NEW_LINE> @classmethod <NEW_LINE> def success(cls, val): <NEW_LINE> <INDENT> return cls('success', val) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def failure(cls, val): <NEW_LINE> <INDENT> return cls('failure', val) <NEW_LINE> <DEDEN... | This class acts as a tagged union. Only one of the ``is_*`` methods will
return true. To get the associated value of a tag (if one exists), use the
corresponding ``get_*`` method. | 62598f8596565a6dacd2ccd7 |
class Tag(models.Model): <NEW_LINE> <INDENT> word = models.CharField(max_length=35) <NEW_LINE> slug = models.CharField(max_length=250) <NEW_LINE> created_at = models.DateTimeField(auto_now_add=False) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.word | Model representing the tag for each post | 62598f85656771135c489139 |
class BernoulliNaiveBayes(BaseEstimator, ClassifierMixin): <NEW_LINE> <INDENT> def __init__(self, smooth=1): <NEW_LINE> <INDENT> self.smooth = smooth <NEW_LINE> <DEDENT> def fit(self, X, y): <NEW_LINE> <INDENT> if issparse(X): <NEW_LINE> <INDENT> raise TypeError('BernoulliNaiveBayes does not support sparse input.') <NE... | Naive Bayes classifier for binary data. Uses bernoulli distribution for features and target must be binary as well. | 62598f856e29344779b00123 |
@ddt.ddt <NEW_LINE> @unittest.skipUnless(settings.FEATURES.get("ENABLE_OAUTH2_PROVIDER"), "OAuth2 not enabled") <NEW_LINE> class DOTAdapterTestCase(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(DOTAdapterTestCase, self).setUp() <NEW_LINE> self.adapter = DOTAdapter() <NEW_LINE> self.user = Us... | Test class for DOTAdapter. | 62598f8507f4c71912baef02 |
class BaseMarketingCloudTask(BaseTask): <NEW_LINE> <INDENT> salesforce_task = False <NEW_LINE> def _init_task(self): <NEW_LINE> <INDENT> super()._init_task() <NEW_LINE> self.mc_config = self.project_config.keychain.get_service("marketing_cloud") <NEW_LINE> <DEDENT> def _check_soap_response(self, response): <NEW_LINE> <... | Base task for interacting with Marketing Cloud
For API calls to a MC tenant, you can get a fresh
access token via the marketing cloud config like so:
self.mc_config.access_token | 62598f8573bcbd0ca4bc9d11 |
class EditSpectrumDialog(Gtk.Dialog): <NEW_LINE> <INDENT> excluding_key = " (multiple)" <NEW_LINE> def __init__(self, parent, spectra, attrs=None): <NEW_LINE> <INDENT> super().__init__( "Settings", parent, 0, ("_Cancel", Gtk.ResponseType.CANCEL, "_OK", Gtk.ResponseType.OK)) <NEW_LINE> if not spectra: <NEW_LINE> <INDENT... | Shows a dialog with entries to change metadata, needs a parent and
a list of spectra. | 62598f85e64d504609df9110 |
class Group(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=32) <NEW_LINE> parent = models.ForeignKey(to="Group",related_name='xx',null=True,blank=True) <NEW_LINE> is_group = models.BooleanField(verbose_name='是否是组') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> verbose_name_plural = "权限组表" <NEW_LINE... | 权限组 | 62598f858a43f66fc4bf1c41 |
class SHA256Hash(object): <NEW_LINE> <INDENT> digest_size = 32 <NEW_LINE> block_size = 64 <NEW_LINE> oid = "2.16.840.1.101.3.4.2.1" <NEW_LINE> def __init__(self, data=None): <NEW_LINE> <INDENT> state = VoidPointer() <NEW_LINE> result = _raw_sha256_lib.SHA256_init(state.address_of()) <NEW_LINE> if result: <NEW_LINE> <IN... | Class that implements a SHA-256 hash
| 62598f85c432627299fa2a8f |
class PerfMonResponse(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'data': {'key': 'data', 'type': 'PerfMonSet'}, } <NEW_LINE> def __init__( self, *, code: Optional[str] = None, message: Optional[str] = None, da... | Performance monitor API response.
:ivar code: The response code.
:vartype code: str
:ivar message: The message.
:vartype message: str
:ivar data: The performance monitor counters.
:vartype data: ~azure.mgmt.web.v2020_06_01.models.PerfMonSet | 62598f8550485f2cf55daa33 |
class UserModel2(Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> table_name: str = 'dynamodb-user2' <NEW_LINE> host: str = 'http://localhost:4569' <NEW_LINE> region: str = 'ap-northeast-1' <NEW_LINE> <DEDENT> last_name: UnicodeAttribute = UnicodeAttribute(hash_key=True) <NEW_LINE> first_name: UnicodeAttribu... | A DynamoDB User | 62598f8510dbd63aa1c70673 |
class DIBSuppSVCFamilies(DIB): <NEW_LINE> <INDENT> class Family: <NEW_LINE> <INDENT> def __init__(self, name: DIBServiceFamily, version: int): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.version = version <NEW_LINE> <DEDENT> def to_knx(self) -> bytes: <NEW_LINE> <INDENT> return bytes((self.name.value, self.ver... | Class for serialization and deserialization of KNX DIB Supported Services. | 62598f8582261d6c5272fc34 |
class AcceleratorTypeList(_messages.Message): <NEW_LINE> <INDENT> id = _messages.StringField(1) <NEW_LINE> items = _messages.MessageField('AcceleratorType', 2, repeated=True) <NEW_LINE> kind = _messages.StringField(3, default=u'compute#acceleratorTypeList') <NEW_LINE> nextPageToken = _messages.StringField(4) <NEW_LINE>... | Contains a list of accelerator types.
Fields:
id: [Output Only] Unique identifier for the resource; defined by the
server.
items: A list of AcceleratorType resources.
kind: [Output Only] Type of resource. Always compute#acceleratorTypeList
for lists of accelerator types.
nextPageToken: [Output Only] Th... | 62598f855f7d997b871f9138 |
class LinearActuatorControlModel(DocumentModel): <NEW_LINE> <INDENT> def __init__(self, linear_actuator_protocol, *args, **kwargs): <NEW_LINE> <INDENT> self.plotter = Plotter( linear_actuator_protocol, width=900, height=240, nest_level=1, title='' ) <NEW_LINE> self.feedback_controller = FeedbackControllerModel( linear_... | Linear actuator controller, synchronized across documents. | 62598f85d53ae8145f917f4f |
class CacheManager(object): <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> def get(self, key, value=None): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def put(self, key, value): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def delete(self, key): <NEW_LI... | Abstract base class of disk-persisted cache manager | 62598f85b7558d58954630f3 |
class IoK8sApiCoreV1PodProxyOptions(object): <NEW_LINE> <INDENT> swagger_types = { 'api_version': 'str', 'kind': 'str', 'path': 'str' } <NEW_LINE> attribute_map = { 'api_version': 'apiVersion', 'kind': 'kind', 'path': 'path' } <NEW_LINE> def __init__(self, api_version=None, kind=None, path=None): <NEW_LINE> <INDENT> se... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f8507d97122c4216764 |
class ExpressionLocals(dict): <NEW_LINE> <INDENT> def __init__(self, symobj=None): <NEW_LINE> <INDENT> dict.__init__(self) <NEW_LINE> self.symobj = symobj <NEW_LINE> <DEDENT> def __getitem__(self, name): <NEW_LINE> <INDENT> if self.symobj is not None: <NEW_LINE> <INDENT> ret = self.symobj.getSymByName(name) <NEW_LINE> ... | An object to act as the locals dictionary for the evaluation
of envi expressions. You may pass in an envi.symstore.resolver.SymbolResolver
object to automagically use symbols in your expressions. | 62598f859b70327d1c57e85e |
class Enum(metaclass=EnumMeta): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def get_attr(cls, value): <NEW_LINE> <INDENT> return cls(value) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get_value(cls, attr): <NEW_LINE> <INDENT> return cls.__members__.get(attr) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def sa_enum(c... | Enumeration implementation similar to the stdlib enum.Enum but without the frustrating "value" logic which
means calling Foobar.FOO.value to get the value of Foobar.FOO.
Also forces unique like the @unique decorator, allows inheritance and has a simpler __member__ interface. | 62598f857b25080760ed6f67 |
class Mount(base.Base): <NEW_LINE> <INDENT> def __init__(self, path, device=None, fstype=None): <NEW_LINE> <INDENT> self.path = path <NEW_LINE> self.fstype = fstype <NEW_LINE> self.device = device <NEW_LINE> <DEDENT> def remount(self, rw=False): <NEW_LINE> <INDENT> if not os.path.ismount(self.path): <NEW_LINE> <INDENT>... | A class to find the base mount point for a path and handle mounting
that filesystem for access | 62598f85e76e3b2f99fd84f7 |
class UkidssClass(BaseWFAUClass): <NEW_LINE> <INDENT> BASE_URL = conf.server <NEW_LINE> LOGIN_URL = BASE_URL + "DBLogin" <NEW_LINE> IMAGE_URL = BASE_URL + "GetImage" <NEW_LINE> ARCHIVE_URL = BASE_URL + "ImageList" <NEW_LINE> REGION_URL = BASE_URL + "WSASQL" <NEW_LINE> CROSSID_URL = BASE_URL + "CrossID" <NEW_LINE> TIMEO... | The UKIDSSQuery class. Must instantiate this class in order to make any
queries. Allows registered users to login, but defaults to using the
public UKIDSS data sets. | 62598f85a17c0f6771d5bd03 |
class Event(models.Base): <NEW_LINE> <INDENT> __tablename__ = "event" <NEW_LINE> id = sqlalchemy.Column( sqlalchemy.Integer(), autoincrement=True, primary_key=True ) <NEW_LINE> name = sqlalchemy.Column( sqlalchemy.String() ) <NEW_LINE> event_date = sqlalchemy.Column( sqlalchemy.Date(), default=None ) <NEW_LINE> format_... | Event Model | 62598f854e696a045264db62 |
class IDLDictionaryMember(IDLMember): <NEW_LINE> <INDENT> def __init__(self, ast, doc_js_interface_name): <NEW_LINE> <INDENT> IDLMember.__init__(self, ast, doc_js_interface_name) <NEW_LINE> default_value = self._find_first(ast, 'Default') <NEW_LINE> self.value = default_value.value if default_value else None | IDLNode specialization for 'const type name = value' declarations. | 62598f8573bcbd0ca4bc9d12 |
class OdnoklassnikiOAuth2(BaseOAuth2): <NEW_LINE> <INDENT> AUTH_BACKEND = OdnoklassnikiBackend <NEW_LINE> AUTHORIZATION_URL = 'http://www.odnoklassniki.ru/oauth/authorize' <NEW_LINE> ACCESS_TOKEN_URL = 'http://api.odnoklassniki.ru/oauth/token.do' <NEW_LINE> SETTINGS_KEY_NAME = 'ODNOKLASSNIKI_OAUTH2_CLIENT_KEY' <NEW_LIN... | Odnoklassniki OAuth2 support | 62598f8507f4c71912baef04 |
class Board: <NEW_LINE> <INDENT> def __init__(self, boardlist=None): <NEW_LINE> <INDENT> self.onboard=None <NEW_LINE> if(boardlist is not None): <NEW_LINE> <INDENT> self.onboard = np.full((4,4), None) <NEW_LINE> for cell in boardlist: <NEW_LINE> <INDENT> if cell["piece"] is not None: <NEW_LINE> <INDENT> self.setBoard( ... | ボード上のコマの配置を管理する | 62598f85379a373c97d98ad3 |
class IMCache(MutableMapping): <NEW_LINE> <INDENT> MAXLEN = 1000 <NEW_LINE> def __init__(self, maxlen=MAXLEN, *a, **k): <NEW_LINE> <INDENT> self.filepath = 'IN MEMORY' <NEW_LINE> self.maxlen = maxlen <NEW_LINE> self.d = dict(*a, **k) <NEW_LINE> while len(self) > maxlen: <NEW_LINE> <INDENT> self.popitem() <NEW_LINE> <DE... | Read and write to a dict-like cache. | 62598f85009cb60464d00fed |
class UnicodeWithAttrs(str): <NEW_LINE> <INDENT> _toc = None <NEW_LINE> @property <NEW_LINE> def toc_html(self): <NEW_LINE> <INDENT> if self._toc is None: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> def indent(): <NEW_LINE> <INDENT> return ' ' * (len(h_stack) - 1) <NEW_LINE> <DEDENT> lines = [] <NEW_LINE> h_st... | A subclass of unicode used for the return value of conversion to
possibly attach some attributes. E.g. the "toc_html" attribute when
the "toc" extra is used. | 62598f8521a7993f00c65a34 |
class EmilyBlogModelAppEngineWrapper(ndb.Model): <NEW_LINE> <INDENT> url=ndb.StringProperty() <NEW_LINE> topic=ndb.StringProperty() <NEW_LINE> blog=ndb.PickleProperty() | Wrapper class for storing EmilyBlogModel inside AppEngine Datastore | 62598f8529b78933be269e3b |
@enum.unique <NEW_LINE> class SshAgentResponseCode(enum.Enum): <NEW_LINE> <INDENT> V1_RSA_IDENTITIES_ANSWER = 2 <NEW_LINE> V1_RSA_RESPONSE = 4 <NEW_LINE> FAILURE = 5 <NEW_LINE> SUCCESS = 6 <NEW_LINE> IDENTITIES_ANSWER = 12 <NEW_LINE> SIGN_RESPONSE = 14 <NEW_LINE> EXTENSION_FAILURE = 28 | SSH Agent response codes. | 62598f85b5575c28eb712a28 |
@gin.configurable <NEW_LINE> class CriticNetwork(network.Network): <NEW_LINE> <INDENT> def __init__(self, input_tensor_spec, observation_conv_layer_params=None, observation_fc_layer_params=None, observation_dropout_layer_params=None, action_fc_layer_params=None, action_dropout_layer_params=None, joint_fc_layer_params=N... | Creates a critic network. | 62598f8523e79379d538bfbc |
class UserProfile(models.Model): <NEW_LINE> <INDENT> user = models.OneToOneField(User, on_delete=models.DO_NOTHING) <NEW_LINE> bio = models.TextField() <NEW_LINE> following = models.ManyToManyField(User, related_name="user_following", blank=True) <NEW_LINE> followers = models.ManyToManyField(User, related_name="user_fo... | the created model shows info about when the person started following the user | 62598f85097d151d1a2c0ae7 |
class CourseCommentsAdmin(object): <NEW_LINE> <INDENT> model_icon = "fa fa-envelope-open" <NEW_LINE> list_display = ['user', 'course', 'comments', 'add_time'] <NEW_LINE> search_fields = ['user', 'course', 'comments'] <NEW_LINE> list_filter = ['user', 'course', 'comments', 'add_time'] | 用户评论后台 | 62598f8563d6d428bbee227a |
class InvalidRegistrationError(Exception): <NEW_LINE> <INDENT> pass | Indicates registration of a plan that does not cover the expected subject. | 62598f85bde94217f37073c7 |
class CreateCloudBaseRunResourceResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Result = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Result = params.get("Result") <NEW_LINE> self.RequestId = params.get("Requ... | CreateCloudBaseRunResource返回参数结构体
| 62598f8515baa72349461a40 |
class RegularGrid: <NEW_LINE> <INDENT> def __init__(self, x_min, y_min, x_max, y_max, cellsize_x, cellsize_y): <NEW_LINE> <INDENT> self.x_min = x_min <NEW_LINE> self.y_min = y_min <NEW_LINE> self.x_max = x_max <NEW_LINE> self.y_max = y_max <NEW_LINE> self.cellsize_x = cellsize_x <NEW_LINE> self.cellsize_y = cellsize_y ... | Encapsulate information describing a regular lat-lon grid.
In this model, the grid extent (min/max x/y coordinates) represents its
outer envelope (corresponding with the outer edges of the outermost cells),
while the grid coordinates are defined at the center of each grid
cell, i.e. offset from the bottom-left corner ... | 62598f8507d97122c4216766 |
class TestPersistence(EmptyDir, TestCase): <NEW_LINE> <INDENT> def testPersistence(self): <NEW_LINE> <INDENT> s1 = BobState() <NEW_LINE> s1.setInputHashes("path", b"hash") <NEW_LINE> s1.finalize() <NEW_LINE> s2 = BobState() <NEW_LINE> self.assertEqual(b"hash", s2.getInputHashes("path")) <NEW_LINE> s2.finalize() <NEW_LI... | Verify persistence of state | 62598f85a4f1c619b294e0af |
class RemoteExecute(command.Command): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + ".RemoteExecute") <NEW_LINE> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(RemoteExecute, self).get_parser(prog_name) <NEW_LINE> parser.add_argument('-s', '--server_name', dest='server_name', help='Nova se... | Execute a Heat software config on the servers. | 62598f85d10714528d69d992 |
class Plane(PlaneMixin, Surface): <NEW_LINE> <INDENT> _type = 'plane' <NEW_LINE> _coeff_keys = ('a', 'b', 'c', 'd') <NEW_LINE> def __init__(self, a=1., b=0., c=0., d=0., *args, **kwargs): <NEW_LINE> <INDENT> kwargs = _future_kwargs_warning_helper(type(self), *args, **kwargs) <NEW_LINE> capdict = {} <NEW_LINE> for k in ... | An arbitrary plane of the form :math:`Ax + By + Cz = D`.
Parameters
----------
a : float, optional
The 'A' parameter for the plane. Defaults to 1.
b : float, optional
The 'B' parameter for the plane. Defaults to 0.
c : float, optional
The 'C' parameter for the plane. Defaults to 0.
d : float, optional
... | 62598f857b25080760ed6f69 |
class GuiDataJob(AbstractJob, QtCore.QObject): <NEW_LINE> <INDENT> SIGNAL_NEW_DATA = "signalNewData" <NEW_LINE> def __init__(self, datalogger=None, group=None, name="GuiDataJob", args=(), kwargs=None, verbose=None): <NEW_LINE> <INDENT> target = self._job <NEW_LINE> AbstractJob.__init__(self, datalogger=datalogger, grou... | This class enables the data logger to upload logged data to the Xively platform | 62598f857c178a314d78cf6f |
class IsolateHourDCDBInstanceResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.SuccessInstanceIds = None <NEW_LINE> self.FailedInstanceIds = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.SuccessInstanceIds = par... | IsolateHourDCDBInstance返回参数结构体
| 62598f85d99f1b3c44d05171 |
class S3QuestionTypeOptionYNDWidget(S3QuestionTypeOptionWidget): <NEW_LINE> <INDENT> def __init__(self, question_id = None ): <NEW_LINE> <INDENT> T = current.T <NEW_LINE> S3QuestionTypeOptionWidget.__init__(self, question_id) <NEW_LINE> self.selectionInstructions = "Type x to mark box." <NEW_LINE> self.typeDescription ... | Yes, No, Don't Know: Question Type widget
provides a widget for the survey module that will manage simple
yes no questions.
Available metadata for this class:
Help message: A message to help with completing the question
@author: Graeme Foster (graeme at acm dot org) | 62598f85d7e4931a7ef3bb5e |
class TestMasking(object): <NEW_LINE> <INDENT> def test_sequences(self): <NEW_LINE> <INDENT> if K._BACKEND == "tensorflow": <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> layer = core.Masking() <NEW_LINE> func = K.function([layer.input], [layer.get_output_mask()]) <NEW_LINE> input_data = np.array([[[1], [2], [3], [0]],... | Test the Masking class | 62598f85b57a9660fecd153f |
class Equipment(): <NEW_LINE> <INDENT> def __init__(self, name, weight=0, value=0): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.weight = weight <NEW_LINE> self.value = value | This class handles all equipment items.
weight -- defines the weight of an equipment item (default 0)
value -- defines the value of an equipment item (default 0) | 62598f85b830903b9686e1d3 |
class DefaultCommandHandler(CommandHandler): <NEW_LINE> <INDENT> async def ping(self, prefix, server): <NEW_LINE> <INDENT> self.client.send('PONG', server) | CommandHandler that provides methods for the normal operation of IRC.
If you want your bot to properly respond to pings, etc, you should subclass this. | 62598f8507f4c71912baef06 |
@explicit_serialize <NEW_LINE> class DfptTask(AbiFireTask): <NEW_LINE> <INDENT> CRITICAL_EVENTS = [ events.ScfConvergenceWarning, ] <NEW_LINE> task_type = "dfpt" <NEW_LINE> def restart(self): <NEW_LINE> <INDENT> restart_files, irdvars = None, None <NEW_LINE> wf_files = self.restart_info.prev_outdir.find_1wf_files() <NE... | Base Task to handle DFPT calculations
.. rubric:: Inheritance Diagram
.. inheritance-diagram:: DfptTask | 62598f8530dc7b766599f31b |
class GoogleAssistantView(HomeAssistantView): <NEW_LINE> <INDENT> url = GOOGLE_ASSISTANT_API_ENDPOINT <NEW_LINE> name = 'api:google_assistant' <NEW_LINE> requires_auth = False <NEW_LINE> def __init__(self, access_token, gass_config): <NEW_LINE> <INDENT> self.access_token = access_token <NEW_LINE> self.gass_config = gas... | Handle Google Assistant requests. | 62598f8594891a1f408b9450 |
class WeaveGraphTopology(GraphTopology): <NEW_LINE> <INDENT> def __init__(self, max_atoms=50, n_atom_feat=75, n_pair_feat=14, name='Weave_topology'): <NEW_LINE> <INDENT> warnings.warn("WeaveGraphTopology is deprecated. " "Will be removed in DeepChem 1.4.", DeprecationWarning) <NEW_LINE> self.name = name <NEW_LINE> self... | Manages placeholders associated with batch of graphs and their topology | 62598f853eb6a72ae038a0f9 |
class Material(atom.core.XmlElement): <NEW_LINE> <INDENT> _qname = SCP_NAMESPACE_TEMPLATE % 'material' | scp:material element
The material the product is made of. | 62598f85b5575c28eb712a29 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.