code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ClassInstanceProxyWrapper(ProxyWrapper): <NEW_LINE> <INDENT> def __call__(self, *args, **kwargs): <NEW_LINE> <INDENT> instance = self._communicator.rpc_new(self._data.get("__class__", ""), *args) <NEW_LINE> if isinstance(instance, ProxyWrapper): <NEW_LINE> <INDENT> return instance <NEW_LINE> <DEDENT> else: <NEW_L... | A ProxyWrapper for class instances. | 62598f8e656771135c489268 |
class RandomStatsBinomialImpl(AbstractRandomStats): <NEW_LINE> <INDENT> def _get_params(self, dist): <NEW_LINE> <INDENT> return [dist.parameters['n'], dist.parameters['p']] <NEW_LINE> <DEDENT> def cdf(self, dist, v): <NEW_LINE> <INDENT> return binom.cdf(v, *self._get_params(dist)) <NEW_LINE> <DEDENT> def ppf(self, dist... | An implementation of AbstractRandomStats for binomial distributions
| 62598f8ebde94217f370745c |
class Mixed11BitCanAddressingInformation(AbstractCanAddressingInformation): <NEW_LINE> <INDENT> AI_DATA_BYTES_NUMBER: int = 1 <NEW_LINE> @property <NEW_LINE> def addressing_format(self) -> CanAddressingFormatAlias: <NEW_LINE> <INDENT> return CanAddressingFormat.MIXED_11BIT_ADDRESSING <NEW_LINE> <DEDENT> @classmethod <N... | Addressing Information of CAN Entity (either server or client) that uses Mixed 11-bit Addressing format. | 62598f8e6aa9bd52df0d4ab9 |
@dataclass <NEW_LINE> class Group: <NEW_LINE> <INDENT> name: str <NEW_LINE> password: str <NEW_LINE> gid: int <NEW_LINE> members: list | Data class used to store group fields of the group file | 62598f8e30dc7b766599f445 |
class RelaxedBernoulli(TransformedDistribution): <NEW_LINE> <INDENT> arg_constraints = {'probs': constraints.unit_interval, 'logits': constraints.real} <NEW_LINE> support = constraints.unit_interval <NEW_LINE> has_rsample = True <NEW_LINE> def __init__(self, temperature, probs=None, logits=None, validate_args=None): <N... | Creates a RelaxedBernoulli distribution, parametrized by :attr:`temperature`, and either
:attr:`probs` or :attr:`logits` (but not both). This is a relaxed version of the `Bernoulli`
distribution, so the values are in (0, 1), and has reparametrizable samples.
Example::
>>> m = RelaxedBernoulli(torch.tensor([2.2]),... | 62598f8e0c0af96317c55f6e |
class StacksSet: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.master_stack = Stack() <NEW_LINE> self.stack_limit = 5 <NEW_LINE> self.current_stack_limit = None <NEW_LINE> self.current_stack = None <NEW_LINE> <DEDENT> def push(self, value): <NEW_LINE> <INDENT> if self.current_stack is None: <NEW_LINE... | Imagine a (literal) stack of plates If the stack gets too high, it might topple There- fore, in real life, we would likely start a new stack when the previous stack exceeds some threshold Implement a data structure SetOfStacks that mimics this SetOf- Stacks should be composed of several stacks, and should create a new ... | 62598f8e45492302aabfc0c2 |
class S3HandlerTestMvLocalS3(S3HandlerBaseTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(S3HandlerTestMvLocalS3, self).setUp() <NEW_LINE> self.session = FakeSession() <NEW_LINE> self.service = self.session.get_service('s3') <NEW_LINE> self.endpoint = self.service.get_endpoint('us-east-1') <NEW_LI... | This class tests the ability to move s3 objects. The move
operation uses a upload then delete. | 62598f8e9b70327d1c57e98a |
class Entity: <NEW_LINE> <INDENT> def __init__(self, entity_id, deep=False): <NEW_LINE> <INDENT> self.data = self.load_entity(entity_id) <NEW_LINE> if deep: <NEW_LINE> <INDENT> self.load_dependencies() <NEW_LINE> <DEDENT> <DEDENT> def load_entity(self, entity_id): <NEW_LINE> <INDENT> entity = list(get_entities([entity_... | Represents a Wikidata entity (Item/Property) | 62598f8e10dbd63aa1c707a5 |
class mysqlIMDBPipeline(storeIMDB): <NEW_LINE> <INDENT> def process_item(self, item, spider): <NEW_LINE> <INDENT> if spider.name in ['coming_movie', 'top_movie']: <NEW_LINE> <INDENT> self.store(item, spider) <NEW_LINE> <DEDENT> return item | docstring for mysqlIMDBPipeline | 62598f8e6fece00bbaccb578 |
class Trip(models.Model): <NEW_LINE> <INDENT> trip_text = models.CharField(max_length=200, blank=True) <NEW_LINE> trip_date = models.DateField('Tour date') <NEW_LINE> trip_time = models.TimeField('Tour time') <NEW_LINE> create_date = models.DateTimeField(default=timezone.now) <NEW_LINE> guide = model... | This class hold the information regarding Tour date, time and the guide.
Clients will be refernce to those trips | 62598f8e76d4e153a661c804 |
class FindSimilarsResult(wx.Panel): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> super(FindSimilarsResult, self).__init__(parent) <NEW_LINE> self.sizer = wx.BoxSizer(wx.VERTICAL) <NEW_LINE> <DEDENT> def set_data(self, faces, res_tot, size=util.MAX_THUMBNAIL_SIZE): <NEW_LINE> <INDENT> self.sizer.C... | The view for Find Similar result. | 62598f8e851cf427c66b7ead |
class Ridge(): <NEW_LINE> <INDENT> def __init__(self, num_iters=2000, alpha=0.1, beta=0.1): <NEW_LINE> <INDENT> self.num_iters = num_iters <NEW_LINE> self.alpha = alpha <NEW_LINE> self.beta = beta <NEW_LINE> <DEDENT> def _compute_cost(self, X, y, w, beta): <NEW_LINE> <INDENT> m = X.shape[0] <NEW_LINE> J = (1. / (2. * m... | Ridge Regression using Gradient Descent
Using beta for lambda to avoid python conflict | 62598f8e24f1403a926856a5 |
class CustomField(Raw): <NEW_LINE> <INDENT> __schema_type__ = 'string' <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(CustomField, self).__init__(**kwargs) <NEW_LINE> self.positive = kwargs.get('positive', True) <NEW_LINE> <DEDENT> def format(self, value): <NEW_LINE> <INDENT> if not self.vali... | Custom Field base class with validate feature | 62598f8e6e29344779b00242 |
class NotPastManager(models.Manager): <NEW_LINE> <INDENT> def get_query_set(self): <NEW_LINE> <INDENT> return super(NotPastManager, self).get_query_set().filter(Q(end__gt=datetime.now()) | Q(end__isnull=True, start__gt=datetime.now())) | Only returns events that aren't already over. | 62598f8e3617ad0b5ee05d32 |
class GVF(torch.nn.Module): <NEW_LINE> <INDENT> def __init__(self, ): <NEW_LINE> <INDENT> super(GVF, self).__init__() <NEW_LINE> save__init__args(locals()) <NEW_LINE> <DEDENT> def forward(self, variables, target_variables, **kwargs): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @property <NEW_LINE>... | docstring for GVF | 62598f8e925a0f43d25e7c24 |
class BVBaseTest(unittest.TestCase): <NEW_LINE> <INDENT> def assertBVEqual(self, b : BV, size : int, value : int) -> None: <NEW_LINE> <INDENT> self.assertEqual(b.size(), size) <NEW_LINE> self.assertEqual(b.value(), value) <NEW_LINE> <DEDENT> def assertUnOpExpected(self, op_fn : Callable[[BV], BV], expected_fn : Callab... | Base class for BV test cases. | 62598f8ee64d504609df91aa |
class MicrosoftPartnerSdkContractsV1FileInfo(Model): <NEW_LINE> <INDENT> _attribute_map = { 'comment': {'key': 'comment', 'type': 'str'}, 'extension_type': {'key': 'extensionType', 'type': 'str'}, 'file_name_without_extension': {'key': 'fileNameWithoutExtension', 'type': 'str'}, 'file_size': {'key': 'fileSize', 'type':... | Represents file information.
:param comment: Gets or sets a comment associated with the file.
:type comment: str
:param extension_type: Gets or sets file extension.
:type extension_type: str
:param file_name_without_extension: Gets or sets file name.
:type file_name_without_extension: str
:param file_size: Gets or set... | 62598f8ee76e3b2f99fd861f |
class SignatureES(SignatureDatabaseBase): <NEW_LINE> <INDENT> def __init__(self, es, index='images', doc_type='image', timeout='10s', size=100, *args, **kwargs): <NEW_LINE> <INDENT> self.es = es <NEW_LINE> self.index = index <NEW_LINE> self.doc_type = doc_type <NEW_LINE> self.timeout = timeout <NEW_LINE> self.size = si... | Elasticsearch driver for image-match
| 62598f8ee5267d203ee6b505 |
class ECSTaskDefinition(ECSBase): <NEW_LINE> <INDENT> def __init__(self, ctx_node, resource_id=None, client=None, logger=None): <NEW_LINE> <INDENT> ECSBase.__init__(self, ctx_node, resource_id, client, logger) <NEW_LINE> self.type_name = RESOURCE_TYPE <NEW_LINE> self.describe_task_definition_filter = {} <NEW_LINE> <DED... | ECSTaskDefinition interface | 62598f8e16aa5153ce4000f3 |
class ActionSendMessage(object): <NEW_LINE> <INDENT> def __init__(self, action_config): <NEW_LINE> <INDENT> self.add_app_channel = action_config.get('add-app-channel') or False <NEW_LINE> self.add_control_channel = action_config.get('add-control-channel') or False <NEW_LINE> self.channel_id = action_config.get('channel... | Functor that sends some AMI message | 62598f8e8e7ae83300ee8c8f |
class Meta: <NEW_LINE> <INDENT> verbose_name = "StudentDetails" <NEW_LINE> verbose_name_plural = "StudentDetailss" | Meta definition for StudentDetails. | 62598f8e6fb2d068a7693c27 |
class ServiceError(Exception): <NEW_LINE> <INDENT> def __init__(self, message, status_code, request_body=None): <NEW_LINE> <INDENT> super(ServiceError, self).__init__(message) <NEW_LINE> self.status_code = status_code <NEW_LINE> self.request_body = request_body <NEW_LINE> logger = get_logger(self) <NEW_LINE> if request... | Base class for errors in this service. | 62598f8e1f037a2d8b9e3cc9 |
class Solution: <NEW_LINE> <INDENT> def validWordSquare(self, words): <NEW_LINE> <INDENT> words = [list(row) for row in words] <NEW_LINE> return words == [*map(list, zip(*words))] | @param words: a list of string
@return: a boolean | 62598f8ea8ecb03325870df1 |
class PingResponse(AgentMessage): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> handler_class = HANDLER_CLASS <NEW_LINE> message_type = PING_RESPONSE <NEW_LINE> schema_class = "PingResponseSchema" <NEW_LINE> <DEDENT> def __init__(self, *, comment: str = None, **kwargs): <NEW_LINE> <INDENT> super(PingResponse, sel... | Class representing a ping response. | 62598f8ea05bb46b3848a46a |
class BaseController(wsgi.Controller): <NEW_LINE> <INDENT> exclude_attr = [] <NEW_LINE> exception_map = { webob.exc.HTTPUnprocessableEntity: [ exception.UnprocessableEntity, ], webob.exc.HTTPBadRequest: [ exception.BadRequest, ], webob.exc.HTTPNotFound: [ exception.NotFound, instance_models.ModelNotFoundError, ], webob... | Base controller class. | 62598f8e9b70327d1c57e98c |
class PowerAdapter(object): <NEW_LINE> <INDENT> SOURCE_NETWORK = "network" <NEW_LINE> SOURCE_BATTERY = "battery" <NEW_LINE> SPI_CS = 1 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._sense = None <NEW_LINE> self._logger = logging.getLogger(LOG_ADPOWER) <NEW_LINE> self._logger.debug("Power sense on BCM1 creatin... | Determine the source of the power (network or battery) | 62598f8ed7e4931a7ef3bc8c |
class User(models.Model): <NEW_LINE> <INDENT> username = models.CharField(max_length=16) <NEW_LINE> password = models.CharField(max_length=32) <NEW_LINE> role = models.CharField(max_length=16) <NEW_LINE> phone = models.IntegerField(null=True,blank=True,default='12345678910') <NEW_LINE> email = models.EmailField(null=Tr... | 登陆用户表 | 62598f8e5f7d997b871f91d0 |
class releaseControl_result(object): <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.STRING, 'success', 'UTF8', None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstanc... | Attributes:
- success | 62598f8e07d97122c4216898 |
class Meta: <NEW_LINE> <INDENT> model = User | Meta class for user. | 62598f8e498bea3a75a57714 |
class TestSortCodePaymentAuthRequest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def make_instance(self, include_optional): <NEW_LINE> <INDENT> if include_optional : <NEW_LINE> <INDENT> return Sort... | SortCodePaymentAuthRequest unit test stubs | 62598f8e23e79379d538c0ee |
class Patent: <NEW_LINE> <INDENT> def __init__(self, id, publication_reference, main_classification_type, main_classification, title, inventors, abstract_path, description_path, claims_path, assignee): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.publication_reference = publication_reference <NEW_LINE> self.main_cl... | Класс патента | 62598f8ee76e3b2f99fd8620 |
class PinState(): <NEW_LINE> <INDENT> ERR = 0x100 <NEW_LINE> PEMP = 0x200 <NEW_LINE> INT = 0x400 <NEW_LINE> SLCT = 0x800 <NEW_LINE> WAIT = 0x2000 <NEW_LINE> DATAS = 0x4000 <NEW_LINE> ADDRS = 0x8000 <NEW_LINE> RESET = 0x10000 <NEW_LINE> WRITE = 0x20000 <NEW_LINE> SCL = 0x400000 <NEW_LINE> SDA = 0x800000 <NEW_LINE> DXX =... | This is kinda gross, should be a more pythonic way of doing this?
I've verified this works on a few pins, not sure about all of them, d7..d0 work. | 62598f8eac7a0e7691f720f8 |
class SubredditFlair: <NEW_LINE> <INDENT> @cachedproperty <NEW_LINE> def link_templates(self): <NEW_LINE> <INDENT> return SubredditLinkFlairTemplates(self.subreddit) <NEW_LINE> <DEDENT> @cachedproperty <NEW_LINE> def templates(self): <NEW_LINE> <INDENT> return SubredditRedditorFlairTemplates(self.subreddit) <NEW_LINE> ... | Provide a set of functions to interact with a Subreddit's flair. | 62598f8e3539df3088ecbeaa |
class Uniform(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def function(self, x, y, mean): <NEW_LINE> <INDENT> return np.ones_like(x) * mean | class for Gaussian light profile | 62598f8e0383005118f6d2e8 |
class ZoneAdministrative(ActifsModel): <NEW_LINE> <INDENT> code = models.CharField(max_length=4, primary_key=True) <NEW_LINE> nom = models.CharField(max_length=100) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> db_table = 'ref_zoneadministrative' <NEW_LINE> ordering = ['nom'] <NEW_LINE> verbose_name = u'zone administrativ... | Les implantations sont classées par zone administrative pour fins de
ressources humaines et de comptabilité. Pour les implantations
régionales, la zone administrative est équivalente à la région. Pour les
services centraux, la zone administrative est soit "Services centraux
Montréal" ou "Services centraux Paris". | 62598f8e4e696a045264dbfd |
class TestGetIpsFromSender(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testGetIpsFromSender(self): <NEW_LINE> <INDENT> pass | GetIpsFromSender unit test stubs | 62598f8ea4f1c619b294e1d7 |
class Column(object): <NEW_LINE> <INDENT> def __init__(self, column_type, column_schema, packet): <NEW_LINE> <INDENT> self.type = column_type <NEW_LINE> self.name = column_schema["COLUMN_NAME"] <NEW_LINE> self.collation_name = column_schema["COLLATION_NAME"] <NEW_LINE> self.character_set_name = column_schema["CHARACTER... | Definition of a column | 62598f8eec188e330fdf848e |
class newpost(Handler): <NEW_LINE> <INDENT> def render_newpost(self, **kw): <NEW_LINE> <INDENT> self.render("newpost.html", **kw) <NEW_LINE> <DEDENT> def get(self): <NEW_LINE> <INDENT> if self.user: <NEW_LINE> <INDENT> self.render_newpost(pagetitle="new post", items=None, e=None) <NEW_LINE> <DEDENT> else: <NEW_LINE> <I... | Handles authentication and rendering of new post page
Handles the processing of the new post itself | 62598f8ea79ad16197769c55 |
class AnagraficaType(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 = pyxb.namespace.ExpandedName(Namespace, 'AnagraficaType') <NEW_LINE> _X... | Il campo Denominazione è in alternativa ai campi Nome e Cognome | 62598f8e63b5f9789fe84d61 |
class BaseHandler(tornado.web.RequestHandler): <NEW_LINE> <INDENT> def get_current_user(self): <NEW_LINE> <INDENT> user_data = self.get_secure_cookie("user") <NEW_LINE> if not user_data: return None <NEW_LINE> return user_data | docstring for BaseHandler | 62598f8e3cc13d1c6d465357 |
class Group(object): <NEW_LINE> <INDENT> type = 'group' <NEW_LINE> def __init__(self, name="", alias=""): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.alias = alias <NEW_LINE> <DEDENT> def get_Name(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> def get_Alias(self): <NEW_LINE> <INDENT> return se... | classdocs | 62598f8ea17c0f6771d5be28 |
class TestBody39(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testBody39(self): <NEW_LINE> <INDENT> pass | Body39 unit test stubs | 62598f8ec432627299fa2bbc |
class ConstError(cup.err.BaseCupException): <NEW_LINE> <INDENT> def __init__(self, msg=''): <NEW_LINE> <INDENT> msg = 'Cup const error: %s.' % msg <NEW_LINE> cup.err.BaseCupException.__init__(self, msg) | const error | 62598f8e0a50d4780f704fbf |
class ToTensor: <NEW_LINE> <INDENT> def __init__(self, sample_rate=16000, augment=False, tempo_range=(0.85, 1.15), gain_range=(-6, 8)): <NEW_LINE> <INDENT> self.sample_rate = sample_rate <NEW_LINE> self.augment = augment <NEW_LINE> self.tempo_range = tempo_range <NEW_LINE> self.gain_range = gain_range <NEW_LINE> self.s... | Picks tempo and gain uniformly, applies it to the utterance by using sox utility.
Args:
sample_rate (int): the expected sample rate
Returns:
the torch tensor sound. | 62598f8e23849d37ff850caf |
class EncodingLayer(nn.Module): <NEW_LINE> <INDENT> def __init__(self, enc_channels, kernel_size): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.conv = nn.Conv1d(1, enc_channels, kernel_size, stride=kernel_size//2) <NEW_LINE> <DEDENT> def forward(self, x): <NEW_LINE> <INDENT> w = F.relu(self.conv(x)) <NEW_LINE... | A 1D convolutional block that transforms signal in wave form into higher dimension
input shape: [batch, 1, sample]
output shape: [batch, enc_channels, sample/kernel_size]
Args:
enc_channels: int, number of output channels for the encoding convolution
kernel_size: int, length of the encoding filter | 62598f8eb57a9660fecd166d |
class ExportBashEventsRequest(AbstractModel): <NEW_LINE> <INDENT> pass | ExportBashEvents请求参数结构体
| 62598f8e287bf620b62717a8 |
class AccountStatus(BaseEnum): <NEW_LINE> <INDENT> FREE_ACCOUNT = "Free Account" <NEW_LINE> PREMIUM_ACCOUNT = "Premium Account" | Possible account statuses. | 62598f8e435de62698e9b9df |
class LRUDictTransaction(LRUDict): <NEW_LINE> <INDENT> __slots__ = ('transaction', 'counter') <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(LRUDictTransaction, self).__init__(*args, **kwargs) <NEW_LINE> self.transaction = Transaction() <NEW_LINE> self.counter = self.transaction.counter <NEW_... | Dictionary with a size limit and default_factory. (see LRUDict)
It is refreshed when transaction counter is changed. | 62598f8ea8ecb03325870df3 |
class TestMissingBranches(BaseMissingObjectWebService, TestCaseWithFactory): <NEW_LINE> <INDENT> object_type = 'branches' | Test NotFound for webservice branches requests. | 62598f8e009cb60464d0111c |
class remove_patient_args: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRUCT, 'patient', (Patient, Patient.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, patient=None,): <NEW_LINE> <INDENT> self.patient = patient <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBina... | Attributes:
- patient | 62598f8e07f4c71912baf036 |
class User(models.Model): <NEW_LINE> <INDENT> username = attributes.UnicodeAttribute(hash_key=True) <NEW_LINE> password = attributes.UnicodeAttribute() <NEW_LINE> github = attributes.UnicodeAttribute() <NEW_LINE> groups = attributes.UnicodeSetAttribute() <NEW_LINE> created = attributes.UTCDateTimeAttribute(default=date... | this is the model for our users table | 62598f8e45492302aabfc0c6 |
class Movie(): <NEW_LINE> <INDENT> VALID_RATINGS = ["G","PG","PG-13","R"] <NEW_LINE> def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube, release_date): <NEW_LINE> <INDENT> self.title = movie_title <NEW_LINE> self.storyline = movie_storyline <NEW_LINE> self.poster_image_url = poster_image <NE... | This class provides a way to store movie related information | 62598f8ed4950a0f3b110c2e |
class OperaGlobalParserTest(test_lib.ParserTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self._parser = opera.OperaGlobalHistoryParser() <NEW_LINE> <DEDENT> def testParseFile(self): <NEW_LINE> <INDENT> test_file = self._GetTestFilePath(['global_history.dat']) <NEW_LINE> event_queue_consumer = self... | Tests for the Opera Global History parser. | 62598f8e10dbd63aa1c707a9 |
class TwoComposites(object): <NEW_LINE> <INDENT> def __init__(self, x, y, color="red"): <NEW_LINE> <INDENT> assert isinstance(color, str) <NEW_LINE> self.x = ops.convert_to_tensor_or_composite(x) <NEW_LINE> self.y = ops.convert_to_tensor_or_composite(y) <NEW_LINE> self.color = color | A simple value type to test TypeSpec.
Contains two composite tensorstensors (x, y) and a string (color). | 62598f8edc8b845886d531aa |
class HttpMockSequence(object): <NEW_LINE> <INDENT> def __init__(self, iterable): <NEW_LINE> <INDENT> self._iterable = iterable <NEW_LINE> self.follow_redirects = True <NEW_LINE> <DEDENT> def request( self, uri, method="GET", body=None, headers=None, redirections=1, connection_type=None, ): <NEW_LINE> <INDENT> resp, co... | Mock of httplib2.Http
Mocks a sequence of calls to request returning different responses for each
call. Create an instance initialized with the desired response headers
and content and then use as if an httplib2.Http instance.
http = HttpMockSequence([
({'status': '401'}, ''),
({'status': '200'}, '{"access_... | 62598f8e23e79379d538c0f1 |
class BrokenPipeError(ConnectionError): <NEW_LINE> <INDENT> pass | BrokenPipeError. | 62598f8e21a7993f00c65b68 |
class MyQDevice(CoordinatorEntity, LightEntity): <NEW_LINE> <INDENT> def __init__(self, coordinator, device): <NEW_LINE> <INDENT> super().__init__(coordinator) <NEW_LINE> self._device = device <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self._device.name <NEW_LINE> <DEDENT> @prop... | Representation of a MyQ light. | 62598f8e596a897236127869 |
class MacroDefinition(object): <NEW_LINE> <INDENT> def __init__(self, name, arg_names): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._args = tuple(arg_names) <NEW_LINE> self._body = '' <NEW_LINE> self._needNewLine = False <NEW_LINE> <DEDENT> def AppendLine(self, line): <NEW_LINE> <INDENT> if self._needNewLine:... | Holds a macro definition. | 62598f8ea17c0f6771d5be29 |
class Pipeline(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._close_files = [] <NEW_LINE> <DEDENT> def register_file_to_close(self, file): <NEW_LINE> <INDENT> if file is not None and file is not sys.stdin and file is not sys.stdout: <NEW_LINE> <INDENT> self._close_files.append(file) <NEW_LIN... | Processing pipeline that loops over reads and applies modifiers and filters | 62598f8ebe383301e02533f0 |
class Translation(ReadOnly): <NEW_LINE> <INDENT> t = ReadOnlyAttribute(numpy.ndarray, none=False, npdim=1, npshape=(3,), npdtype=float, doc="the translation vector") <NEW_LINE> def __init__(self, t): <NEW_LINE> <INDENT> self.t = t <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_matrix(cls, m): <NEW_LINE> <INDENT> ... | Represents a translation in 3D
The attribute t contains the actual translation vector, which is a numpy
array with three elements. | 62598f8eb5575c28eb712ac3 |
class NotIdError(Exception): <NEW_LINE> <INDENT> pass | Element of the term passed in was not an identifier. | 62598f8ee64d504609df91ac |
class FileFormatTooOld(FileError): <NEW_LINE> <INDENT> pass | Exception raised when a file with a version too old is detected. | 62598f8e7b25080760ed709d |
class zLinePencil(Complex._zLineArray): <NEW_LINE> <INDENT> def __init__(self,zpoint,**kws): <NEW_LINE> <INDENT> Complex._zLineArray.__init__(self,*[zpoint],**kws) <NEW_LINE> self.zpoint=zpoint <NEW_LINE> self.adelta=2*PI/self.density <NEW_LINE> self.update() <NEW_LINE> <DEDENT> def _findSelf(self): <NEW_LINE> <INDENT>... | :constructors:
- zLineArray(zpoint)
- zLinePencil(zpoint)
:returns: array of equidistant lines on the `complex plane`_ and through the given point
:site ref: http://mathworld.wolfram.com/Pencil.html
| 62598f8ee76e3b2f99fd8623 |
class ProcessSharedConnection(SharedConnection): <NEW_LINE> <INDENT> cursorclass = Cursor <NEW_LINE> __id__ = None <NEW_LINE> def __getstate__(self): <NEW_LINE> <INDENT> server_state = { "server_capabilities": self.server_capabilities, "server_charset": self.server_charset, "server_language": self.server_language, "ser... | ProcessSharedConnection can be passed
from a process to another through `Queue` | 62598f8e07f4c71912baf037 |
class TemplateWriterUnittests(unittest.TestCase): <NEW_LINE> <INDENT> def testSortingGroupsFirst(self): <NEW_LINE> <INDENT> tw = template_writer.TemplateWriter(None, None) <NEW_LINE> sorted_list = tw.SortPoliciesGroupsFirst(POLICY_DEFS) <NEW_LINE> self.assertEqual(sorted_list, GROUP_FIRST_SORTED_POLICY_DEFS) <NEW_LINE>... | Unit tests for templater_writer.py. | 62598f8e0a50d4780f704fc2 |
class Detector(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> maybe_download_model() <NEW_LINE> model_path = os.path.join(os.environ['HOME'], ".keras/opencv/face_detector/") <NEW_LINE> model_caffe_path = os.path.join(model_path, "res10_300x300_ssd_iter_140000_fp16.caffemodel") <NEW_LINE> proto_caffe_pat... | Face Detector based on OpenCV's dnn module.
It utilizes the Single Shot Detector (SSD) framework with a ResNet as the base network.
Methods:
+ compute -- Compute bounding boxes from detected faces within an image using OpenCV dnn module.
Attributes:
+ detector -- Caffe model to detect faces. | 62598f8e8da39b475be02dcf |
class Post(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=120) <NEW_LINE> body = models.TextField() <NEW_LINE> post_image = models.ImageField(null=True, blank=True, upload_to="images/") <NEW_LINE> is_allowed = models.BooleanField(default=False) <NEW_LINE> is_rejected = models.BooleanField(defaul... | The post class | 62598f8e8a43f66fc4bf1d78 |
@python_2_unicode_compatible <NEW_LINE> class SensorType (models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=255) <NEW_LINE> owner = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return "%s" % (self.name) <NEW_LINE> <DEDENT>... | Типы датчиков
(датчики света, температуры, влажности...) | 62598f8e009cb60464d0111e |
class LoadedLibrary(LoadedTestable): <NEW_LINE> <INDENT> def __init__(self, suites, global_fixtures): <NEW_LINE> <INDENT> LoadedTestable.__init__(self, suites) <NEW_LINE> self.global_fixtures = global_fixtures <NEW_LINE> <DEDENT> def _generate_metadata(self): <NEW_LINE> <INDENT> return LibraryMetadata( **{ 'name': 'Tes... | Wraps a collection of all loaded test suites and
provides utility functions for accessing fixtures. | 62598f8e55399d3f0562610d |
class WinkEggTray(WinkDevice): <NEW_LINE> <INDENT> def __init__(self, device_state_as_json, api_interface, objectprefix="eggtrays"): <NEW_LINE> <INDENT> super(WinkEggTray, self).__init__(device_state_as_json, api_interface, objectprefix=objectprefix) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<... | represents a wink.py egg tray
json_obj holds the json stat at init (if there is a refresh it's updated)
it's the native format for this objects methods | 62598f8e851cf427c66b7eb3 |
class UsbControllerMixin(Controller): <NEW_LINE> <INDENT> @property <NEW_LINE> def out_endpoint(self): <NEW_LINE> <INDENT> if getattr(self, '_out_endpoint', None) is None: <NEW_LINE> <INDENT> self._out_endpoint = self._connect_out_endpoint(self.device) <NEW_LINE> <DEDENT> return self._out_endpoint <NEW_LINE> <DEDENT> d... | An implementation of a Controller type that connects to an OpenXC USB
device.
This class acts as a mixin, and expects ``self.device`` to be an instance
of ``usb.Device``.
TODO bah, this is kind of weird. refactor the relationship between
sources/controllers. | 62598f8eac7a0e7691f720fc |
class UserBlockParameter(MetaBlockParameter): <NEW_LINE> <INDENT> def __init__(self, BlockUsageParameter=None, *args, **kw_args): <NEW_LINE> <INDENT> self._BlockUsageParameter = [] <NEW_LINE> self.BlockUsageParameter = [] if BlockUsageParameter is None else BlockUsageParameter <NEW_LINE> super(UserBlockParameter, self)... | Concrete class intended to obtain a parameter value from a user of the block in the parameter list at the instance level.
| 62598f8e15baa72349461b6d |
class Riddle: <NEW_LINE> <INDENT> full_name: str <NEW_LINE> guild: discord.Guild <NEW_LINE> levels: OrderedDict[str, dict] <NEW_LINE> secret_levels: OrderedDict[str, dict] <NEW_LINE> def __init__(self, riddle: dict, levels: dict, secret_levels: dict): <NEW_LINE> <INDENT> self.full_name = riddle['full_name'] <NEW_LINE> ... | Container for guild's riddle levels and info. | 62598f8e23e79379d538c0f3 |
class OSDiskImage(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'operating_system': {'required': True}, } <NEW_LINE> _attribute_map = { 'operating_system': {'key': 'operatingSystem', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, operating_system: Union[str, "OperatingSystemTypes"], **kwargs ): ... | Contains the os disk image information.
All required parameters must be populated in order to send to Azure.
:ivar operating_system: Required. The operating system of the osDiskImage. Possible values
include: "Windows", "Linux".
:vartype operating_system: str or ~azure.mgmt.compute.v2021_11_01.models.OperatingSystem... | 62598f8e85dfad0860cbf86a |
class MyApp(QtWidgets.QApplication): <NEW_LINE> <INDENT> def event(self, event): <NEW_LINE> <INDENT> if isinstance(event, QtGui.QFileOpenEvent): <NEW_LINE> <INDENT> fname = str(event.file()) <NEW_LINE> if fname and fname != 'pyzo': <NEW_LINE> <INDENT> sys.argv[1:] = [] <NEW_LINE> sys.argv.append(fname) <NEW_LINE> res =... | So we an open .py files on OSX.
OSX is smart enough to call this on the existing process. | 62598f8e8c0ade5d55dc3485 |
class EducationItem(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> app_label = 'mycraze' <NEW_LINE> <DEDENT> school = models.CharField(max_length=200) <NEW_LINE> degree = models.CharField(max_length=100) <NEW_LINE> description = models.CharField(max_length=400) <NEW_LINE> education_section = models.... | This module is the model class that represents an education item within
an education section in user resume.
Refer py:module:: mycraze.models.user.sections.EducationSection
Can be accessed by education_section.education_items. | 62598f8ed6c5a102081e1d37 |
class UserVideoDetail(BaseModel): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> unique_together = ('user', 'video',) <NEW_LINE> <DEDENT> user = models.ForeignKey( settings.AUTH_USER_MODEL, related_name="related_videos", on_delete=models.CASCADE) <NEW_LINE> video = models.ForeignKey(Video, related_name="related_us... | Describes the relationship between a user and a video | 62598f8e24f1403a926856a8 |
class FileExists(WaitableCommand, IcontrolCommand): <NEW_LINE> <INDENT> def __init__(self, filename, *args, **kwargs): <NEW_LINE> <INDENT> super(FileExists, self).__init__(*args, **kwargs) <NEW_LINE> self.filename = filename <NEW_LINE> <DEDENT> def setup(self): <NEW_LINE> <INDENT> ic = self.api <NEW_LINE> try: <NEW_LIN... | Checks the existence of a remote file.
| 62598f8edd821e528d6d8b24 |
class Solution: <NEW_LINE> <INDENT> def sortColors(self, nums): <NEW_LINE> <INDENT> if len(nums) == 0: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> index, left, right = 0, 0, len(nums) - 1 <NEW_LINE> while index <= right: <NEW_LINE> <INDENT> if nums[index] == 0: <NEW_LINE> <INDENT> self.swap(nums, left, index) <NEW_L... | @param nums: A list of integer which is 0, 1 or 2
@return: nothing
@link: http://www.lintcode.com/en/problem/sort-colors/
@author: Egbert Li
@Tag: Facebook | 62598f8e7b25080760ed709f |
class LeNetConvPoolLayer(object): <NEW_LINE> <INDENT> def __init__(self, rng, input, filter_shape, image_shape, poolsize=(1, 2)): <NEW_LINE> <INDENT> assert image_shape[1] == filter_shape[1] <NEW_LINE> self.input = input <NEW_LINE> fan_in = numpy.prod(filter_shape[1:]) <NEW_LINE> fan_out = (filter_shape[0] * numpy.prod... | Pool Layer of a convolutional network | 62598f8e4428ac0f6e658118 |
class VsuClassifier(DataConsumer, DataProducer): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(VsuClassifier, self).__init__(5) <NEW_LINE> self._vsu_candidate_utt = Utterance() <NEW_LINE> self._duration_threshold = 2.0 <NEW_LINE> <DEDENT> def clear_candidate(self): <NEW_LINE> <INDENT> self._vsu_cand... | Classifier for Very Short Utterances.
Edlund, J., Heldner, M., & Pelcé, A. (2009). Prosodic features of
very short utterances in dialogue. In Vainio, M., Aulanko, R., &
Aaltonen, O. (Eds.), Nordic Prosody -- Proceedings of the Xth
Conference, pp. 57--68. Frankfurt am Main: Peter Lang. | 62598f8ecb5e8a47e493bf69 |
class MemoryUsageFuture(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, pid): <NEW_LINE> <INDENT> super(MemoryUsageFuture, self).__init__() <NEW_LINE> self._pid = pid <NEW_LINE> self._usage = [] <NEW_LINE> self._done = threading.Event() <NEW_LINE> self.start() <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <IN... | Continuously sample a process's memory usage for its lifetime.
Example:
future = MemoryUsageFuture(some_pid)
...
usage = future.GetMemoryUsage()
print max(usage)
Note that calls to GetMemoryUsage() will block until the process exits. | 62598f8e01c39578d7f12977 |
class UpdateListRowsInputSet(InputSet): <NEW_LINE> <INDENT> def set_RowsetXML(self, value): <NEW_LINE> <INDENT> super(UpdateListRowsInputSet, self)._set_input('RowsetXML', value) <NEW_LINE> <DEDENT> def set_AccessToken(self, value): <NEW_LINE> <INDENT> super(UpdateListRowsInputSet, self)._set_input('AccessToken', value... | An InputSet with methods appropriate for specifying the inputs to the UpdateListRows
Choreo. The InputSet object is used to specify input parameters when executing this Choreo. | 62598f8eb57a9660fecd1671 |
class AgglomerativeClustering: <NEW_LINE> <INDENT> def __init__(self, X): <NEW_LINE> <INDENT> self.X = X <NEW_LINE> self.n = X.shape[0] <NEW_LINE> self.Ys = {} <NEW_LINE> <DEDENT> def add_clustering(self, Y, name=None): <NEW_LINE> <INDENT> if name is None: name = len(self.Ys) <NEW_LINE> if Y.shape[0] != self.n: <NEW_LI... | Compute Agglomerative Clustering
Usage:
ac = AgglomerativeClustering(X)
ac.add_clustering(Y1)
ac.add_clustering(Y2)
...
Y = ac.compute() | 62598f8ed6c5a102081e1d38 |
class XXX_047: <NEW_LINE> <INDENT> play = Destroy(IN_DECK + CONTROLLED_BY(TARGET)) | Destroy Deck | 62598f8e435de62698e9b9e2 |
class Operations(object): <NEW_LINE> <INDENT> models = _models <NEW_LINE> def __init__(self, client, config, serializer, deserializer): <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._serialize = serializer <NEW_LINE> self._deserialize = deserializer <NEW_LINE> self._config = config <NEW_LINE> <DEDENT> @dist... | Operations 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.iothub.v2020_03_01.models
:param client: Client... | 62598f8e462c4b4f79dbb5f6 |
class TutorUniversity(Base): <NEW_LINE> <INDENT> __tablename__ = 'tutor_university' <NEW_LINE> tutor_id = Column(Integer, ForeignKey('tutor.id'), primary_key=True) <NEW_LINE> university_id = Column(Integer, ForeignKey('university.id'), primary_key=True) <NEW_LINE> remuneration = Column(Float(2)) <NEW_LINE> start_date =... | Represents a period of employment of a :class:'Tutor' at a :class:'University'.
| 62598f8e6fb2d068a7693c2a |
class ubah(expert): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ubah, self).__init__() <NEW_LINE> <DEDENT> def get_b(self, data, last_b): <NEW_LINE> <INDENT> return last_b | Uniform Buy and Hold | 62598f8ebaa26c4b54d4eea8 |
class UUIDType(types.TypeDecorator): <NEW_LINE> <INDENT> impl = types.CHAR <NEW_LINE> @property <NEW_LINE> def python_type(self) -> Type[uuid.UUID]: <NEW_LINE> <INDENT> return uuid.UUID <NEW_LINE> <DEDENT> def process_literal_param(self, value: InputUUID, dialect: Any) -> Optional[str]: <NEW_LINE> <INDENT> raise NotImp... | Platform-independent UUID type.
Uses PostgreSQL's UUID type, otherwise uses
CHAR(32), storing as stringified hex values. | 62598f8ea8ecb03325870df7 |
class EntryError(Exception): <NEW_LINE> <INDENT> pass | Base class for errors in the entry module.
| 62598f8e435de62698e9b9e3 |
class AddRedisLogFilters(Migrate.Step): <NEW_LINE> <INDENT> version = Migrate.Version(200, 0, 0) <NEW_LINE> def cutover(self, dmd): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> ctx = sm.ServiceContext() <NEW_LINE> <DEDENT> except sm.ServiceMigrationError: <NEW_LINE> <INDENT> log.info("Couldn't generate service context,... | Add LogFilters for Redis (ZEN-28092) | 62598f8eb57a9660fecd1672 |
class PSKModem(Modem): <NEW_LINE> <INDENT> def _constellation_symbol(self, i): <NEW_LINE> <INDENT> return cos(2*pi*(i-1)/self.m) + sin(2*pi*(i-1)/self.m)*(0+1j) <NEW_LINE> <DEDENT> def __init__(self, m): <NEW_LINE> <INDENT> self.m = m <NEW_LINE> self.num_bits_symbol = int(log2(self.m)) <NEW_LINE> self.symbol_mapping = ... | Creates a Phase Shift Keying (PSK) Modem object. | 62598f8e6aa9bd52df0d4ac1 |
class LanguageNotFound(ClientServerError): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def from_data(data: dict) -> 'LanguageNotFound': <NEW_LINE> <INDENT> assert 'name' in data <NEW_LINE> return LanguageNotFound(data['name']) <NEW_LINE> <DEDENT> def __init__(self, name: str, *, status_code: int = 404 ) -> None: <NEW_... | Used to indicate that there exists no language registered under a given
name. | 62598f8e507cdc57c63a4983 |
class ExplanationOfBenefitPayment(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = Field("ExplanationOfBenefitPayment", const=True) <NEW_LINE> adjustment: fhirtypes.MoneyType = Field( None, alias="adjustment", title="Payment adjustment for non-Claim issues", description=( "Adjustment to the payment... | Disclaimer: Any field name ends with ``__ext`` doesn't part of
Resource StructureDefinition, instead used to enable Extensibility feature
for FHIR Primitive Data Types.
Payment (if paid).
Payment details for the claim if the claim has been paid. | 62598f8ed4950a0f3b110c30 |
class ImageCitation(object): <NEW_LINE> <INDENT> def __init__(self, work_name, creation_date, licence, adaptation, nearly_identical_files, creator_name=None, creator_pseudonym=None, url='', extra_text='', ignore=False): <NEW_LINE> <INDENT> if not (creator_name or creator_pseudonym): <NEW_LINE> <INDENT> raise ValueError... | Used for attributing each individual work.
Citation includes all related data along with extra requirements by the copyright owner.
NOTE: Assumes the returned text will be displayed with markup enabled. | 62598f8e7cff6e4e811b5609 |
class EgoGNN(Module): <NEW_LINE> <INDENT> def __init__(self, layers, bn_func=None, act_func=tf.nn.relu, dropout=0.0, **kwargs): <NEW_LINE> <INDENT> super(EgoGNN, self).__init__() <NEW_LINE> self.layers = layers <NEW_LINE> self.bn_func = bn_func <NEW_LINE> self.active_func = act_func <NEW_LINE> self.dropout = dropout <N... | Represents `EgoGraph` based GNN models.
Args:
layers: A list, each element is an `EgoLayer`.
bn_func: Batch normalization function for hidden layers' output. Default is
None, which means batch normalization will not be performed.
act_func: Activation function for hidden layers' output.
Default is tf.nn.... | 62598f8eeab8aa0e5d30b96f |
class linkedStrData(baseLinkedData): <NEW_LINE> <INDENT> def __init__(self, array, index, start=0, end=None): <NEW_LINE> <INDENT> baseLinkedData.__init__(self) <NEW_LINE> self.data = array <NEW_LINE> self.idx = index <NEW_LINE> self.start= start <NEW_LINE> self.end = end <NEW_LINE> <DEDENT> def getValue(self): <NEW_L... | @example:
>>> for i in [1]:
... a = ['abc', 'test', 'beef']
... b = linkedStrData(a, 2)
... c = linkedStrData(a, 1, 1)
... print "1", str(b)
... print "2", str(c)
... c.setValue('jomm')
... print "3", a
... b.setAndQuoteValue('ba')
... print "4", a
1 beef
2 est
3 ['abc', 'tjomm', 'be... | 62598f8e6fece00bbaccb580 |
class functions: <NEW_LINE> <INDENT> sine = "SIN" <NEW_LINE> square = "SQU" <NEW_LINE> ramp = "RAMP" <NEW_LINE> pulse = "PULS" <NEW_LINE> triangle = "TRI" <NEW_LINE> noise = "NOIS" <NEW_LINE> prbs = "PRBS" <NEW_LINE> arbitrary = "ARB" <NEW_LINE> arb = arbitrary | Namespace containing the various types of function outputs. | 62598f8e5f7d997b871f91d3 |
class Capability(object): <NEW_LINE> <INDENT> def __init__(self, name, properties, definition, custom_def=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self._properties = properties <NEW_LINE> self.definition = definition <NEW_LINE> self.custom_def = custom_def <NEW_LINE> <DEDENT> def get_properties_objects(se... | TOSCA built-in capabilities type. | 62598f8e55399d3f0562610f |
class Attribute(object): <NEW_LINE> <INDENT> def __init__(self, provider, label, description): <NEW_LINE> <INDENT> is_of_type(Provider, provider) <NEW_LINE> self._provider = provider <NEW_LINE> self._label = label <NEW_LINE> self._description = description <NEW_LINE> <DEDENT> def to_java_attribute(self): <NEW_LINE> <IN... | Creates a Attribute Object
Args:
`provider`: A python provider object
`label`: A string from datasource that user of the importer can use to,
a value, in conjunction with Subjects.
e.g:
`NO2 40 ug/m3 as an annual mean`, which user could provide in a
recipe file in ... | 62598f8e004d5f362081edf4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.