code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class SystemCertClient(object): <NEW_LINE> <INDENT> def __init__(self, connection, subsystem=None): <NEW_LINE> <INDENT> self.connection = connection <NEW_LINE> self.cert_url = '/rest/config/cert' <NEW_LINE> if subsystem: <NEW_LINE> <INDENT> self.cert_url = '/' + subsystem + self.cert_url <NEW_LINE> <DEDENT> elif connec... | Class encapsulating and mirroring the functionality in the
SystemCertResource Java interface class defining the REST API for
system certificate resources. | 62599067baa26c4b54d50a30 |
class ConnectWrapSyncCommit(ConnectWrapBase): <NEW_LINE> <INDENT> def __init__(self, connection): <NEW_LINE> <INDENT> ConnectWrapBase.__init__(self, connection) <NEW_LINE> self.__dict__["commit"] = self.dbConn.commit <NEW_LINE> self.__dict__["syncCommit"] = self.dbConn.commit <NEW_LINE> self.__dict__["rollback"] = self... | Connection wrapper for synchronous commit | 625990677b180e01f3e49c29 |
class TCNNConfig(object): <NEW_LINE> <INDENT> embedding_dim = 64 <NEW_LINE> seq_length = 60 <NEW_LINE> num_classes = 5 <NEW_LINE> num_filters = 256 <NEW_LINE> kernel_size = 5 <NEW_LINE> vocab_size = 5000 <NEW_LINE> hidden_dim = 128 <NEW_LINE> dropout_keep_prob = 0.5 <NEW_LINE> learning_rate = 1e-3 <NEW_LINE> batch_size... | CNN配置参数 | 625990672c8b7c6e89bd4f70 |
class BernoulliBandit: <NEW_LINE> <INDENT> def __init__(self, k, p=None): <NEW_LINE> <INDENT> assert p is None or len(p) == k <NEW_LINE> self.k = k <NEW_LINE> np.random.seed(int(time.time())) <NEW_LINE> if p is None: <NEW_LINE> <INDENT> self.p = [np.random.random() for _ in range(self.k)] <NEW_LINE> <DEDENT> else: <NEW... | create k armed bernoulli bandit with given or randomly assigned probability p | 6259906791f36d47f2231a54 |
class CardWidth(proto.Enum): <NEW_LINE> <INDENT> CARD_WIDTH_UNSPECIFIED = 0 <NEW_LINE> SMALL = 1 <NEW_LINE> MEDIUM = 2 | The width of the cards in the carousel. | 625990674f88993c371f10e4 |
class Core500Exception(CoreException): <NEW_LINE> <INDENT> def __init__(self, infos): <NEW_LINE> <INDENT> error(infos) <NEW_LINE> super(Core500Exception, self).__init__(500, 'Internal Server Error', infos) | Create a 500 *Internal Server Error* exception.
:param str infos: A message describing the error. | 625990673617ad0b5ee078dc |
class ListAPIView(FormatResponse, mixins.ListModelMixin, generics.GenericAPIView): <NEW_LINE> <INDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> return super(ListAPIView, self).get_response(self.list(request, *args, **kwargs)) | Concrete view for listing a queryset. | 6259906756ac1b37e63038a8 |
class TRIG_MODE: <NEW_LINE> <INDENT> RUN = 0 <NEW_LINE> RGM = 2 <NEW_LINE> RTM = 3 | Define trigger modes. | 6259906701c39578d7f142fa |
class Git(object): <NEW_LINE> <INDENT> pypis = ["cloudmesh-common", "cloudmesh-cmd5", "cloudmesh-sys", "cloudmesh-comet", "cloudmesh-openapi"] <NEW_LINE> commits = pypis + ["cloudmesh-bar"] <NEW_LINE> @classmethod <NEW_LINE> def upload(cls): <NEW_LINE> <INDENT> banner("CREATE DIST") <NEW_LINE> for p in cls.pypis: <NEW_... | Git management for the preparation to upload the code to pypi | 625990676e29344779b01ddc |
class DemoLight(Light): <NEW_LINE> <INDENT> def __init__( self, name, state, rgb=None, ct=None, brightness=180, xy_color=(.5, .5), white=200): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._state = state <NEW_LINE> self._rgb = rgb <NEW_LINE> self._ct = ct or random.choice(LIGHT_TEMPS) <NEW_LINE> self._brightnes... | Represenation of a demo light. | 62599067e5267d203ee6cf83 |
class DiscogsSensor(Entity): <NEW_LINE> <INDENT> def __init__(self, discogs_data, name, sensor_type): <NEW_LINE> <INDENT> self._discogs_data = discogs_data <NEW_LINE> self._name = name <NEW_LINE> self._type = sensor_type <NEW_LINE> self._state = None <NEW_LINE> self._attrs = {} <NEW_LINE> <DEDENT> @property <NEW_LINE> ... | Create a new Discogs sensor for a specific type. | 625990673317a56b869bf108 |
class DiagnosticDetectorResponse(ProxyOnlyResource): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, '... | Class representing Reponse from Diagnostic Detectors.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource Name.
:vartype name: str
:param kind: Kind of resource.
:type kind: str
:ivar type: Resource type.
:vartype type: s... | 625990672ae34c7f260ac873 |
class FailureCount(generics.ListAPIView): <NEW_LINE> <INDENT> serializer_class = FailureCountSerializer <NEW_LINE> queryset = None <NEW_LINE> def list(self, request): <NEW_LINE> <INDENT> query_params = FailuresQueryParamsSerializer(data=request.query_params) <NEW_LINE> if not query_params.is_valid(): <NEW_LINE> <INDENT... | List of failures (optionally by bug) and testruns by day per date range and repo | 625990673cc13d1c6d466ed0 |
class ListDict(UserDict): <NEW_LINE> <INDENT> def __setitem__(self, key, val): <NEW_LINE> <INDENT> if key in self.data: <NEW_LINE> <INDENT> self.data[key].append(val) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.data[key] = [val] <NEW_LINE> <DEDENT> <DEDENT> def addList(self, key, valList): <NEW_LINE> <INDENT> va... | A dictionary whose values are a list of items.
| 62599067f7d966606f749480 |
@override_settings( PASSWORD_HASHERS=['django.contrib.auth.hashers.SHA1PasswordHasher'], ROOT_URLCONF="admin_views.urls", ) <NEW_LINE> class GetFormsetsWithInlinesArgumentTest(TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpTestData(cls): <NEW_LINE> <INDENT> cls.superuser = User.objects.create( password... | #23934 - When adding a new model instance in the admin, the 'obj' argument
of get_formsets_with_inlines() should be None. When changing, it should be
equal to the existing model instance.
The GetFormsetsArgumentCheckingAdmin ModelAdmin throws an exception
if obj is not None during add_view or obj is None during change_... | 625990671f5feb6acb164378 |
class NeuralNetwork: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> weights = np.array([0,1]) <NEW_LINE> bias = 0 <NEW_LINE> self.h1 = Neuron(weights,bias) <NEW_LINE> self.h2 = Neuron(weights,bias) <NEW_LINE> self.o1 = Neuron(weights,bias) <NEW_LINE> <DEDENT> def feedforward(self,x): <NEW_LINE> <INDENT> ou... | A neural network with:
- 2 inputs
- a hidden layer with 2 neurons (h1, h2)
- an output layer with 1 neuron (o1)
Each neuron has the same weights and bias:
- w = [0, 1]
- b = 0 | 62599067442bda511e95d91f |
class UndefinedReferenceException(Exception): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> super(UndefinedReferenceException, self).__init__(message) | gerador_roteiros.datatypes.exceptions.UndefinedReferenceException
~~~~~~~~~~
Esta exceção deve ser lançada somente se existirem links apontando para
passos cujo número de sequência não existe dentro do caso de uso. | 625990672ae34c7f260ac874 |
class UserCreateCase(APITestCase): <NEW_LINE> <INDENT> def setUp(self) -> None: <NEW_LINE> <INDENT> self.url = '/user' <NEW_LINE> self.user = User.objects.create( email='user@user.com', name='user', username='user', password='user', ) <NEW_LINE> <DEDENT> def test_success(self): <NEW_LINE> <INDENT> data = { 'email': 'te... | Create User Test Code | 6259906763d6d428bbee3e4f |
class Restaurant: <NEW_LINE> <INDENT> def __init__(self, name, cuisine): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.cuisine = cuisine <NEW_LINE> <DEDENT> def describe_restaurant(self): <NEW_LINE> <INDENT> print(f"{self.name} is a {self.cuisine} restaurant.") <NEW_LINE> <DEDENT> def open_restaurant(self): <NEW... | A model of a restaurant | 62599067baa26c4b54d50a32 |
class Union(TypeContainer): <NEW_LINE> <INDENT> pass | Class representing a combination of SimpleTypes (for type value enforcement) | 6259906744b2445a339b7526 |
class OperationDisplay(Model): <NEW_LINE> <INDENT> _attribute_map = { 'provider': {'key': 'provider', 'type': 'str'}, 'resource': {'key': 'resource', 'type': 'str'}, 'operation': {'key': 'operation', 'type': 'str'}, } <NEW_LINE> def __init__(self, provider=None, resource=None, operation=None): <NEW_LINE> <INDENT> self.... | The object that represents the operation.
:param provider: Service provider: Microsoft.Logic
:type provider: str
:param resource: Resource on which the operation is performed: Profile,
endpoint, etc.
:type resource: str
:param operation: Operation type: Read, write, delete, etc.
:type operation: str | 625990679c8ee82313040d4e |
class ElasticsearchTarget(luigi.Target): <NEW_LINE> <INDENT> marker_index = luigi.configuration.get_config().get('elasticsearch', 'marker-index', 'update_log') <NEW_LINE> marker_doc_type = luigi.configuration.get_config().get('elasticsearch', 'marker-doc-type', 'entry') <NEW_LINE> def __init__(self, host, port, index, ... | Target for a resource in Elasticsearch. | 625990672c8b7c6e89bd4f72 |
class AzureFirewallNatRule(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'description': {'key': 'description', 'type': 'str'}, 'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'}, 'destination_addresses': {'key': 'destinationAddresses', 'type': '... | Properties of a NAT rule.
:param name: Name of the NAT rule.
:type name: str
:param description: Description of the rule.
:type description: str
:param source_addresses: List of source IP addresses for this rule.
:type source_addresses: list[str]
:param destination_addresses: List of destination IP addresses for this ... | 625990677b180e01f3e49c2a |
class UserProfile(AbstractBaseUser, PermissionsMixin): <NEW_LINE> <INDENT> email = models.EmailField(max_length = 255, unique = True) <NEW_LINE> name = models.CharField(max_length = 255) <NEW_LINE> is_active = models.BooleanField(default = True) <NEW_LINE> is_staff = models.BooleanField(default = False) <NEW_LINE> obje... | Respents the "user profile" inside our system. | 6259906732920d7e50bc77d3 |
class DeviceRegistry(): <NEW_LINE> <INDENT> DEFAULT_FILENAME = "registry.kvs" <NEW_LINE> def __init__(self, filename=None): <NEW_LINE> <INDENT> self.store = KVS(filename) <NEW_LINE> self.fsk_router = None <NEW_LINE> <DEDENT> def set_fsk_router(self, fsk_router): <NEW_LINE> <INDENT> self.fsk_router = fsk_router <NEW_LIN... | A persistent registry for device class instance configurations | 625990673617ad0b5ee078de |
class LeaveOneOut(BaseCrossValidator): <NEW_LINE> <INDENT> def _iter_test_indices(self, X, y=None, groups=None): <NEW_LINE> <INDENT> n_samples = _num_samples(X) <NEW_LINE> if n_samples <= 1: <NEW_LINE> <INDENT> raise ValueError( 'Cannot perform LeaveOneOut with n_samples={}.'.format( n_samples) ) <NEW_LINE> <DEDENT> re... | Leave-One-Out cross-validator
Provides train/test indices to split data in train/test sets. Each
sample is used once as a test set (singleton) while the remaining
samples form the training set.
Note: ``LeaveOneOut()`` is equivalent to ``KFold(n_splits=n)`` and
``LeavePOut(p=1)`` where ``n`` is the number of samples.
... | 62599067dd821e528d6da547 |
class GoogleCloudDialogflowV2ListIntentsResponse(_messages.Message): <NEW_LINE> <INDENT> intents = _messages.MessageField('GoogleCloudDialogflowV2Intent', 1, repeated=True) <NEW_LINE> nextPageToken = _messages.StringField(2) | The response message for Intents.ListIntents.
Fields:
intents: The list of agent intents. There will be a maximum number of
items returned based on the page_size field in the request.
nextPageToken: Token to retrieve the next page of results, or empty if
there are no more results in the list. | 625990671f037a2d8b9e5431 |
class BaseAssociateMetadata(BasePersonMetadata): <NEW_LINE> <INDENT> pass | Metadata that describes an associate
Generally does not change over the course of a sports-events. | 625990672c8b7c6e89bd4f73 |
class IpFilterRule(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'filter_name': {'required': True}, 'action': {'required': True}, 'ip_mask': {'required': True}, } <NEW_LINE> _attribute_map = { 'filter_name': {'key': 'filterName', 'type': 'str'}, 'action': {'key': 'action', 'type': 'str'}, 'ip_mask': ... | The IP filter rules for the IoT hub.
All required parameters must be populated in order to send to Azure.
:ivar filter_name: Required. The name of the IP filter rule.
:vartype filter_name: str
:ivar action: Required. The desired action for requests captured by this rule. Possible values
include: "Accept", "Reject".
... | 625990674e4d562566373b94 |
class ComputeTool(ShelfTool): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super( ComputeTool, self).__init__() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def toolTip(): <NEW_LINE> <INDENT> return "call compute method for selected nodes" <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def getIcon(): <NEW_... | docstring for PreviewTool. | 62599067d6c5a102081e38b4 |
class CustomSession(AbstractBaseSession): <NEW_LINE> <INDENT> account_id = models.IntegerField(null=True, db_index=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> app_lablel = 'mysessions' <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get_session_store_class(cls): <NEW_LINE> <INDENT> return SessionStore | CustomSession. | 625990678da39b475be04978 |
class Node: <NEW_LINE> <INDENT> node = 0 <NEW_LINE> adj = None <NEW_LINE> visited = False <NEW_LINE> parent = -1 | Class containing various information about nodes
Attributes:
node(int): Identifier
adj(list): List of adjacent nodes
visited(boolean): Switch intended to turn on once node is visited
parent(int): Identifier of parent node | 625990674428ac0f6e659cc0 |
class BuildingStructureCode(models.Model): <NEW_LINE> <INDENT> code = models.CharField(primary_key=True, max_length=1, verbose_name=u"代码") <NEW_LINE> name = models.CharField(unique=True, max_length=32, verbose_name=u"名称") <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.name | 建筑物结构码 | 62599067627d3e7fe0e08618 |
class Tiers(Session): <NEW_LINE> <INDENT> def __init__(self, session, tier_guid='', provider_guid=''): <NEW_LINE> <INDENT> self.api_key = session.api_key <NEW_LINE> self.api_endpoint = '/v1/tiers' <NEW_LINE> self.api_variables = { 'tier_guid': tier_guid, 'provider_guid': provider_guid } <NEW_LINE> self.api_paths = { 'r... | Tiers class | 62599067baa26c4b54d50a34 |
class AbortConfigException(Exception): <NEW_LINE> <INDENT> pass | This exception is thrown if the configuration script should be aborted
immediately. No other config script methods will be called after this
exception. | 62599067a219f33f346c7f95 |
class LowSpeedShaftMass(om.ExplicitComponent): <NEW_LINE> <INDENT> def setup(self): <NEW_LINE> <INDENT> self.add_input("blade_mass", 0.0, units="kg") <NEW_LINE> self.add_input("machine_rating", 0.0, units="kW") <NEW_LINE> self.add_input("lss_mass_coeff", 13.0) <NEW_LINE> self.add_input("lss_mass_exp", 0.65) <NEW_LINE> ... | Compute low speed shaft mass in the form of :math:`mass = k*(m_{blade}*power)^b1 + b2`.
Value of :math:`k` was updated in 2015 to be 13.
Value of :math:`b1` was updated in 2015 to be 0.65.
Value of :math:`b2` was updated in 2015 to be 775.
Parameters
----------
blade_mass : float, [kg]
mass for a single wind turbi... | 62599067796e427e5384ff05 |
class IOriginalFileExternalLinks(IPortletDataProvider): <NEW_LINE> <INDENT> pass | A portlet
It inherits from IPortletDataProvider because for this portlet, the
data that is being rendered and the portlet assignment itself are the
same. | 625990677b180e01f3e49c2b |
class MediaStreamTrack(EventEmitter): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.__ended = False <NEW_LINE> self.__id = str(uuid.uuid4()) <NEW_LINE> self.__copy_codec = False <NEW_LINE> <DEDENT> @property <NEW_LINE> def id(self): <NEW_LINE> <INDENT> return self.__id <... | A single media track within a stream.
See :class:`AudioStreamTrack` and :class:`VideoStreamTrack`. | 6259906745492302aabfdc6b |
class AttributeError(Exception): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def __new__(*args, **kwargs): <NEW_LINE> <INDENT> pass | Attribute not found. | 625990678a43f66fc4bf391f |
class TrelloCardSearchView(ReviewRequestViewMixin, View): <NEW_LINE> <INDENT> def get(self, request, **kwargs): <NEW_LINE> <INDENT> from rbintegrations.trello.integration import TrelloIntegration <NEW_LINE> integration_manager = get_integration_manager() <NEW_LINE> integration = integration_manager.get_integration( Tre... | The view to search for Trello cards (for use with auto-complete). | 6259906723849d37ff852845 |
class DataStore(object): <NEW_LINE> <INDENT> def __init__(self, config, **kwargs): <NEW_LINE> <INDENT> self.config = config <NEW_LINE> self.intrafield_delimiter = self.config['DATASTORE']['intrafield_delimiter'] <NEW_LINE> if not 'DATASTORE' in self.config: <NEW_LINE> <INDENT> raise KeyError <NEW_LINE> <DEDENT> <DEDENT... | Interface for static file datastore.
self.build() returns a dict where `key` is the name of the dataset,
and `value` is a tablib.Dataset object.
At present, should support any file format that tablib can import:
* csv
* json
* yaml
* see tablib for full support. | 625990674e4d562566373b96 |
class gblog_out(component): <NEW_LINE> <INDENT> def __init__(self, gblog_connector, name='component.output.gblog_out', transformer=None, row_limit=0): <NEW_LINE> <INDENT> super(gblog_out, self).__init__(name=name, connector=gblog_connector, transformer=transformer, row_limit=row_limit) <NEW_LINE> self._type = 'componen... | This is an ETL Component that writes data to google blogger. | 6259906771ff763f4b5e8f35 |
class TestReview(unittest.TestCase): <NEW_LINE> <INDENT> def test_class(self): <NEW_LINE> <INDENT> self.assertEqual(Review.place_id, "") <NEW_LINE> self.assertEqual(Review.user_id, "") <NEW_LINE> self.assertEqual(Review.text, "") <NEW_LINE> self.assertTrue(issubclass(Review, BaseModel)) <NEW_LINE> <DEDENT> def test_ins... | Test review | 62599067d6c5a102081e38b6 |
class RegisterUserSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> email = serializers.EmailField( validators=[UniqueValidator( queryset=User.objects.all(), message='Email already exists' )] ) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = User <NEW_LINE> fields = ('username', 'email', 'password') <NEW_... | Data serialization for user registration | 62599067f7d966606f749482 |
class Scaffold(Command): <NEW_LINE> <INDENT> def run(self, cmdargs): <NEW_LINE> <INDENT> parser = argparse.ArgumentParser( prog="%s scaffold" % sys.argv[0].split(os.path.sep)[-1], description=self.__doc__, epilog=self.epilog(), ) <NEW_LINE> parser.add_argument( '-t', '--template', type=template, default=template('defau... | Generates an Odoo module skeleton. | 625990678da39b475be0497a |
class VethFixture(fixtures.Fixture): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(VethFixture, self).setUp() <NEW_LINE> ip_wrapper = ip_lib.IPWrapper() <NEW_LINE> def _create_veth(name0): <NEW_LINE> <INDENT> name1 = name0.replace(VETH0_PREFIX, VETH1_PREFIX) <NEW_LINE> return ip_wrapper.add_veth(name0,... | Create a veth.
:ivar ports: created veth ports
:type ports: IPDevice 2-uplet | 625990672ae34c7f260ac878 |
class Event(object): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> self._value = False <NEW_LINE> self._waiters = set() <NEW_LINE> <DEDENT> def __repr__(self) -> str: <NEW_LINE> <INDENT> return "<%s %s>" % ( self.__class__.__name__, "set" if self.is_set() else "clear", ) <NEW_LINE> <DEDENT> def is... | An event blocks coroutines until its internal flag is set to True.
Similar to `threading.Event`.
A coroutine can wait for an event to be set. Once it is set, calls to
``yield event.wait()`` will not block unless the event has been cleared:
.. testcode::
from tornado import gen
from tornado.ioloop import IOL... | 625990674a966d76dd5f0684 |
class StubWithFormat(object): <NEW_LINE> <INDENT> _format = object() | A stub object used to check that convenience methods call Inter's. | 62599067379a373c97d9a7af |
class BadRequestError(Error): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> super().__init__(message, 400) | To be raised when the client data sent in the
request is in inappropriate format. | 625990679c8ee82313040d50 |
class Post(models.Model): <NEW_LINE> <INDENT> title = models.CharField('タイトル',max_length=255) <NEW_LINE> thumbnail = models.ImageField('サムネ',upload_to='documents/', default='/no_img.jpg') <NEW_LINE> created_at = models.DateTimeField('作成日',default=timezone.now,null=True) <NEW_LINE> tags = models.ManyToManyField(Tag,verb... | ブログの記事 | 62599067fff4ab517ebcefac |
class InlineQueryResultLocation(InlineQueryResult): <NEW_LINE> <INDENT> def __init__( self, id: str, latitude: float, longitude: float, title: str, live_period: int = None, reply_markup: 'ReplyMarkup' = None, input_message_content: 'InputMessageContent' = None, thumb_url: str = None, thumb_width: int = None, thumb_heig... | Represents a location on a map. By default, the location will be sent by the user.
Alternatively, you can use :attr:`input_message_content` to send a message with the specified
content instead of the location.
Attributes:
type (:obj:`str`): 'location'.
id (:obj:`str`): Unique identifier for this result, 1-64 b... | 6259906738b623060ffaa41a |
class RestBinarySensor(BinarySensorDevice): <NEW_LINE> <INDENT> def __init__(self, hass, rest, name, value_template): <NEW_LINE> <INDENT> self._hass = hass <NEW_LINE> self.rest = rest <NEW_LINE> self._name = name <NEW_LINE> self._state = False <NEW_LINE> self._value_template = value_template <NEW_LINE> self.update() <N... | Implements a REST binary sensor. | 62599067796e427e5384ff07 |
class LoggerRsyslog(LoggerSyslog): <NEW_LINE> <INDENT> name = 'rsyslog' <NEW_LINE> plugin = 'rsyslog' <NEW_LINE> def __init__(self, *, app_name=None, host=None, facility=None, split=None, packet_size=None, alias=None): <NEW_LINE> <INDENT> super().__init__(app_name=app_name, facility=facility, alias=alias) <NEW_LINE> se... | Allows logging into Unix standard syslog or a remote syslog. | 6259906701c39578d7f142fd |
class AbstractQuerier(AQuerier, CommonMonetDB): <NEW_LINE> <INDENT> def __init__(self, configuration): <NEW_LINE> <INDENT> AQuerier.__init__(self, configuration) <NEW_LINE> self.setVariables(configuration) <NEW_LINE> <DEDENT> def close(self): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> def prepareQuery(self, cursor,... | Abstract class for the queriers to be implemented for each different
solution for the benchmark | 625990674f88993c371f10e7 |
class InvalidDHCPLeaseFileError(Exception): <NEW_LINE> <INDENT> pass | Raised when parsing an empty or invalid dhcp.leases file.
Current uses are DataSourceAzure and DataSourceEc2 during ephemeral
boot to scrape metadata. | 6259906799cbb53fe6832675 |
class Builder(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.wrapped = () <NEW_LINE> self.pending = [] <NEW_LINE> self.intervals = [] <NEW_LINE> <DEDENT> def insert(self, value): <NEW_LINE> <INDENT> _validate_integer_in_range('value', value) <NEW_LINE> self.pending.append(value) <NEW_LINE> <D... | An IntSet.Builder is for building up an IntSet incrementally through
a series of insertions.
This will typically be much faster than repeatedly calling
insert on an IntSet object. The intended usage is to repeatedly
call insert() or insert_interval() on a builder, then call
build() at the end. Note that you can contin... | 625990671f037a2d8b9e5433 |
class MuProcedure(UserDefinedProcedure): <NEW_LINE> <INDENT> def __init__(self, formals, body): <NEW_LINE> <INDENT> self.formals = formals <NEW_LINE> self.body = body <NEW_LINE> <DEDENT> "*** REPLACE THIS LINE ***" <NEW_LINE> def make_call_frame(self, args, env): <NEW_LINE> <INDENT> while args is not nil: <NEW_LINE> <I... | A procedure defined by a mu expression, which has dynamic scope.
_________________
< Scheme is cool! >
-----------------
\ ^__^
\ (oo)\_______
(__)\ )\/ ||----w |
|| ||
─▄▀▀▀▀▄─█──█────▄▀▀█─▄▀▀▀▀▄─█▀▀▄
─█────█─█... | 625990674428ac0f6e659cc2 |
class TaskInfoNew(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TaskId = None <NEW_LINE> self.TaskType = None <NEW_LINE> self.TransId = None <NEW_LINE> self.ClusterId = None <NEW_LINE> self.ClusterName = None <NEW_LINE> self.Progress = None <NEW_LINE> self.StartTime = None <NEW_LINE> ... | 任务信息详情
| 625990675fdd1c0f98e5f715 |
class CategoryViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> serializer_class = CategorySerializer <NEW_LINE> permission_classes = (IsAdminOrReadOnly,) <NEW_LINE> queryset = Category.objects.all() <NEW_LINE> filter_backends = [DjangoFilterBackend, OrderingFilter, SearchFilter] <NEW_LINE> ordering_fields = ['name']... | Handle creating, updating, deleting categories, admin only | 625990673317a56b869bf10b |
class _Manifest(object): <NEW_LINE> <INDENT> def __init__(self, sha_names): <NEW_LINE> <INDENT> self.sha_names = sorted(sha_names, key=lambda t: t[1]) <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> if not isinstance(other, _Manifest): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> return self.sh... | A sorted sequence of SHA1, name 2-tuples that unambiguously characterize
the contents of an OPC package, providing a basis for asserting
equivalence of two packages, whether stored as a zip archive or a package
extracted into a directory. | 6259906745492302aabfdc6e |
class EditUserResource(PictureVideoUploadResource, AuthUserResource): <NEW_LINE> <INDENT> class Meta(BaseUserResource.Meta): <NEW_LINE> <INDENT> queryset = User.objects.all() <NEW_LINE> allowed_methods = ['patch'] <NEW_LINE> authorization = UserAuthorization() <NEW_LINE> authentication = ExpireApiKeyAuthentication() <N... | Allows the UserModel's USERNAME_FIELD and email to be changed | 62599067d6c5a102081e38b8 |
class ErrorFlags(Flag): <NEW_LINE> <INDENT> NONE = 0b0 <NEW_LINE> CAL_RAM_CHECKSUM = 0b1 <NEW_LINE> RAM_FAILURE = 0b10 <NEW_LINE> ROM_FAILURE = 0b100 <NEW_LINE> AD_SLOPE_CONVERGENCE = 0b1000 <NEW_LINE> AD_SELFTEST_FAILURE = 0b10000 <NEW_LINE> AD_LINK_FAILURE = 0b100000 | The error register flags. See page 62 of the manual for details. | 62599067a17c0f6771d5d770 |
class LogisticRegressionModel(LinearModel): <NEW_LINE> <INDENT> def predict(self, x): <NEW_LINE> <INDENT> _linear_predictor_typecheck(x, self._coeff) <NEW_LINE> margin = dot(x, self._coeff) + self._intercept <NEW_LINE> prob = 1/(1 + exp(-margin)) <NEW_LINE> return 1 if prob > 0.5 else 0 | A linear binary classification model derived from logistic regression.
>>> data = array([0.0, 0.0, 1.0, 1.0, 1.0, 2.0, 1.0, 3.0]).reshape(4,2)
>>> lrm = LogisticRegressionWithSGD.train(sc, sc.parallelize(data))
>>> lrm.predict(array([1.0])) != None
True | 62599067cc0a2c111447c699 |
class GroupProcessingLayer(ProcessingLayer): <NEW_LINE> <INDENT> def __init__(self, group_size=4, **kwargs): <NEW_LINE> <INDENT> super(GroupProcessingLayer, self).__init__(**kwargs) <NEW_LINE> self.group_size = group_size <NEW_LINE> self.output_shape = None <NEW_LINE> self.num_group = None <NEW_LINE> self.shape_rank = ... | A abstract layer that processes layer by group. This is a meta class
(`_forward` is not implemented).
Two modes are possible for this layer. The first is to divide the
neurons of this layer evenly using `group_size`. The second mode the
input should be a list of tensors. In this case, `group_size` is
ignored, and each... | 62599067a8370b77170f1b5a |
class SequenceMatcher(difflib.SequenceMatcher, object): <NEW_LINE> <INDENT> def find_longest_match(self, alo, ahi, blo, bhi): <NEW_LINE> <INDENT> matches = [] <NEW_LINE> for n, (el, line) in enumerate(zip(self.a[alo:ahi], self.b[blo:bhi])): <NEW_LINE> <INDENT> if el != line and match(el, line): <NEW_LINE> <INDENT> self... | Like difflib.SequenceMatcher, but matches globs and regexes. | 62599067e76e3b2f99fda193 |
class IdxWORD19F(db.Model): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> __tablename__ = 'idxWORD19F' <NEW_LINE> id = db.Column(db.MediumInteger(9, unsigned=True), primary_key=True, autoincrement=True) <NEW_LINE> term = db.Column(db.String(50), nullable=True, unique=True) <NEW_LI... | Represents a IdxWORD19F record. | 62599067009cb60464d02ccb |
class DeletePost(DeleteView): <NEW_LINE> <INDENT> context_object_name = "get_place" <NEW_LINE> def get_success_url(self): <NEW_LINE> <INDENT> space = self.kwargs['space_url'] <NEW_LINE> return '/spaces/%s' % (space) <NEW_LINE> <DEDENT> def get_object(self): <NEW_LINE> <INDENT> return get_object_or_404(Post, pk=self.kwa... | Delete an existent post. Post deletion is only reserved to spaces
administrators or site admins. | 6259906776e4537e8c3f0d15 |
class ResearchExperimentReplicateCreateAPIView(CreateAPIView): <NEW_LINE> <INDENT> queryset = ResearchExperimentReplicate.objects.all() <NEW_LINE> permission_classes = [IsAuthenticated] <NEW_LINE> def get_serializer_class(self): <NEW_LINE> <INDENT> model_type, url_parameter, user = get_http_request(self.request, slug=F... | Creates a single record. | 6259906732920d7e50bc77d9 |
class CutoffLocationSobekModelSettingF(factory.Factory): <NEW_LINE> <INDENT> FACTORY_FOR = models.CutoffLocationSobekModelSetting <NEW_LINE> cutofflocation = factory.LazyAttribute( lambda obj: CutoffLocationF.create()) <NEW_LINE> sobekmodel = factory.LazyAttribute( lambda obj: SobekModelF.create()) <NEW_LINE> sobekid =... | Factory for CutoffLocationSobekModelSetting. | 62599067379a373c97d9a7b1 |
class Polyhedron_RDF(Polyhedron_base): <NEW_LINE> <INDENT> def _is_zero(self, x): <NEW_LINE> <INDENT> return abs(x)<=1e-6 <NEW_LINE> <DEDENT> def _is_nonneg(self, x): <NEW_LINE> <INDENT> return x>=-1e-6 <NEW_LINE> <DEDENT> def _is_positive(self, x): <NEW_LINE> <INDENT> return x>=-1e-6 <NEW_LINE> <DEDENT> _base_ring = R... | Base class for polyhedra over ``RDF``.
TESTS::
sage: p = Polyhedron([(0,0)], base_ring=RDF); p
A 0-dimensional polyhedron in RDF^2 defined as the convex hull of 1 vertex
sage: TestSuite(p).run() | 6259906797e22403b383c6a0 |
class ModelViewSet(mixins.CreateModelMixin, mixins.RetrieveModelMixin, mixins.UpdateModelMixin, mixins.DestroyModelMixin, mixins.ListModelMixin, GenericViewSet): <NEW_LINE> <INDENT> pass | Adaptation of DRF ModelViewSet | 62599067097d151d1a2c27ff |
class CloudMonitorNotificationPlanManager(BaseManager): <NEW_LINE> <INDENT> def create(self, label=None, name=None, critical_state=None, ok_state=None, warning_state=None): <NEW_LINE> <INDENT> uri = "/%s" % self.uri_base <NEW_LINE> body = {"label": label or name} <NEW_LINE> def make_list_of_ids(parameter): <NEW_LINE> <... | Handles all of the requests dealing with Notification Plans. | 625990675fdd1c0f98e5f717 |
class Conv1dGLU(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, kernel_size, style_embedding, speaker_embedding, dropout, style_embed_dim=None, speaker_embed_dim=None, padding=None, dilation=1, causal=False, residual=False, *args, **kwargs): <NEW_LINE> <INDENT> super(Conv1dGLU, self).__ini... | (Dilated) Conv1d + Gated linear unit + (optionally) speaker embedding
| 625990677d847024c075db6c |
class TR(AttrElem): <NEW_LINE> <INDENT> _accepting = True <NEW_LINE> def __init__(self, attrs, bgcolor=None, honor_colors=False, valign=DEFAULT_VALIGN): <NEW_LINE> <INDENT> AttrElem.__init__(self, attrs) <NEW_LINE> self.Ahalign = self.attribute('align', conv=conv_halign) <NEW_LINE> self.Avalign = self.attribute('valign... | A TR table row element. | 625990674f6381625f19a06f |
class ExceptionTestResultMixin(object): <NEW_LINE> <INDENT> pdb_type = 'pdb' <NEW_LINE> def get_pdb(self): <NEW_LINE> <INDENT> if self.pdb_type == 'ipdb' and has_ipdb(): <NEW_LINE> <INDENT> import ipdb <NEW_LINE> return ipdb <NEW_LINE> <DEDENT> return pdb <NEW_LINE> <DEDENT> def addError(self, test, err): <NEW_LINE> <I... | A mixin class that can be added to any test result class.
Drops into pdb on test errors/failures. | 625990678a43f66fc4bf3925 |
class DhcpConfig: <NEW_LINE> <INDENT> def __init__(self, mac, ip_address, gateway=None, networkmask=None): <NEW_LINE> <INDENT> self.additional_statements = {} <NEW_LINE> self.mac = None <NEW_LINE> self.ip_address = None <NEW_LINE> self.gateway = None <NEW_LINE> self.networkmask = None <NEW_LINE> self.dhcp_hostname = No... | Model for a DHCP object. | 62599067cc0a2c111447c69a |
class SpikingNeuralNetwork(NeuralNetwork): <NEW_LINE> <INDENT> pass | Slightly more specific, will have weight initializers as well as the opportunity for additional parameters. | 625990676e29344779b01de6 |
class Metric(_MLflowObject): <NEW_LINE> <INDENT> def __init__(self, key, value, timestamp): <NEW_LINE> <INDENT> self._key = key <NEW_LINE> self._value = value <NEW_LINE> self._timestamp = timestamp <NEW_LINE> <DEDENT> @property <NEW_LINE> def key(self): <NEW_LINE> <INDENT> return self._key <NEW_LINE> <DEDENT> @property... | Metric object. | 625990674527f215b58eb56c |
class ModelLogSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> action_verbose = serializers.CharField(source='get_action_flag_display', read_only=True) <NEW_LINE> content = serializers.SerializerMethodField() <NEW_LINE> def get_content(self, obj): <NEW_LINE> <INDENT> return obj.get_content() <NEW_LINE> <DED... | 模块日志 序列化模型 | 625990672ae34c7f260ac87c |
class HttpException(Exception): <NEW_LINE> <INDENT> def __init__(self, url, status_code): <NEW_LINE> <INDENT> self.message = f'Received status code {status_code} from \'{url}\'.' <NEW_LINE> self.url = url <NEW_LINE> self.status_code = status_code <NEW_LINE> super().__init__(self.message, self.url, self.status_code) | Raised when a HTTP request returns an
unsuccessful (i.e. not 200 OK) status code. | 6259906767a9b606de54766c |
class TestLoad(unittest.TestCase): <NEW_LINE> <INDENT> def test_http(self): <NEW_LINE> <INDENT> def example(request): <NEW_LINE> <INDENT> body = 'example' <NEW_LINE> return (200, {'Content-type': 'text/plain', 'Content-length': len(body) }, body) <NEW_LINE> <DEDENT> host = '127.0.0.1' <NEW_LINE> httpd = mozhttpd.MozHtt... | test the load function | 6259906799cbb53fe6832679 |
class DriveSystem(object): <NEW_LINE> <INDENT> def __init__(self, left_wheel_port=ev3.OUTPUT_B, right_wheel_port=ev3.OUTPUT_C): <NEW_LINE> <INDENT> self.left_wheel = low_level_rb.Wheel(left_wheel_port) <NEW_LINE> self.right_wheel = low_level_rb.Wheel(right_wheel_port) <NEW_LINE> <DEDENT> def start_moving(self, left_whe... | A class for driving (moving) the robot.
Primary authors: The ev3dev authors, David Mutchler, Dave Fisher,
their colleagues, the entire team, and Nathaniel Blanco. | 6259906791f36d47f2231a59 |
class EventDispatcher(object): <NEW_LINE> <INDENT> __handle = None <NEW_LINE> def __init__(self, numDispatcherThreads=1): <NEW_LINE> <INDENT> self.__handle = internals.blpapi_EventDispatcher_create( numDispatcherThreads) <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.destroy() ... | Dispatches events from one or more Sessions through callbacks
EventDispatcher objects are optionally specified when Session objects are
created. A single EventDispatcher can be shared by multiple Session
objects.
The EventDispatcher provides an event-driven interface, generating
callbacks from one or more internal th... | 625990675fdd1c0f98e5f719 |
class SuggestionActionHandler(base.BaseHandler): <NEW_LINE> <INDENT> _ACCEPT_ACTION = 'accept' <NEW_LINE> _REJECT_ACTION = 'reject' <NEW_LINE> @editor.require_editor <NEW_LINE> def put(self, exploration_id, thread_id): <NEW_LINE> <INDENT> action = self.payload.get('action') <NEW_LINE> if action == self._ACCEPT_ACTION: ... | "Handles actions performed on threads with suggestions. | 6259906745492302aabfdc71 |
class vn46_t288(rose.upgrade.MacroUpgrade): <NEW_LINE> <INDENT> BEFORE_TAG = "vn4.6_t298" <NEW_LINE> AFTER_TAG = "vn4.6_t288" <NEW_LINE> def upgrade(self, config, meta_config=None): <NEW_LINE> <INDENT> self.add_setting(config, ["namelist:jules_surface", "l_layeredc"], ".false.") <NEW_LINE> self.add_setting(config, ["na... | Upgrade macro from JULES by Eleanor Burke | 6259906763d6d428bbee3e53 |
class ApplicationGatewayUrlPathMap(SubResource): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'default_backend_address_pool': {'key': 'properties.defaultBackendAddressPool', 'type': 'SubResource'}, 'default_backend_http_settings': {'key': 'properties.defaultBackendHttpSettings', 'type': 'S... | UrlPathMaps give a url path to the backend mapping information for
PathBasedRouting.
:param id: Resource ID.
:type id: str
:param default_backend_address_pool: Default backend address pool resource
of URL path map.
:type default_backend_address_pool:
~azure.mgmt.network.v2017_10_01.models.SubResource
:param default_... | 62599067a219f33f346c7f9c |
class MovingTargetOutline: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.__video_frames = [] <NEW_LINE> <DEDENT> def add_frame(self, frame): <NEW_LINE> <INDENT> self.__video_frames.append(frame) <NEW_LINE> <DEDENT> def set_frames(self, frames): <NEW_LINE> <INDENT> self.__video_frames = frames <NEW_LI... | 对连续帧运动目标提取轮廓 | 625990673d592f4c4edbc673 |
class GameStatePublisher(Thread): <NEW_LINE> <INDENT> def __init__(self, tss_model, zmq_context, update_delay=GAMESTATE_PUBLISH_DELAY, publisher="0.0.0.0:8181"): <NEW_LINE> <INDENT> Thread.__init__(self) <NEW_LINE> self.message_box = [] <NEW_LINE> self.tss_model = tss_model <NEW_LINE> self.zmq_context = zmq_context <NE... | This class is responsible to publish game states
to ZMQ publisher which will be read by clients. | 62599067baa26c4b54d50a3a |
@dataclass(frozen=True) <NEW_LINE> class Video: <NEW_LINE> <INDENT> file_id: str <NEW_LINE> file_unique_id: str <NEW_LINE> width: int <NEW_LINE> height: int <NEW_LINE> duration: int <NEW_LINE> thumb: Optional[PhotoSize] <NEW_LINE> file_name: Optional[str] <NEW_LINE> mime_type: Optional[str] <NEW_LINE> file_size: Option... | Represents Video object:
https://core.telegram.org/bots/api#video | 625990677d43ff2487427fdb |
class EncryptionFlowable(StandardEncryption, Flowable): <NEW_LINE> <INDENT> def wrap(self, availWidth, availHeight): <NEW_LINE> <INDENT> return (0,0) <NEW_LINE> <DEDENT> def draw(self): <NEW_LINE> <INDENT> encryptCanvas(self.canv, self.userPassword, self.ownerPassword, self.canPrint, self.canModify, self.canCopy, self.... | Drop this in your Platypus story and it will set up the encryption options.
If you do it multiple times, the last one before saving will win. | 625990677cff6e4e811b71dd |
class Analyze: <NEW_LINE> <INDENT> def __init__(self, text=""): <NEW_LINE> <INDENT> self._text = text <NEW_LINE> self._sentiment_analysis = 0.0 <NEW_LINE> self._sentiment_analysis_subjectivity = 0.0 <NEW_LINE> self._ranked_words = [] <NEW_LINE> self._place_interest = [] <NEW_LINE> self._selected_images = [] <NEW_LINE> ... | class analyze would analyze the text and prepare the right type of slides | 62599067cb5e8a47e493cd4e |
class AccountAdapter(DefaultAccountAdapter): <NEW_LINE> <INDENT> def is_open_for_signup(self, request: HttpRequest): <NEW_LINE> <INDENT> return getattr(settings, "ACCOUNT_ALLOW_REGISTRATION", True) | Custom adapter for normal accounts. | 625990672ae34c7f260ac87d |
class Block(pg.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, image, position, *groups): <NEW_LINE> <INDENT> pg.sprite.Sprite.__init__(self, *groups) <NEW_LINE> self.image = image <NEW_LINE> self.rect = self.image.get_rect(topleft=position) <NEW_LINE> self.speed = 1 <NEW_LINE> <DEDENT> def reset_pos(self, scree... | This class represents the block. | 6259906721bff66bcd7243fc |
@total_ordering <NEW_LINE> class TubRef(object): <NEW_LINE> <INDENT> def __init__(self, tubID, locationHints=None): <NEW_LINE> <INDENT> if locationHints is None: <NEW_LINE> <INDENT> locationHints = [] <NEW_LINE> <DEDENT> assert isinstance(locationHints, list), locationHints <NEW_LINE> assert all([isinstance(hint, str) ... | This is a little helper class which provides a comparable identifier
for Tubs. TubRefs can be used as keys in dictionaries that track
connections to remote Tubs. | 625990677c178a314d78e7b6 |
class SslCertificateIssuerTest(TestCase): <NEW_LINE> <INDENT> def test_getorcreate(self): <NEW_LINE> <INDENT> self.assertIsInstance(SslCertificateIssuer.get_or_create({}), SslCertificateIssuer) | Tests for SSL Certificat Issuer | 62599067cc0a2c111447c69b |
class BasicHistogram: <NEW_LINE> <INDENT> seen = [] <NEW_LINE> semiEmpty = None <NEW_LINE> def __init__(self, vMin=0, vMax=256): <NEW_LINE> <INDENT> self.seen = [] <NEW_LINE> self.semiEmpty = [] <NEW_LINE> for _ in range(vMin, vMax+1): <NEW_LINE> <INDENT> self.seen.append(0) <NEW_LINE> <DEDENT> <DEDENT> def how_many(se... | Basic histogram class | 62599067dd821e528d6da54c |
class ReadFile: <NEW_LINE> <INDENT> FILENAME = None <NEW_LINE> KEY = None <NEW_LINE> CACHED = False <NEW_LINE> def __init__(self, pid=None, root=None): <NEW_LINE> <INDENT> self.pid = pid <NEW_LINE> LOGGER.debug("pid %s", self.pid) <NEW_LINE> self.root = root or DEFAULT_ROOT <NEW_LINE> LOGGER.debug("root %s", self.root)... | Read File from filesystem | 62599067e1aae11d1e7cf3d7 |
class PartitionRequest(Part): <NEW_LINE> <INDENT> parts = ( ("partition_id", Int32), ("time", Int64), ("max_offsets", Int32), ) | ::
PartitionRequeset =>
partition_id => Int32
time => Int64
max_offsets => Int32 | 625990677047854f46340b4b |
class InactiveChats(TLObject): <NEW_LINE> <INDENT> __slots__ = ["dates", "chats", "users"] <NEW_LINE> ID = 0xa927fec5 <NEW_LINE> QUALNAME = "types.messages.InactiveChats" <NEW_LINE> def __init__(self, *, dates: list, chats: list, users: list): <NEW_LINE> <INDENT> self.dates = dates <NEW_LINE> self.chats = chats <NEW_LI... | Attributes:
LAYER: ``112``
Attributes:
ID: ``0xa927fec5``
Parameters:
dates: List of ``int`` ``32-bit``
chats: List of either :obj:`ChatEmpty <pyrogram.api.types.ChatEmpty>`, :obj:`Chat <pyrogram.api.types.Chat>`, :obj:`ChatForbidden <pyrogram.api.types.ChatForbidden>`, :obj:`Channel <pyrogram.api.typ... | 62599067009cb60464d02ccf |
class action_traceability(osv.osv_memory): <NEW_LINE> <INDENT> _name = "action.traceability" <NEW_LINE> _description = "Action traceability " <NEW_LINE> def action_traceability(self, cr, uid, ids, context=None): <NEW_LINE> <INDENT> lot_id = ids <NEW_LINE> if context is None: <NEW_LINE> <INDENT> context = {} <NEW_LINE> ... | This class defines a function action_traceability for wizard | 625990674e4d562566373b9d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.