code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Cadit(BaseModel): <NEW_LINE> <INDENT> def __init__(self, model=LinearRegression()): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> model.__getattribute__('fit') <NEW_LINE> model.__getattribute__('predict') <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE> <INDENT> raise ValueError('Model should contains two met... | The class which implements the cadit approach [1].
+----------------+-----------------------------------------------------------------------------------+
| **Parameters** | | **model : object, optional (default=sklearn.linear_model.LinearRegression)** |
| | | The regression model which will be used... | 62598f0fa219f33f346c53ed |
class link(object): <NEW_LINE> <INDENT> updating = False <NEW_LINE> def __init__(self, *args): <NEW_LINE> <INDENT> if len(args) < 2: <NEW_LINE> <INDENT> raise TypeError('At least two traitlets must be provided.') <NEW_LINE> <DEDENT> _validate_link(*args) <NEW_LINE> self.objects = {} <NEW_LINE> initial = getattr(args[0]... | Link traits from different objects together so they remain in sync.
Parameters
----------
*args : pairs of objects/attributes
Examples
--------
>>> c = link((obj1, 'value'), (obj2, 'value'), (obj3, 'value'))
>>> obj1.value = 5 # updates other objects as well | 62598f0f9f288636728173ba |
class RecipeImageSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Recipe <NEW_LINE> fields = ('id', 'image',) <NEW_LINE> read_only_fields = ('id',) | Serializer for the recipe image | 62598f0f656771135c48824e |
class SequentialJobDistributor(JobDistributor): <NEW_LINE> <INDENT> def __init__(self, data_set_name, script_name, script_arguments=[]): <NEW_LINE> <INDENT> self.data_set_name = data_set_name <NEW_LINE> self.script_name = script_name <NEW_LINE> self.script_arguments = script_arguments <NEW_LINE> <DEDENT> def run(self):... | Run jobs sequentially. | 62598f0fcc40096d616197bb |
class Boolean(stellata.field.Field): <NEW_LINE> <INDENT> column_type = 'boolean' | BOOLEAN column type. | 62598f0f50812a4eaa6201cd |
class EventHandler(): <NEW_LINE> <INDENT> def matches(self, nick, ident, hostname, command, argument, message): <NEW_LINE> <INDENT> if nick is not None: <NEW_LINE> <INDENT> if not rematch(self.nick, nick): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> <DEDENT> if ident is not None: <NEW_LINE> <INDENT> if not rem... | Used to match search terms in order (using regex) and call a function handler | 62598f0f9f288636728173bb |
class ApiListFlowApplicableParsersHandler(api_call_handler_base.ApiCallHandler): <NEW_LINE> <INDENT> args_type = ApiListFlowApplicableParsersArgs <NEW_LINE> result_type = ApiListFlowApplicableParsersResult <NEW_LINE> _FLOW_RESULTS_BATCH_SIZE = 5000 <NEW_LINE> def Handle( self, args: ApiListFlowApplicableParsersArgs, co... | An API handler for the method for listing applicable parsers. | 62598f0f60cbc95b06362ef5 |
class HTTPTestBase(object): <NEW_LINE> <INDENT> class SQLResults(object): <NEW_LINE> <INDENT> def __init__(self, count, rows, timing): <NEW_LINE> <INDENT> self.count = count <NEW_LINE> self.rows = rows <NEW_LINE> self.timing = timing <NEW_LINE> <DEDENT> <DEDENT> def __init__(self, label, sessions, logFilePath): <NEW_LI... | Base class for an HTTP request that executes and results are returned for. | 62598f0f97e22403b3839aa5 |
class QqpProcessor(DataProcessor): <NEW_LINE> <INDENT> def get_train_examples(self, data_dir): <NEW_LINE> <INDENT> return self._create_examples( self._read_tsv(os.path.join(data_dir, "train.tsv")), "train") <NEW_LINE> <DEDENT> def get_dev_examples(self, data_dir): <NEW_LINE> <INDENT> return self._create_examples( self.... | Processor for the QQP data set (GLUE version). | 62598f0fadb09d7d5dc09170 |
class is_admin(object): <NEW_LINE> <INDENT> def __call__(self, method): <NEW_LINE> <INDENT> @functools.wraps(method) <NEW_LINE> def wrapper(self, *args, **kwargs): <NEW_LINE> <INDENT> if self.user is None: <NEW_LINE> <INDENT> self.flash("Sie haben nicht die erforderlichen Rechte, diese Seite einzusehen", category="dang... | ensure that the logged in user is an admin | 62598f0fec188e330fdf7478 |
class Transport(threading.Thread): <NEW_LINE> <INDENT> PARSER: t.Optional[Parser] = None <NEW_LINE> def __init__(self, name: t.Optional[str] = None): <NEW_LINE> <INDENT> super().__init__(name=name) <NEW_LINE> self.name = '' <NEW_LINE> self._queue: 't.Optional[Queue[Entry]]' = None <NEW_LINE> self._shutdown: t.Optional[... | Base class for creating a transport thread.
Subclassing this base class directly requires the developer to create their
own `run` method that pushes messages to the given transport queue.
Parameters
----------
name: str
Name of the transport. Used for thread identification and general
identification. | 62598f0f283ffb24f3cf2472 |
class Person(models.Model): <NEW_LINE> <INDENT> personal = models.CharField(max_length=STR_LONG) <NEW_LINE> middle = models.CharField(max_length=STR_LONG, null=True) <NEW_LINE> family = models.CharField(max_length=STR_LONG) <NEW_LINE> email = models.CharField(max_length=STR_LONG, unique=True, null=True) ... | Represent a single person. | 62598f0f8a349b6b43684e08 |
class CompositeElement(Element): <NEW_LINE> <INDENT> def __init__(self, **kw): <NEW_LINE> <INDENT> Element.__init__(self, **kw) <NEW_LINE> self.children = [] <NEW_LINE> <DEDENT> def append(self, child): <NEW_LINE> <INDENT> self.children.append(child) <NEW_LINE> return self <NEW_LINE> <DEDENT> def extend(self, children)... | HTML elements with content.
| 62598f0f97e22403b3839aa7 |
class RoomDB(object): <NEW_LINE> <INDENT> def __init__(self, name, owner=None, stuff=dict()): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.stuff = stuff <NEW_LINE> self.room_schema = RoomSchema() <NEW_LINE> self.owner = owner <NEW_LINE> <DEDENT> def change_name(self, new_name): <NEW_LINE> <INDENT> db.update({"u... | A RoomDB provides deeper DB access to CRUD rooms directly
| 62598f0f31939e2706ed1045 |
class ResourceTypes(object): <NEW_LINE> <INDENT> def __init__(self, service=False, container=False, object=False, _str=None): <NEW_LINE> <INDENT> if not _str: <NEW_LINE> <INDENT> _str = '' <NEW_LINE> <DEDENT> self.service = service or ('s' in _str) <NEW_LINE> self.container = container or ('c' in _str) <NEW_LINE> self.... | Specifies the resource types that are accessible with the account SAS.
:ivar ResourceTypes ResourceTypes.CONTAINER:
Access to container-level APIs (e.g., Create/Delete Container,
Create/Delete Queue, Create/Delete Share,
List Blobs/Files and Directories)
:ivar ResourceTypes ResourceTypes.OBJECT:
Acce... | 62598f0f3346ee7daa336c46 |
class NukiConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.discovery_schema = {} <NEW_LINE> <DEDENT> async def async_step_import(self, user_input=None): <NEW_LINE> <INDENT> return await self.async_step_validate(user_input) <NEW_LINE> <DEDENT> async d... | Nuki config flow. | 62598f0f3617ad0b5ee04cf6 |
class DataProcessingCache(MailSyncBase, UpdatedAtMixin, DeletedAtMixin): <NEW_LINE> <INDENT> namespace_id = Column(ForeignKey(Namespace.id, ondelete='CASCADE'), nullable=False) <NEW_LINE> _contact_rankings = Column('contact_rankings', MEDIUMBLOB) <NEW_LINE> _contact_groups = Column('contact_groups', MEDIUMBLOB) <NEW_LI... | Cached data used in data processing
| 62598f0f099cdd3c636749bb |
class Shell(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.prog = 'minip4' <NEW_LINE> parser = argparse.ArgumentParser(description='MiniP4 utility') <NEW_LINE> parser.add_argument('-t', '--topology', help='Topology yaml file. Default; p4-topo.yml', type=str, action="store", default='p4-topo.y... | Mininet network based on P4 switches | 62598f0fbe7bc26dc9251445 |
class CogUsageError(CogError): <NEW_LINE> <INDENT> pass | An error in usage of command-line arguments in cog.
| 62598f0f7cff6e4e811b45b2 |
class ComparableParamDef(object): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def compare_values(self, one, two): <NEW_LINE> <INDENT> pass | This class defines an ordinal parameter definition subclass, that is a
parameter definition in which the values are comparable.
It additionally implements the compare_values_function. | 62598f0f4a966d76dd5eda9d |
class _TPUPollingThread(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, cluster, session): <NEW_LINE> <INDENT> super(_TPUPollingThread, self).__init__() <NEW_LINE> self.daemon = True <NEW_LINE> self._running = True <NEW_LINE> self._session_closed = False <NEW_LINE> self._cluster = cluster <NEW_LINE> self._ses... | A thread that polls the state of a TPU node.
When the node transitions into a TERMINAL state (PREEMPTED, TERMINATED)
that's considered as not recoverable by the underlying infrastructure,
it attempts to close the session, and exits the entire process if the
session.close() stucks. | 62598f0f60cbc95b06362efb |
class Row(object): <NEW_LINE> <INDENT> def __init__(self, client, element, link_class=None): <NEW_LINE> <INDENT> self.client = client <NEW_LINE> self.element = element <NEW_LINE> self.link = None <NEW_LINE> if link_class: <NEW_LINE> <INDENT> self.link = self.element.find_element_by_class_name(link_class) <NEW_LINE> <DE... | Object representing campaign row in sidebar | 62598f0f97e22403b3839aab |
class FollowManager(Manager): <NEW_LINE> <INDENT> def for_object(self, instance): <NEW_LINE> <INDENT> content_type = ContentType.objects.get_for_model(instance).pk <NEW_LINE> return self.filter(content_type=content_type, object_id=instance.pk) <NEW_LINE> <DEDENT> def is_following(self, user, instance): <NEW_LINE> <INDE... | Manager for Follow model. | 62598f0f55399d3f056250f0 |
class SAPRFC: <NEW_LINE> <INDENT> def __init__(self, service): <NEW_LINE> <INDENT> self.service = service <NEW_LINE> <DEDENT> def connect(self): <NEW_LINE> <INDENT> if not getattr(self.service, 'language', None): <NEW_LINE> <INDENT> self.service.language = 'EN' <NEW_LINE> <DEDENT> params = dict(client=self.service.clie... | This is a class for SAP RFC.
The class provides method to open SAP RFC connection using SAP NetWeaver RFC Library via PyRFC implementation.
For more information about PyRFC, please follow https://sap.github.io/PyRFC/index.html | 62598f0f4a966d76dd5eda9f |
class FileIO: <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> self._filename = filename <NEW_LINE> self._pos = 0 <NEW_LINE> self._lock = threading.Lock() <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self._filename <NEW_LINE> <DEDENT> def read(self, size=-1): ... | A read-write implementation of a file object.
Attributes:
name (str): The filename.
Note:
May contain threadsafety. | 62598f0fff9c53063f519229 |
class Vgg10Conv(nn.Module): <NEW_LINE> <INDENT> def __init__(self, num_cls=4, init_weights=False): <NEW_LINE> <INDENT> super(Vgg10Conv, self).__init__() <NEW_LINE> self.num_cls = num_cls <NEW_LINE> self.features = nn.Sequential( nn.Conv2d(1, 64, 3, padding=1), nn.BatchNorm2d(64), nn.ReLU(), nn.Conv2d(64, 64, 3, padd... | vgg16 convolution network architecture | 62598f0f3346ee7daa336c49 |
class EmojiPattern(InlineProcessor): <NEW_LINE> <INDENT> def __init__(self, pattern, config, md): <NEW_LINE> <INDENT> title = config['title'] <NEW_LINE> alt = config['alt'] <NEW_LINE> self._set_index(config["emoji_index"]) <NEW_LINE> self.unicode_alt = alt in UNICODE_ALT <NEW_LINE> self.encoded_alt = alt == UNICODE_ENT... | Return element of type `tag` with a text attribute of group(2) of an `InlineProcessor`. | 62598f0f55399d3f056250f2 |
class CTD_ANON (pyxb.binding.basis.complexTypeDefinition): <NEW_LINE> <INDENT> _TypeDefinition = None <NEW_LINE> _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY <NEW_LINE> _Abstract = False <NEW_LINE> _ExpandedName = None <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('/Users/mrf7578/... | Complex type [anonymous] with content type ELEMENT_ONLY | 62598f0fab23a570cc2d4353 |
class DataBook(models.Model): <NEW_LINE> <INDENT> name = models.CharField('選手名', max_length=255) <NEW_LINE> club = models.CharField('所属クラブ', max_length=255, blank=True) <NEW_LINE> num = models.IntegerField('背番号', blank=True, default=0) <NEW_LINE> position = models.CharField('ポジション', max_length=255, blank=True) <NEW_LIN... | 選手データ | 62598f0f60cbc95b06362eff |
class NetG(nn.Module): <NEW_LINE> <INDENT> def __init__(self, opt): <NEW_LINE> <INDENT> super(NetG, self).__init__() <NEW_LINE> ngf = opt.ngf <NEW_LINE> self.main = nn.Sequential( nn.ConvTranspose2d(opt.nz, ngf * 8, 4, 1, 0, bias=False), nn.BatchNorm2d(ngf * 8), nn.ReLU(True), nn.ConvTranspose2d(ngf * 8, ngf * 4, 4, 2,... | 生成器定义 | 62598f0f099cdd3c636749be |
class NonTexture(object): <NEW_LINE> <INDENT> def real(self): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> def enable(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def disable(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def bind(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def destroy(self)... | An OpenGL non texture object.
This is just a sort of null class indicating an object has no
texture. It provides the same methods the Texture class does,
but they do nothing. | 62598f0f3d592f4c4edb9ab4 |
class Deal(models.Model): <NEW_LINE> <INDENT> header = models.CharField(max_length=150) <NEW_LINE> description = models.TextField() <NEW_LINE> image = models.CharField(max_length=150, null=True, blank=True) <NEW_LINE> link = models.CharField(max_length=300, null=True, blank=True) <NEW_LINE> def __str__(self): <NEW_LINE... | Main model for special deals
| 62598f0f31939e2706ed1049 |
class AdditionalProcessingTests(unittest.TestCase): <NEW_LINE> <INDENT> _A = dns.Record_A(b"10.0.0.1") <NEW_LINE> _AAAA = dns.Record_AAAA(b"f080::1") <NEW_LINE> def _lookupSomeRecords(self, method, soa, makeRecord, target, addresses): <NEW_LINE> <INDENT> authority = NoFileAuthority( soa=(soa.mname.name, soa), records={... | Tests for L{FileAuthority}'s additional processing for those record types
which require it (MX, CNAME, etc). | 62598f0fec188e330fdf7482 |
class InvalidDriverException(Exception): <NEW_LINE> <INDENT> pass | Thrown when we try to use a driver that isn't defined here | 62598f0fa05bb46b38489448 |
class Regressor(RegressorClassifier): <NEW_LINE> <INDENT> def prepare(self): <NEW_LINE> <INDENT> data = (self.spark_session.read.format(self.data_format) .load(self.data_file)) <NEW_LINE> featureIndexer = (VectorIndexer(inputCol="features", outputCol="indexedFeatures", maxCategories=self.max_categories) .fit(data)) <NE... | Regressor. | 62598f0f8a349b6b43684e12 |
class Put: <NEW_LINE> <INDENT> class Header(Schema): <NEW_LINE> <INDENT> X_GitHub_Media_Type = fields.String(data_key='X-GitHub-Media-Type', description='You can check the current version of media type in responses.\n') <NEW_LINE> Accept = fields.String(description='Is used to set specified media type.') <NEW_LINE> X_R... | Publicize a user's membership. | 62598f0fcc40096d616197c2 |
@yorm.sync("tmp/directory/{UUID}.yml", attrs={'level': Level}) <NEW_LINE> class SampleCustomDecorated: <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.level = '1.0' <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<custom {}>".format(id(self)) | Sample class using custom attribute types. | 62598f0f7b180e01f3e48630 |
class NamespaceProperties(DictMixin): <NEW_LINE> <INDENT> def __init__(self, name, **kwargs): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> extraction_missing_args = [] <NEW_LINE> extract_kwarg = functools.partial( extract_kwarg_template, kwargs, extraction_missing_args ) <NEW_LINE> self.name = name <NEW_LINE> self.a... | The metadata related to a Service Bus namespace.
:ivar alias: Alias for the geo-disaster recovery Service Bus namespace.
:type alias: str
:ivar created_at_utc: The exact time the namespace was created.
:type created_at_utc: ~datetime.datetime
:ivar messaging_sku: The SKU for the messaging entity. Possible values inclu... | 62598f0f377c676e912f634e |
class QueryRateLimitPoliciesRequest(JDCloudRequest): <NEW_LINE> <INDENT> def __init__(self, parameters, header=None, version="v1"): <NEW_LINE> <INDENT> super(QueryRateLimitPoliciesRequest, self).__init__( '/regions/{regionId}/rateLimitPolicies', 'GET', header, version) <NEW_LINE> self.parameters = parameters | 查询流控策略列表 | 62598f0fad47b63b2c5a63eb |
class TPUEmbedding(embeddings.Embedding): <NEW_LINE> <INDENT> def build(self, input_shape): <NEW_LINE> <INDENT> if input_shape[0] is None: <NEW_LINE> <INDENT> raise ValueError( 'TPUEmbeddings must have a fixed input_length or input shape.') <NEW_LINE> <DEDENT> return super(TPUEmbedding, self).build(input_shape) <NEW_LI... | TPU compatible embedding layer.
The default Keras layer is not TPU compatible. This layer is a drop-in
replacement: it has the same behavior and will work on CPU and GPU devices. | 62598f0f283ffb24f3cf247f |
class MockDatabase(FAFDatabase): <NEW_LINE> <INDENT> def __init__( self, host: str = "localhost", port: int = 3306, user: str = "root", password: str = "", db: str = "faf_test", **kwargs ): <NEW_LINE> <INDENT> super().__init__(host, port, user, password, db, **kwargs) <NEW_LINE> self._connection = None <NEW_LINE> self.... | This class mocks the FAFDatabase class, rolling back all transactions
performed during tests. To do that, it proxies the real db engine, giving
access to a single connection the results of which are never comitted.
Since the server uses that single connection, it sees all changes made, but
at the same time we can rollb... | 62598f0fbe7bc26dc925144a |
class HostsScopeTypeNoLegacyPolicyTest(HostsScopeTypePolicyTest): <NEW_LINE> <INDENT> without_deprecated_rules = True <NEW_LINE> rules_without_deprecation = { policies.POLICY_NAME % 'list': base_policy.ADMIN, policies.POLICY_NAME % 'show': base_policy.ADMIN, policies.POLICY_NAME % 'update': base_policy.ADMIN, policies.... | Test Hosts APIs policies with with no legacy deprecated rules
and scope checks enabled which means scope + new defaults. So
only system admin is able to perform hosts Operations. | 62598f0f3617ad0b5ee04d02 |
class OneDSelector(Selector): <NEW_LINE> <INDENT> scale = Instance(Scale, allow_none=True, default_value=None).tag(sync=True, dimension='x', **widget_serialization) <NEW_LINE> _model_name = Unicode('OneDSelectorModel').tag(sync=True) | One-dimensional selector interaction
Base class for all selectors which select data in one dimension, i.e.,
either the x or the y direction. The ``scale`` attribute should be provided.
Attributes
----------
scale: An instance of Scale
This is the scale which is used for inversion from the pixels to data
co-or... | 62598f0f956e5f7376df4c66 |
class EstiloVidaUpdateView(UpdateView, LoginRequiredMixin): <NEW_LINE> <INDENT> model = EstiloVida <NEW_LINE> form_class = EstiloVidaForm <NEW_LINE> template_name = 'persona/estilo_vida_update.html' | Permite actualizar los datos del :class:`EstiloVida` de una
:class:`Persona` | 62598f0fa219f33f346c53ff |
class MaxDualTotalCorrelationOptimizer(BaseDistOptimizer, BaseNonConvexOptimizer): <NEW_LINE> <INDENT> def _objective(self): <NEW_LINE> <INDENT> dual_total_correlation = self._dual_total_correlation(self._rvs) <NEW_LINE> def objective(self, x): <NEW_LINE> <INDENT> pmf = self.construct_joint(x) <NEW_LINE> return -dual_t... | Compute maximum dual total correlation distributions. | 62598f0fdc8b845886d5219c |
class MaskableActorCriticCnnPolicy(MaskableActorCriticPolicy): <NEW_LINE> <INDENT> def __init__( self, observation_space: gym.spaces.Space, action_space: gym.spaces.Space, lr_schedule: Schedule, net_arch: Optional[List[Union[int, Dict[str, List[int]]]]] = None, activation_fn: Type[nn.Module] = nn.Tanh, ortho_init: bool... | CNN policy class for actor-critic algorithms (has both policy and value prediction).
Used by A2C, PPO and the likes.
:param observation_space: Observation space
:param action_space: Action space
:param lr_schedule: Learning rate schedule (could be constant)
:param net_arch: The specification of the policy and value ne... | 62598f0ffbf16365ca792c74 |
class TimeBandPower(Transform): <NEW_LINE> <INDENT> def __init__(self, n = 5): <NEW_LINE> <INDENT> self.numbands = n <NEW_LINE> <DEDENT> def get_name(self): <NEW_LINE> <INDENT> return 'timebandpower' <NEW_LINE> <DEDENT> def requires(self): <NEW_LINE> <INDENT> return [ResampledDataSet(), PowerBand(DatasetData(ResampledD... | Splits the time series into n bands, each representing a range of frequencies,
then computes power using the Welch algorithm. | 62598f0f3617ad0b5ee04d04 |
class RDt(RPackage): <NEW_LINE> <INDENT> homepage = "http://rstudio.github.io/DT" <NEW_LINE> url = "https://cran.r-project.org/src/contrib/DT_0.1.tar.gz" <NEW_LINE> list_url = "https://cran.r-project.org/src/contrib/Archive/DT/" <NEW_LINE> version('0.1', '5c8df984921fa484784ec4b8a4fb6f3c') <NEW_LINE> depends_on('r... | Data objects in R can be rendered as HTML tables using the JavaScript
library 'DataTables' (typically via R Markdown or Shiny). The 'DataTables'
library has been included in this R package. The package name 'DT' is an
abbreviation of 'DataTables'. | 62598f0f60cbc95b06362f07 |
class ClassClientInitTest(TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> with patch("iris_sdk.utils.config.Config"): <NEW_LINE> <INDENT> cls._client = Client() <NEW_LINE> <DEDENT> <DEDENT> @classmethod <NEW_LINE> def tearDownClass(cls): <NEW_LINE> <INDENT> del cls._clien... | Test class initialization and properties. | 62598f10377c676e912f6351 |
class ClientInstantiationError(Exception): <NEW_LINE> <INDENT> pass | Thrown if the Lirconian cannot be instantiated. | 62598f10283ffb24f3cf2483 |
class ExecuteStatement_result(object): <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.STRUCT, 'success', (TExecuteStatementResp, TExecuteStatementResp.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <I... | Attributes:
- success | 62598f108a349b6b43684e1a |
class TweetsUtilsTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.tweets = TweetSearch('flisol') <NEW_LINE> <DEDENT> def test_capture_tweets(self): <NEW_LINE> <INDENT> results = self.tweets.get_tweets() <NEW_LINE> assert results <NEW_LINE> <DEDENT> def test_capture_tweets_page(self): <NEW_L... | Unit test witch verify Twitter API | 62598f109f288636728173cf |
class RPCClient(object): <NEW_LINE> <INDENT> def __init__(self, transport, target, timeout=None, version_cap=None, serializer=None): <NEW_LINE> <INDENT> self.conf = transport.conf <NEW_LINE> self.conf.register_opts(_client_opts) <NEW_LINE> self.transport = transport <NEW_LINE> self.target = target <NEW_LINE> self.timeo... | A class for invoking methods on remote servers.
The RPCClient class is responsible for sending method invocations to remote
servers via a messaging transport.
A default target is supplied to the RPCClient constructor, but target
attributes can be overridden for individual method invocations using the
prepare() method... | 62598f10ab23a570cc2d4358 |
class Proxy(object): <NEW_LINE> <INDENT> def __init__(self, client, service_name, name): <NEW_LINE> <INDENT> self.service_name = service_name <NEW_LINE> self.name = name <NEW_LINE> self.partition_key = string_partition_strategy(self.name) <NEW_LINE> self._client = client <NEW_LINE> self.logger = logging.getLogger("Haze... | Provides basic functionality for Hazelcast Proxies. | 62598f10adb09d7d5dc09180 |
class ContactRestrictedFieldSerializer(utilitySerializers. DynamicFieldsModelSerializer, serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta(object): <NEW_LINE> <INDENT> model = Contact <NEW_LINE> fields = ('id', 'title', 'given_name', 'surname', 'email') <NEW_LINE> <DEDENT> def create(self, validated_data): <... | class ContactRestrictedFieldSerializer. | 62598f10956e5f7376df4c68 |
class IDescription(ISheet, ISheetReferenceAutoUpdateMarker): <NEW_LINE> <INDENT> pass | Marker interface for proposal description. | 62598f10cc40096d616197c6 |
@register_lr_scheduler("inverse_sqrt", dataclass=InverseSquareRootLRScheduleConfig) <NEW_LINE> class InverseSquareRootSchedule(FairseqLRScheduler): <NEW_LINE> <INDENT> def __init__(self, cfg: InverseSquareRootLRScheduleConfig, optimizer): <NEW_LINE> <INDENT> super().__init__(cfg, optimizer) <NEW_LINE> if isinstance(cfg... | Decay the LR based on the inverse square root of the update number.
We also support a warmup phase where we linearly increase the learning rate
from some initial learning rate (``--warmup-init-lr``) until the configured
learning rate (``--lr``). Thereafter we decay proportional to the number of
updates, with a decay f... | 62598f10956e5f7376df4c69 |
class Hourglass(nn.Module): <NEW_LINE> <INDENT> def __init__(self, down_seq, up_seq, skip_seq, merge_type="add", return_first_skip=False): <NEW_LINE> <INDENT> super(Hourglass, self).__init__() <NEW_LINE> assert (len(up_seq) == len(down_seq)) <NEW_LINE> assert (len(skip_seq) == len(down_seq)) <NEW_LINE> assert (merge_ty... | A hourglass block.
Parameters:
----------
down_seq : nn.Sequential
Down modules as sequential.
up_seq : nn.Sequential
Up modules as sequential.
skip_seq : nn.Sequential
Skip connection modules as sequential.
merge_type : str, default 'add'
Type of concatenation of up and skip outputs.
return_first_skip... | 62598f10d8ef3951e32c7441 |
class Progress(object): <NEW_LINE> <INDENT> def __init__(self, progress_str, step=None, known_total=None, **kwargs): <NEW_LINE> <INDENT> self.start = time.time() <NEW_LINE> self.count = 0 <NEW_LINE> self.total = 0 <NEW_LINE> self.progress_str = progress_str <NEW_LINE> self.known_total = None if known_total is None else... | A simple progress meter printing to STDERR and dupliganger.log.
We print to STDERR just for convenience because it's not buffered. | 62598f10283ffb24f3cf2488 |
class DD(D): <NEW_LINE> <INDENT> regex = "dd(?!d)" <NEW_LINE> def format(self, value: Union[date, datetime], tokens: List[Token]) -> str: <NEW_LINE> <INDENT> return value.strftime("%d") <NEW_LINE> <DEDENT> def parse(self, value: str, tokens: List[Token]) -> Tuple[Dict[str, Any], str]: <NEW_LINE> <INDENT> return {"day":... | Day of the month, with a leading 0 for numbers less than 10. | 62598f10956e5f7376df4c6a |
class Sinkoin: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.chain = [] <NEW_LINE> self.mempool = [] <NEW_LINE> self.create_block(proof=1, previous_hash='0') <NEW_LINE> self.nodes = set() <NEW_LINE> <DEDENT> def create_block(self, proof, previous_hash): <NEW_LINE> <INDENT> block = {'index': len(self.... | This object stores a single chain from the block chain. | 62598f1031939e2706ed1050 |
class HelpWidget(QtGui.QTextBrowser): <NEW_LINE> <INDENT> def __init__(self, session=None, controller=None, parent=None): <NEW_LINE> <INDENT> super(HelpWidget, self).__init__(parent=parent) <NEW_LINE> self.setAccessibleName("HelpWidget") <NEW_LINE> actionHelpOpenAlea = QtGui.QAction( QtGui.QIcon(":/images/resources/ope... | Widget which permit to display informations/help.
Usefull in visualea or LPy. | 62598f10fbf16365ca792c7c |
class TestTaskNew(BaseTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(TestTaskNew, self).setUp() <NEW_LINE> self.response = self.client_get( 'tickets:task_new', kwargs={'ticket_pk': self.ticket.pk} ) <NEW_LINE> <DEDENT> def test_get(self): <NEW_LINE> <INDENT> self.assertEqual(200, self.response.st... | Test TaskNew | 62598f10be7bc26dc925144f |
class StudentDetail(generics.RetrieveDestroyAPIView): <NEW_LINE> <INDENT> queryset = Student.objects.all() <NEW_LINE> serializer_class = StudentSerializer <NEW_LINE> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> return self.retrieve(request, *args, **kwargs) | Get a student's public profile | 62598f10bf627c535bcb0053 |
class DeltaLayer(TerrainLayer): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self._require = (RiverLayer,) <NEW_LINE> self.classifier = TileClassifierDelta <NEW_LINE> self.classify_terrain = self.terrain <NEW_LINE> <DEDENT> @TerrainLayer.class... | The layer of river deltas. Marks the boundaries where river becomes
the sea, yielding neighboring pairs of DELTA_SEA and DELTA_RIVER for the
classifier. | 62598f10adb09d7d5dc09186 |
class Category(AdjacencyList, ContentMixin, TimestampMixin): <NEW_LINE> <INDENT> __tablename__ = 'gazette_categories' <NEW_LINE> active = Column(Boolean, nullable=True) <NEW_LINE> def notices(self): <NEW_LINE> <INDENT> from onegov.gazette.models.notice import GazetteNotice <NEW_LINE> notices = object_session(self).quer... | Defines a category for official notices.
Although the categories are defined as an adjacency list, we currently
use it only as a simple alphabetically ordered key-value list (name-title). | 62598f10099cdd3c636749c6 |
@api_rest.route('/ping-resource/<string:resource_id>') <NEW_LINE> class PingResource(BaseResource): <NEW_LINE> <INDENT> def get(self, resource_id): <NEW_LINE> <INDENT> return {'value': 'ping!!!'} | Test Ping Resource | 62598f107cff6e4e811b45c8 |
class OpenCVHaarCascadeFaceDetectionAlgorithm(ImageAlgorithm): <NEW_LINE> <INDENT> def __init__(self, use_gpu=-1): <NEW_LINE> <INDENT> ImageAlgorithm.__init__(self, OpenCVHaarCascadeFaceDetectionAlgorithm.__name__, "OpenCV Face detection Algorithm based on Haar cascade (Viola&Jones)") <NEW_LINE> self.detector = cv2.Cas... | Algorithm for detection of faces based on Viola&Jones HaarCascades implementation from OpenCV. | 62598f10cc40096d616197c9 |
class ConfigItem(): <NEW_LINE> <INDENT> def __init__(self, name='', dataType=DATATYPE.FILE, dir='', username='', password='', id=None, target='',port=0): <NEW_LINE> <INDENT> if id is None: <NEW_LINE> <INDENT> self.id = int(time.strftime("%Y%m%d%H%M%S", time.localtime())) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> se... | id:任务id
name:任务名称
dataType:数据来源
dir:数据目录或者连接字符串
username:登录用户
password:登录密码 | 62598f10be7bc26dc9251450 |
class TestCollatz(TestCase): <NEW_LINE> <INDENT> def test_read(self): <NEW_LINE> <INDENT> input_var = "1 10\n" <NEW_LINE> start, end = collatz_read(input_var) <NEW_LINE> self.assertEqual(start, 1) <NEW_LINE> self.assertEqual(end, 10) <NEW_LINE> <DEDENT> def test_eval_1(self): <NEW_LINE> <INDENT> result = collatz_eval(1... | Testing class for this assignment | 62598f108a349b6b43684e22 |
class Neuron(nn.Module): <NEW_LINE> <INDENT> def __init__(self, ni, nf, nout_ni, bias=True, act_fn=None): <NEW_LINE> <INDENT> super(Neuron, self).__init__() <NEW_LINE> self._ni = ni <NEW_LINE> act_fn = nn.Tanh() if act_fn is None else act_fn <NEW_LINE> assert isinstance(act_fn, nn.Module), 'activation must be of nn.Mod... | Core of a single neural component. This can be thought of as a simple 2-layer ANN
::param ni: input layer dimension
::param nf: intermediate layer dimension
::nout_ni: next Neuron input layer dimension | 62598f10fbf16365ca792c80 |
class TwoLayerNet(object): <NEW_LINE> <INDENT> def __init__(self, input_dim=3*32*32, hidden_dim=100, num_classes=10, weight_scale=1e-3, reg=0.0): <NEW_LINE> <INDENT> self.params = {} <NEW_LINE> self.reg = reg <NEW_LINE> self.params['W1'] = weight_scale * np.random.randn(input_dim, hidden_dim) <NEW_LINE> self.params['b1... | A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dimension
of D, a hidden dimension of H, and perform classification over C classes.
The architecure should be affine - relu - affine - softmax.
Note that this class does not implemen... | 62598f107cff6e4e811b45ca |
class BalanceSerializer(serializers.Serializer): <NEW_LINE> <INDENT> amount = serializers.DecimalField(max_digits=5, decimal_places=2) <NEW_LINE> meta = serializers.CharField(required=False, allow_blank=True) | To validate /users/:id/balance/ endpoint. | 62598f10cc40096d616197ca |
class BatteryTempEvent(Event): <NEW_LINE> <INDENT> def __init__(self, timestamp, temperature): <NEW_LINE> <INDENT> Event.__init__(self, event_type=EventType.BATTERY_TEMPERATURE, timestamp=timestamp) <NEW_LINE> self.temperature = temperature <NEW_LINE> <DEDENT> def __repr__(self, *args, **kwargs): <NEW_LINE> <INDENT> re... | Represents battery temperate value events
Represents events related to updating the current
battery temperature level
Attributes:
temperature (int): Battery temperature value | 62598f100fa83653e46f3ac6 |
class LargeProfileExtender(profile_extender.ProfileExtender): <NEW_LINE> <INDENT> def Run(self): <NEW_LINE> <INDENT> extender = cookie_profile_extender.CookieProfileExtender( self.finder_options) <NEW_LINE> extender.Run() | This class creates a large profile by performing a large number of url
navigations. | 62598f10377c676e912f6356 |
class Dump1090AircraftsFeed(Feed): <NEW_LINE> <INDENT> def __init__( self, home_coordinates: Tuple[float, float], websession: ClientSession, apply_filters: bool = True, filter_radius: float = None, url: str = None, hostname: str = DEFAULT_HOSTNAME, port: int = DEFAULT_PORT, ) -> None: <NEW_LINE> <INDENT> super().__init... | Dump1090 Aircrafts Feed. | 62598f107b180e01f3e48638 |
class TreeStatus: <NEW_LINE> <INDENT> DEFAULT_URL = "https://treestatus.mozilla-releng.net" <NEW_LINE> OPEN_STATUSES = {"approval required", "open"} <NEW_LINE> def __init__(self, *, url=None, session=None): <NEW_LINE> <INDENT> self.url = url if url is not None else TreeStatus.DEFAULT_URL <NEW_LINE> self.url = self.url ... | Client for Tree Status API. | 62598f10a05bb46b3848945a |
class VirtualCorpus(Corpus): <NEW_LINE> <INDENT> _virtual_works = [] <NEW_LINE> corpusName = None <NEW_LINE> for corpusName in dir(virtual): <NEW_LINE> <INDENT> className = getattr(virtual, corpusName) <NEW_LINE> if callable(className): <NEW_LINE> <INDENT> obj = className() <NEW_LINE> if isinstance(obj, virtual.Virtual... | A model of the *virtual* corpus. that stays online...
>>> virtualCorpus = corpus.corpora.VirtualCorpus() | 62598f108a349b6b43684e24 |
class PerfData(object): <NEW_LINE> <INDENT> def __init__(self, perfdatastring=""): <NEW_LINE> <INDENT> self.metrics = [] <NEW_LINE> self.invalid_metrics = [] <NEW_LINE> perfdatastring = perfdatastring.replace('\x00', '') <NEW_LINE> try: <NEW_LINE> <INDENT> perfdata = shlex.split(perfdatastring) <NEW_LINE> for metric in... | Data Structure for a nagios perfdata string with multiple perfdata metric
Example string:
>>> perf = PerfData("load1=10 load2=10 load3=20 'label with spaces'=5")
>>> perf.metrics
['load1'=10;;;;, 'load2'=10;;;;, 'load3'=20;;;;, 'label with spaces'=5;;;;]
>>> for i in perf.metrics: print("%s %s" % (i.label, i.value))
... | 62598f10956e5f7376df4c6d |
class Command(object): <NEW_LINE> <INDENT> CMD_LIST = [] <NEW_LINE> name = None <NEW_LINE> doc_purpose = '' <NEW_LINE> doc_usage = '' <NEW_LINE> doc_description = None <NEW_LINE> cmd_options = tuple() <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.name = self.name or self.__class__.__name__.lower() <NEW_LINE> ... | third-party should subclass this for commands that do no use tasks
:cvar name: (str) name of sub-cmd to be use from cmdline
:cvar doc_purpose: (str) single line cmd description
:cvar doc_usage: (str) describe accepted parameters
:cvar doc_description: (str) long description/help for cmd
:cvar cmd_options:
(list ... | 62598f10099cdd3c636749c8 |
class TestCachingManager(TestManagerGet): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.manager = Manager(host="127.0.0.1:{0}".format(self.agent.port), community="public", version=2, cache=1) <NEW_LINE> self.session = self.manager._session._session | Test if caching manager works like regular manager | 62598f10ec188e330fdf7496 |
class STD_ANON_ (pyxb.binding.datatypes.string): <NEW_LINE> <INDENT> _ExpandedName = None <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('/usr/local/litle-home/hvora/git/python/cnp-chargeback-sdk-python/schema/chargeback-api-v2.1.xsd', 84, 8) <NEW_LINE> _Documentation = None | An atomic simple type. | 62598f100fa83653e46f3ac8 |
class DependencyError(ValueError): <NEW_LINE> <INDENT> pass | Dependency not satisfied
| 62598f10a05bb46b3848945c |
class Movie (): <NEW_LINE> <INDENT> def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube): <NEW_LINE> <INDENT> self.title = movie_title <NEW_LINE> self.storyline = movie_storyline <NEW_LINE> self.poster_image_url = poster_image <NEW_LINE> self.trailer_youtube_url = trailer_youtube <NEW_LINE> <... | Contructor of Class Movie
Attributes:
title (str): String movie title
storyline (str): String movie story line of filme
poster_image_url (str): Url from image poster
trailer_youtube_url (str): Url from youtube trailer | 62598f10ff9c53063f519240 |
class MaximumIntensityProjectionProperty(Property): <NEW_LINE> <INDENT> __swig_setmethods__ = {} <NEW_LINE> for _s in [Property]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) <NEW_LINE> __setattr__ = lambda self, name, value: _swig_setattr(self, MaximumIntensityProjectionProperty, name, value) <NEW_... | Proxy of C++ osgVolume::MaximumIntensityProjectionProperty class | 62598f103617ad0b5ee04d11 |
class sfp_openstreetmap(SpiderFootPlugin): <NEW_LINE> <INDENT> opts = { } <NEW_LINE> optdescs = { } <NEW_LINE> results = dict() <NEW_LINE> def setup(self, sfc, userOpts=dict()): <NEW_LINE> <INDENT> self.sf = sfc <NEW_LINE> self.results = dict() <NEW_LINE> for opt in userOpts.keys(): <NEW_LINE> <INDENT> self.opts[opt] =... | OpenStreetMap:Footprint,Investigate,Passive:Real World::Retrieves latitude/longitude coordinates for physical addresses from OpenStreetMap API. | 62598f10099cdd3c636749c9 |
class TestViewPermissionsMixin: <NEW_LINE> <INDENT> view_url: str <NEW_LINE> permissions: list[str] <NEW_LINE> methods: list[str] <NEW_LINE> user: Person <NEW_LINE> def test_view_admin_accessible(self): <NEW_LINE> <INDENT> super()._setUpSuperuser() <NEW_LINE> super()._logSuperuserIn() <NEW_LINE> for method in self.meth... | Simple mixin for testing a single view URL for specific permissions, admin/no-admin
access. Multiple HTTP methods supported. | 62598f109f288636728173dc |
class PendingReferences(Exception): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> self.parameter = value <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return repr(self.parameter) | Raised when trying to delete an element which is referenced by
other objects, classes, etc. | 62598f10be7bc26dc9251453 |
class AstIncompatibleAssign(AstErrorBase, TypeError): <NEW_LINE> <INDENT> pass | Assignment target has type annotation that is incompatible with expression | 62598f107b180e01f3e4863a |
class Conv(OnnxOpConverter): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _impl_v1(cls, inputs, attr, params): <NEW_LINE> <INDENT> data = inputs[0] <NEW_LINE> input_shape = infer_shape(data) <NEW_LINE> ndim = len(input_shape) <NEW_LINE> if "auto_pad" in attr: <NEW_LINE> <INDENT> attr["auto_pad"] = attr["auto_pad"].d... | Operator converter for Conv. | 62598f10a05bb46b3848945e |
class SorterGUI(App): <NEW_LINE> <INDENT> def build(self): <NEW_LINE> <INDENT> return MainScreen() | Main app. | 62598f10ab23a570cc2d435f |
class XMLParser(object): <NEW_LINE> <INDENT> def __init__(self, source=None, fromString=False, fromTag=False): <NEW_LINE> <INDENT> if (source is None): <NEW_LINE> <INDENT> self.__dict__['parsedXML'] = BeautifulSoup(features='xml') <NEW_LINE> <DEDENT> elif fromString: <NEW_LINE> <INDENT> self.__dict__['parsedXML'] = Bea... | This class contains methods related the XMLParser class. | 62598f10a219f33f346c5411 |
class VOFileHandler(handlers.BufferingHandler): <NEW_LINE> <INDENT> def __init__(self, filename, vos_client=None): <NEW_LINE> <INDENT> self.filename = filename <NEW_LINE> self._client = vos_client <NEW_LINE> self._stream = None <NEW_LINE> super(VOFileHandler, self).__init__(1024*1024) <NEW_LINE> <DEDENT> @property <NEW... | A handler class that writes formatted logging records to VOSpace files. | 62598f10fbf16365ca792c86 |
class NoopAlgorithm(TradingAlgorithm): <NEW_LINE> <INDENT> def initialize(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def handle_data(self, data): <NEW_LINE> <INDENT> pass | Dolce fa niente. | 62598f10cc40096d616197cd |
class ContextHook(hooks.PecanHook): <NEW_LINE> <INDENT> def __init__(self, public_api_routes): <NEW_LINE> <INDENT> self.public_api_routes = public_api_routes <NEW_LINE> super(ContextHook, self).__init__() <NEW_LINE> <DEDENT> def before(self, state): <NEW_LINE> <INDENT> is_public_api = state.request.environ.get('is_publ... | Configures a request context and attaches it to the request. | 62598f10be7bc26dc9251454 |
class EntryLine(TextLine): <NEW_LINE> <INDENT> def __init__(self, alias, duration, description, text=None, ignored=False): <NEW_LINE> <INDENT> self._alias = alias <NEW_LINE> self.duration = duration <NEW_LINE> self.description = description <NEW_LINE> self.formatting = None <NEW_LINE> self.commented = False <NEW_LINE> ... | The EntryLine is a line representing a timesheet entry, with an alias, a
duration and a description. The text attribute allows to keep the original
formatting of the duration as long as the entry is not changed. | 62598f10283ffb24f3cf2493 |
class SkipAndForget(Layer): <NEW_LINE> <INDENT> def __init__(self, max_step: int = 10000, name: str = 'skip_and_forget'): <NEW_LINE> <INDENT> super().__init__(name=name) <NEW_LINE> self.max_step = tf.constant(max_step, dtype=self.dtype) <NEW_LINE> self.step = tf.Variable(0., dtype=self.dtype, trainable=False) <NEW_LINE... | Add skip connection then gradually forget the connection during training | 62598f10bf627c535bcb005d |
class ServoResource(PinResource): <NEW_LINE> <INDENT> DEFAULT_PIN = 14 <NEW_LINE> SUCCESS_MESSAGE = 'Successfully moved Servo on GPIO{} to {} position' <NEW_LINE> ERROR_MESSAGE = 'Error Handling Servo' <NEW_LINE> VALID_LOCATIONS = set(['min', 'mid', 'max']) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <IN... | /servo
Control a servo on `pin` to location `location`.
POST Arguments:
location: min/mid/max
pin: default = 14
Example:
/servo?location=min&pin=14 | 62598f103346ee7daa336c56 |
class SpheroService(Service): <NEW_LINE> <INDENT> uuid = VendorUUID(b"!!orehpS OOW\x01\x00\x01\x00") | Core Sphero Service. Unimplemented. | 62598f104a966d76dd5edabb |
class ReportingStatusDataSource(ReportDataSource, CommtrackDataSourceMixin): <NEW_LINE> <INDENT> def get_data(self): <NEW_LINE> <INDENT> startkey = [self.domain, self.active_location._id if self.active_location else None] <NEW_LINE> product_cases = SPPCase.view('commtrack/product_cases', startkey=startkey, endkey=start... | Config:
domain: The domain to report on.
location_id: ID of location to get data for. Omit for all locations. | 62598f10956e5f7376df4c70 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.