code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
@implementer(IStyle) <NEW_LINE> class TestStyle: <NEW_LINE> <INDENT> name = 'test' <NEW_LINE> priority = 10 <NEW_LINE> def apply(self, mailing_list): <NEW_LINE> <INDENT> mailing_list.preferred_language = 'en' <NEW_LINE> <DEDENT> def match(self, mailing_list, styles): <NEW_LINE> <INDENT> styles.append(self)
See `IStyle`.
6259907a796e427e53850176
class Stage(object): <NEW_LINE> <INDENT> def __init__(self, builder, state): <NEW_LINE> <INDENT> self.builder = builder <NEW_LINE> self.stage = builder.stage <NEW_LINE> self._state = state <NEW_LINE> self.active = [] <NEW_LINE> self.queued = [] <NEW_LINE> self.pending = [] <NEW_LINE> self.failed = [] <NEW_LINE> self...
Information about each stage of the build process.
6259907a7c178a314d78e8e9
class GroupMembersSelector(bb.Struct): <NEW_LINE> <INDENT> __slots__ = [ '_group_value', '_group_present', '_users_value', '_users_present', ] <NEW_LINE> _has_required_fields = True <NEW_LINE> def __init__(self, group=None, users=None): <NEW_LINE> <INDENT> self._group_value = None <NEW_LINE> self._group_present = False...
Argument for selecting a group and a list of users. :ivar team.GroupMembersSelector.group: Specify a group. :ivar team.GroupMembersSelector.users: A list of users that are members of ``group``.
6259907aa8370b77170f1dca
class User: <NEW_LINE> <INDENT> userid: str <NEW_LINE> bio: str <NEW_LINE> follows: List[User] <NEW_LINE> tweets: List[Tweet] <NEW_LINE> def __init__(self, id_: str, bio: str) -> None: <NEW_LINE> <INDENT> self.userid = id_ <NEW_LINE> self.bio = bio <NEW_LINE> self.follows = [] <NEW_LINE> self.tweets = [] <NEW_LINE> <DE...
A Twitter user. === Attributes === userid: the userid of this Twitter user. bio: the bio of this Twitter user. follows: a list of the other users who this Twitter user follows. tweets: a list of the tweets that this user has made.
6259907a21bff66bcd724665
class UserIdentifierMissingError(Exception): <NEW_LINE> <INDENT> pass
Indicates that the identifier of a user is missing when the use of unique access token is enabled.
6259907a63b5f9789fe86b63
class SquareDistr(OpDistr): <NEW_LINE> <INDENT> def __init__(self, d): <NEW_LINE> <INDENT> super(SquareDistr, self).__init__([d]) <NEW_LINE> self.d = d <NEW_LINE> <DEDENT> def init_piecewise_pdf(self): <NEW_LINE> <INDENT> self.piecewise_pdf = self.d.get_piecewise_pdf().copySquareComposition() <NEW_LINE> <DEDENT> def pd...
Injective function of random variable
6259907a7cff6e4e811b743c
class AzureTests(TestCase, IntegrationTestsV2): <NEW_LINE> <INDENT> provider_name = "azure" <NEW_LINE> domain = "full4ir.tk" <NEW_LINE> def _test_parameters_overrides(self): <NEW_LINE> <INDENT> return {"resource_group": "dns-test"} <NEW_LINE> <DEDENT> def _filter_headers(self): <NEW_LINE> <INDENT> return [("Authorizati...
TestCase for Google Cloud DNS
6259907a4c3428357761bcb6
class WebServiceCommon(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def stub(cls, reactor): <NEW_LINE> <INDENT> return cls( reactor=reactor, title='[ShinySDR Test Server]', ws_endpoint_string='tcp:99999') <NEW_LINE> <DEDENT> def __init__(self, reactor, title, ws_endpoint_string): <NEW_LINE> <INDENT> self.reacto...
Ugly collection of stuff web resources need which is not noteworthy authority.
6259907aadb09d7d5dc0bf66
class _TRACK(object): <NEW_LINE> <INDENT> def __init__(self, id, prefix, help_tag, help_note): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.prefix = prefix <NEW_LINE> self.help_tag = help_tag <NEW_LINE> self.help_note = help_note <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.id <NEW_LINE> <...
An enum representing the release track of a command or command group.
6259907a4f88993c371f1220
class LowStateCountChecker(Checker): <NEW_LINE> <INDENT> THRESHOLD = 3 <NEW_LINE> def check(self, nex): <NEW_LINE> <INDENT> counts = {} <NEW_LINE> for taxon in nex.data.matrix: <NEW_LINE> <INDENT> counts[taxon] = len([ c for c in nex.data.matrix[taxon] if c not in self.EMPTY_STATES]) <NEW_LINE> <DEDENT> med = statistic...
Checks for taxa with low character states. Returns errors if there are taxa with counts of less than 3 standard deviations
6259907a1b99ca4002290234
class Meals(models.Model): <NEW_LINE> <INDENT> name = models.CharField("Название", max_length=30, db_index=True, unique=True) <NEW_LINE> proteins = models.PositiveSmallIntegerField("Белки", validators=[validators.MaxValueValidator(10000)]) <NEW_LINE> fats = models.PositiveSmallIntegerField("Жиры", validators=[validator...
Блюда
6259907a3617ad0b5ee07b4b
class CommentCacheTTL(BaseCacheTTL): <NEW_LINE> <INDENT> TTL = 30 * 60
评论信息缓存时间,秒
6259907aad47b63b2c5a924d
class SeqAttnMatch(nn.Module): <NEW_LINE> <INDENT> def __init__(self, input_size, identity=False): <NEW_LINE> <INDENT> super(SeqAttnMatch, self).__init__() <NEW_LINE> if not identity: <NEW_LINE> <INDENT> self.linear = nn.Linear(input_size, input_size) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.linear = None <NE...
Given sequences X and Y, match sequence Y to each element in X. * o_i = sum(alpha_j * y_j) for i in X * alpha_j = softmax(y_j * x_i)
6259907abe7bc26dc9252b54
class PAINSFilter(ParentFilter): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.filters_list = self.get_filters_list() <NEW_LINE> <DEDENT> def get_filters_list(self): <NEW_LINE> <INDENT> params_PAINS_A = FilterCatalogParams() <NEW_LINE> params_PAINS_A.AddCatalog(FilterCatalogParams.FilterCatalogs.PAIN...
This will filter a ligand using a PAINS filter. PAINS eliminates of Pan Assay Interference Compounds using substructure a search. This will include PAINS_A, PAINS_B, and PAINS_C filtering. This script relies on the RDKit predefined FilterCatalog. FilterCatalog is maintained by RDKit. If using the PAINS filter pl...
6259907a7047854f46340db9
class PHP(CNF, object): <NEW_LINE> <INDENT> def __init__(self, nof_holes, kval=1, topv=0, verb=False): <NEW_LINE> <INDENT> super(PHP, self).__init__() <NEW_LINE> vpool = IDPool(start_from=topv + 1) <NEW_LINE> var = lambda i, j: vpool.id('v_{0}_{1}'.format(i, j)) <NEW_LINE> for i in range(1, kval * nof_holes + 2): <NEW_...
Pigeonhole principle formula for (kval * nof_holes + 1) pigeons and nof_holes holes.
6259907abf627c535bcb2ecd
class EncoderCNNSmall(nn.Module): <NEW_LINE> <INDENT> def __init__(self, input_dim, hidden_dim, num_objects, act_fn='sigmoid', act_fn_hid='relu'): <NEW_LINE> <INDENT> super(EncoderCNNSmall, self).__init__() <NEW_LINE> self.cnn1 = nn.Conv2d( input_dim, hidden_dim, (10, 10), stride=10) <NEW_LINE> self.cnn2 = nn.Conv2d(hi...
CNN encoder, maps observation to obj-specific feature maps.
6259907a7b180e01f3e49d64
class DownloadEmail(BaseSubstitution): <NEW_LINE> <INDENT> category = _(u'Download') <NEW_LINE> description = _(u'Download e-mail') <NEW_LINE> def safe_call(self): <NEW_LINE> <INDENT> return getattr(self.context, 'email', '')
Download email substitution
6259907a5fcc89381b266e5a
class itkScalarImageKmeansImageFilterID2IUC2(itkImageToImageFilterAPython.itkImageToImageFilterID2IUC2): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor define...
Proxy of C++ itkScalarImageKmeansImageFilterID2IUC2 class
6259907a7d43ff2487428114
class IRamlApiDefinition(Interface): <NEW_LINE> <INDENT> pass
Marker interface for API Definition
6259907a009cb60464d02f3d
class Visualizer(object): <NEW_LINE> <INDENT> def __init__(self, env='default', **kwargs): <NEW_LINE> <INDENT> self.vis = visdom.Visdom(env=env,use_incoming_socket=False, **kwargs) <NEW_LINE> self.index = {} <NEW_LINE> self.log_text = '' <NEW_LINE> <DEDENT> def plot_many(self, d): <NEW_LINE> <INDENT> for k, v in d.item...
封装了visdom的基本操作,但是你仍然可以通过`self.vis.function` 调用原生的visdom接口
6259907aa05bb46b3848be28
class Restaurant(): <NEW_LINE> <INDENT> def __init__(self, restaurant_name, cuisine_type): <NEW_LINE> <INDENT> self.restaurant_name = restaurant_name <NEW_LINE> self.cuisine_type = cuisine_type <NEW_LINE> <DEDENT> def describe_restaurant(self): <NEW_LINE> <INDENT> print(f"Restaurant name : {self.restaurant_name.title()...
class which represents a restaurant.
6259907a23849d37ff852ab7
class Seq2VecEncoder(torch.nn.Module, Registrable): <NEW_LINE> <INDENT> def get_input_dim(self) -> int: <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def get_output_dim(self) -> int: <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_params(cls, params...
A ``Seq2VecEncoder`` is a ``Module`` that takes as input a sequence of vectors and returns a single vector. Input shape: ``(batch_size, sequence_length, input_dim)``; output shape: ``(batch_size, output_dim)``. We add two methods to the basic ``Module`` API: :func:`get_input_dim()` and :func:`get_output_dim()`. You m...
6259907a4428ac0f6e659f2e
class PathInteractor: <NEW_LINE> <INDENT> showverts = True <NEW_LINE> epsilon = 5 <NEW_LINE> def __init__(self, pathpatch): <NEW_LINE> <INDENT> self.ax = pathpatch.axes <NEW_LINE> canvas = self.ax.figure.canvas <NEW_LINE> self.pathpatch = pathpatch <NEW_LINE> self.pathpatch.set_animated(True) <NEW_LINE> x, y = zip(*sel...
An path editor. Press 't' to toggle vertex markers on and off. When vertex markers are on, they can be dragged with the mouse.
6259907a5fdd1c0f98e5f97e
class ProvisionSpec: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.disks = [] <NEW_LINE> <DEDENT> def toElement(self, doc): <NEW_LINE> <INDENT> element = doc.createElement("provision") <NEW_LINE> for disk in self.disks: <NEW_LINE> <INDENT> element.appendChild(disk.toElement(doc)) <NEW_LINE> <DEDENT> ...
Represents a provisioning specification: currently a list of required disks
6259907a44b2445a339b765d
class TestStreams(BaseTest): <NEW_LINE> <INDENT> def test_add_stream(self): <NEW_LINE> <INDENT> response = self.client.post( '/api/v1/streams', data=json.dumps(add_stream), content_type='application/json', headers=self.get_registrar_token()) <NEW_LINE> result = json.loads(response.data.decode()) <NEW_LINE> self.assertE...
Test streams endpoints.
6259907aadb09d7d5dc0bf68
class NumpyFmDemod(): <NEW_LINE> <INDENT> def __init__(self, frequency, sample_rate=1800000, sample_count=8192000, dc_offset=250000): <NEW_LINE> <INDENT> self.freq = int(frequency) <NEW_LINE> self.sample_rate = sample_rate <NEW_LINE> self.sample_count = sample_count <NEW_LINE> self.dc_offset = dc_offset <NEW_LINE> <DED...
Numpy-based FM signal demodulation Based on the great tutorial by Fraida Fund https://witestlab.poly.edu/blog/capture-and-decode-fm-radio/
6259907a60cbc95b06365a6d
class Invalid(DictizationError): <NEW_LINE> <INDENT> error: str <NEW_LINE> def __init__(self, error: str, key: Optional[Any] = None) -> None: <NEW_LINE> <INDENT> self.error = error
Exception raised by some validator, converter and dictization functions when the given value is invalid.
6259907a5166f23b2e244dd7
class LocalsDictNodeNG(LookupMixIn, NodeNG): <NEW_LINE> <INDENT> def qname(self): <NEW_LINE> <INDENT> if self.parent is None: <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> return '%s.%s' % (self.parent.frame().qname(), self.name) <NEW_LINE> <DEDENT> def frame(self): <NEW_LINE> <INDENT> return self <NEW_LINE>...
this class provides locals handling common to Module, Function and Class nodes, including a dict like interface for direct access to locals information
6259907ad268445f2663a85e
class WidgetRedirector: <NEW_LINE> <INDENT> def __init__(self, widget): <NEW_LINE> <INDENT> self.dict = {} <NEW_LINE> self.widget = widget <NEW_LINE> self.tk = tk = widget.tk <NEW_LINE> w = widget._w <NEW_LINE> self.orig = w + "_orig" <NEW_LINE> tk.call("rename", w, self.orig) <NEW_LINE> tk.createcommand(w, self.dispat...
Support for redirecting arbitrary widget subcommands.
6259907b92d797404e38985c
class Node(graphene.relay.Node): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> name = "Node" <NEW_LINE> <DEDENT> name = graphene.String(required=True) <NEW_LINE> family = graphene.String(required=True) <NEW_LINE> @staticmethod <NEW_LINE> def to_global_id(type_, id): <NEW_LINE> <INDENT> print(f"Node.to_global_id: ...
Requirements of all flow nodes
6259907b7d847024c075dddd
class SingleSheet(object): <NEW_LINE> <INDENT> def __init__(self, sheet_id, client_factory=SheetsClient): <NEW_LINE> <INDENT> self.client = client_factory() <NEW_LINE> self.sheet_id = sheet_id <NEW_LINE> <DEDENT> def read_range(self, sheet_range): <NEW_LINE> <INDENT> return self.client.read_range(self.sheet_id, sheet_r...
A handle to a single Google sheet.
6259907b66673b3332c31e00
class LinearIOSystem(InputOutputSystem, StateSpace): <NEW_LINE> <INDENT> def __init__(self, linsys, inputs=None, outputs=None, states=None, name=None): <NEW_LINE> <INDENT> if not isinstance(linsys, StateSpace): <NEW_LINE> <INDENT> raise TypeError("Linear I/O system must be a state space object") <NEW_LINE> <DEDENT> sup...
Input/output representation of a linear (state space) system. This class is used to implementat a system that is a linear state space system (defined by the StateSpace system object).
6259907b60cbc95b06365a6e
class TD_IPSO_3302_02(CoAPTestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> @typecheck <NEW_LINE> def get_stimulis(cls) -> list_of(Value): <NEW_LINE> <INDENT> return [CoAP(type='con', code='get')] <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> self.match('server', CoAP(type='con', code='get', opt=self.uri(...
testcase_id: TD_IPSO_3302_02 uri : http://openmobilealliance.org/iot/lightweight-m2m-lwm2m configuration: LWM2M_CFG_01 objective: - Querying of Digital input state resource (ID = 5500) value of Presence object (ID = 3302) in plain text format pre_conditions: Device is registered at the LWM2M server sequence: - ste...
6259907b442bda511e95da58
class BrowserBotStartLink(GenericWaitPageMixin, HTTPEndpoint): <NEW_LINE> <INDENT> url_pattern = '/browser_bot_start/{admin_secret_code}' <NEW_LINE> def get(self, request): <NEW_LINE> <INDENT> admin_secret_code = request.path_params['admin_secret_code'] <NEW_LINE> if admin_secret_code != otree.common.get_admin_secret_c...
should i move this to another module? because the rest of these views are accessible without password login.
6259907b55399d3f05627f15
class UpdateNetwork(neutronV20.UpdateCommand): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + '.UpdateNetwork') <NEW_LINE> resource = 'network'
Update network's information.
6259907bbf627c535bcb2ed1
class Test_parse_functions_1(unittest.TestCase): <NEW_LINE> <INDENT> def run_checks(self, doc): <NEW_LINE> <INDENT> self.assertEqual(len(doc.xml_children), 1) <NEW_LINE> self.assertEqual(doc.xml_children[0].xml_type, tree.element.xml_type) <NEW_LINE> self.assertEqual(doc.xml_children[0].xml_qname, 'monty') <NEW_LINE> s...
Testing local sources
6259907bdc8b845886d54fbd
class SongSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Song <NEW_LINE> fields = ('id', 'title', 'song_length', 'release_date', 'artist', 'genre', 'album') <NEW_LINE> depth = 1
Class for data serialization of a specific Model: Song
6259907b76e4537e8c3f0f81
class EnableWafWhiteRulesRequest(JDCloudRequest): <NEW_LINE> <INDENT> def __init__(self, parameters, header=None, version="v1"): <NEW_LINE> <INDENT> super(EnableWafWhiteRulesRequest, self).__init__( '/domain/{domain}/wafWhiteRule:enable', 'POST', header, version) <NEW_LINE> self.parameters = parameters
启用WAF白名单
6259907b3346ee7daa338362
class Identity(object): <NEW_LINE> <INDENT> def __init__(self, dataset=None): <NEW_LINE> <INDENT> self.mean = 0 <NEW_LINE> self.std = 1 <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def from_file(path): <NEW_LINE> <INDENT> return Identity() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def from_state(path): <NEW_LINE> <I...
Does nothing.
6259907b91f36d47f2231b90
class TraktAuthCommand(Command): <NEW_LINE> <INDENT> def handle(self): <NEW_LINE> <INDENT> from trakt_scrobbler.trakt_auth import TraktAuth <NEW_LINE> trakt_auth = TraktAuth() <NEW_LINE> if self.option("force"): <NEW_LINE> <INDENT> self.line("Forcing trakt authentication") <NEW_LINE> trakt_auth.clear_token() <NEW_LINE>...
Runs the authentication flow for trakt.tv auth {--f|force : Force run the flow, ignoring already existing credentials.}
6259907bd486a94d0ba2d9ba
class CourseAccessRoleForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta(object): <NEW_LINE> <INDENT> model = CourseAccessRole <NEW_LINE> <DEDENT> email = forms.EmailField(required=True) <NEW_LINE> COURSE_ACCESS_ROLES = [(role_name, role_name) for role_name in REGISTERED_ACCESS_ROLES.keys()] <NEW_LINE> role = forms....
Form for adding new Course Access Roles view the Django Admin Panel.
6259907b23849d37ff852abb
class AnnotateFileRequest(proto.Message): <NEW_LINE> <INDENT> input_config = proto.Field(proto.MESSAGE, number=1, message="InputConfig",) <NEW_LINE> features = proto.RepeatedField(proto.MESSAGE, number=2, message="Feature",) <NEW_LINE> image_context = proto.Field(proto.MESSAGE, number=3, message="ImageContext",) <NEW_L...
A request to annotate one single file, e.g. a PDF, TIFF or GIF file. Attributes: input_config (google.cloud.vision_v1.types.InputConfig): Required. Information about the input file. features (Sequence[google.cloud.vision_v1.types.Feature]): Required. Requested features. image_context (googl...
6259907b01c39578d7f14436
class MetricOutputCallback(BaseModelCallback): <NEW_LINE> <INDENT> def __init__(self, metric_functions: Dict[str, Callable]): <NEW_LINE> <INDENT> super(MetricOutputCallback, self).__init__() <NEW_LINE> self.metric_functions = metric_functions <NEW_LINE> <DEDENT> def on_forward_end(self, module, batch, batch_idx, model_...
Wraps a model to return a dictionary of metrics / diagnostic variables for a given batch.
6259907b1f5feb6acb1645fa
class Rule(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(User) <NEW_LINE> rule_title = models.CharField(max_length=50, blank=True) <NEW_LINE> primary_instrument = models.ForeignKey(Instrument) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.operator
Stores a trading rule, related to :model:`specify.Instrument` and :model:`auth.User`.
6259907b3617ad0b5ee07b51
class SemanticFandomIntent(AskFandomIntentBase): <NEW_LINE> <INDENT> def get_smw_property_for_page(self, wiki_domain: str, page: str, prop: str): <NEW_LINE> <INDENT> self.logger.info("Asking %s SMW for '%s' page %s property", wiki_domain, page, prop) <NEW_LINE> site = self.get_mw_client(wiki_domain) <NEW_LINE> res = si...
A base class for an intent that queries SemanticMediaWiki data
6259907b97e22403b383c904
class BFGS(Optimizer): <NEW_LINE> <INDENT> def __init__(self, model, searchConfig = None): <NEW_LINE> <INDENT> super(BFGS, self).__init__() <NEW_LINE> self.model = model <NEW_LINE> self.searchConfig = searchConfig <NEW_LINE> self.trailsCounter = 0 <NEW_LINE> self.errorCounter = 0 <NEW_LINE> <DEDENT> def findMin(self, x...
quasi-Newton method of Broyden, Fletcher, Goldfarb, and Shanno (BFGS)
6259907b71ff763f4b5e91af
class Reader(object): <NEW_LINE> <INDENT> def __init__(self, handle): <NEW_LINE> <INDENT> self.handle = handle <NEW_LINE> self.seek_entry(0, 2) <NEW_LINE> self.__entry_count = int(self.handle.tell() / ENTRY_STRUCT.size) <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return self.__entry_count <NEW_LINE> <DED...
A reader for a polyglot opening book opened in binary mode. The file has to be seekable. Provides methods to seek entries for specific positions but also ways to efficiently use the opening book like a list. >>> # Get the number of entries >>> len(reader) 92954 >>> # Get the nth entry >>> entry = reader[n] >>> # It...
6259907b32920d7e50bc7a45
class TestFlattenArguments(object): <NEW_LINE> <INDENT> def test_example(self): <NEW_LINE> <INDENT> args = { '--flag': True, '--single': 5, '--multiple': ('test1', 'test2'), '-s': ('a', )} <NEW_LINE> flat = util.flatten_arguments(args) <NEW_LINE> assert flat == [ '--flag', '--multiple', 'test1', 'test2', '--single', '5...
Tests for the flatten_arguments function.
6259907b1b99ca4002290237
class RestView(MethodView): <NEW_LINE> <INDENT> content_type = 'application/json; charset=utf-8' <NEW_LINE> method_decorators = [] <NEW_LINE> def handler_error(self, exception): <NEW_LINE> <INDENT> data = { 'ok': False, 'message': exception.message } <NEW_LINE> result = dumps(data) + '\n' <NEW_LINE> resp = make_respons...
自定义 View 类 json 序列化,异常处理,装饰器支持
6259907b2c8b7c6e89bd51ef
class Cap(Parseable): <NEW_LINE> <INDENT> def __init__(self, name, value=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.value = value or None <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> if self.value: <NEW_LINE> <INDENT> return CAP_VALUE_SEP.join((self.name, self.value)) <NEW_LINE> <DEDENT> ...
Represents a CAP entity as defined in IRCv3.2
6259907b8a349b6b43687c60
class EightPuzzleSearchProblem(search.SearchProblem): <NEW_LINE> <INDENT> def __init__(self,puzzle): <NEW_LINE> <INDENT> self.puzzle = puzzle <NEW_LINE> <DEDENT> def getStartState(self): <NEW_LINE> <INDENT> return puzzle <NEW_LINE> <DEDENT> def isGoalState(self,state): <NEW_LINE> <INDENT> return state.isGoal() <NEW_LIN...
Implementation of a SearchProblem for the Eight Puzzle domain Each state is represented by an instance of an eightPuzzle.
6259907b627d3e7fe0e0888b
class Response(ResponseBase, swob.Response): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> swob.Response.__init__(self, *args, **kwargs) <NEW_LINE> if self.etag: <NEW_LINE> <INDENT> self.headers['etag'] = self.etag <NEW_LINE> <DEDENT> sw_sysmeta_headers = swob.HeaderKeyDict() <NEW_LINE> s...
Similar to the Response class in Swift, but uses our HeaderKeyDict for headers instead of Swift's HeaderKeyDict. This also translates Swift specific headers to OSS headers.
6259907bf548e778e596cf95
class Function: <NEW_LINE> <INDENT> def __init__(self, func): <NEW_LINE> <INDENT> self.func = func <NEW_LINE> <DEDENT> def execute(self, element, debug=False): <NEW_LINE> <INDENT> if not isinstance(element, numbers.Number): <NEW_LINE> <INDENT> raise TypeError("The element must be a number") <NEW_LINE> <DEDENT> result =...
Gives all mathematical funcitons a common interface to react with
6259907b3539df3088ecdc9c
class AnalyzeInterface(Popup): <NEW_LINE> <INDENT> score = ObjectProperty() <NEW_LINE> progression = ObjectProperty() <NEW_LINE> def __init__(self, parent): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._screen = parent <NEW_LINE> self.bind(score=self.setScore) <NEW_LINE> self.bind(progression=self.setProgress...
Analysis pop-up. Starts the analysis and displays its progression. Can't be dismissed before the end of the analysis.
6259907b4c3428357761bcbe
class Solution: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.mp = {} <NEW_LINE> <DEDENT> def isRatelimited(self, timestamp, event, rate, increment): <NEW_LINE> <INDENT> start = rate.find("/") <NEW_LINE> total_time = int(rate[:start]) <NEW_LINE> type = rate[start+1:] <NEW_LINE> time = 1 <NEW_LINE> if...
@param: timestamp: the current timestamp @param: event: the string to distinct different event @param: rate: the format is [integer]/[s/m/h/d] @param: increment: whether we should increase the counter @return: true or false to indicate the event is limited or not
6259907b91f36d47f2231b91
class WESTTool(WESTToolComponent): <NEW_LINE> <INDENT> prog = None <NEW_LINE> usage = None <NEW_LINE> description = None <NEW_LINE> epilog = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(WESTTool,self).__init__() <NEW_LINE> <DEDENT> def add_args(self, parser): <NEW_LINE> <INDENT> westpa.rc.add_args(pars...
Base class for WEST command line tools
6259907b44b2445a339b7660
class ListAssetsRequest(proto.Message): <NEW_LINE> <INDENT> parent = proto.Field( proto.STRING, number=1, ) <NEW_LINE> read_time = proto.Field( proto.MESSAGE, number=2, message=timestamp_pb2.Timestamp, ) <NEW_LINE> asset_types = proto.RepeatedField( proto.STRING, number=3, ) <NEW_LINE> content_type = proto.Field( proto...
ListAssets request. Attributes: parent (str): Required. Name of the organization or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-id]" (such as "projects/my-project-id"), or "projects/[project-number]" ...
6259907b60cbc95b06365a70
class Process(object): <NEW_LINE> <INDENT> def __init__(self, proc, outfile): <NEW_LINE> <INDENT> self.proc = proc <NEW_LINE> self.outfile = outfile <NEW_LINE> self.output = None <NEW_LINE> <DEDENT> def poll(self): <NEW_LINE> <INDENT> return self.proc.poll() <NEW_LINE> <DEDENT> def get_output(self): <NEW_LINE> <INDENT>...
Manages an IWYU process in flight
6259907b5166f23b2e244ddc
class FifeAgent(Base): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Base.__init__(self, layer=object, behaviour=object) <NEW_LINE> <DEDENT> @property <NEW_LINE> def saveable_fields(self): <NEW_LINE> <INDENT> fields = self.fields.keys() <NEW_LINE> fields.remove("layer") <NEW_LINE> fields.remove("behaviour...
Component that stores the values for a fife agent
6259907be1aae11d1e7cf513
class Player: <NEW_LINE> <INDENT> def __init__(self, name, team, url): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.team = team <NEW_LINE> self.url = url <NEW_LINE> self.ppg = 0 <NEW_LINE> self.bpg = 0 <NEW_LINE> self.rpg = 0 <NEW_LINE> <DEDENT> def __lt__(self, other): <NEW_LINE> <INDENT> return self.ppg < oth...
Class to store information on NBA players
6259907b091ae35668706643
class PluggageMeta(type): <NEW_LINE> <INDENT> def __init__(cls, name, bases, dct): <NEW_LINE> <INDENT> factory = get_factory(cls.PLUGGAGE_FACTORY_NAME) <NEW_LINE> object_name = cls.PLUGGAGE_OBJECT_NAME <NEW_LINE> if object_name is None: <NEW_LINE> <INDENT> object_name = cls.__name__ <NEW_LINE> <DEDENT> factory.register...
metaclass for Pluggage derived objects that register the objects with the appropriate registry/factory object
6259907b796e427e53850180
class XY(Line): <NEW_LINE> <INDENT> _dual = True <NEW_LINE> @cached_property <NEW_LINE> def xvals(self): <NEW_LINE> <INDENT> return [val[0] for serie in self.all_series for val in serie.values if val[0] is not None] <NEW_LINE> <DEDENT> @cached_property <NEW_LINE> def yvals(self): <NEW_LINE> <INDENT> return [val[1] for ...
XY Line graph
6259907ba8370b77170f1dd5
class TestXTime: <NEW_LINE> <INDENT> def test_from_python_object(self): <NEW_LINE> <INDENT> time = datetime.time(16, 53, 12) <NEW_LINE> translated = MockXTime().translate(time, topython=False) <NEW_LINE> assert translated.__class__ is suds.sax.date.Time <NEW_LINE> assert str(translated) == "16:53:12" <NEW_LINE> <DEDENT...
suds.xsd.sxbuiltin.XTime.translate() tests. Related Python object <--> string conversion details are tested in a separate date/time related test module. These tests are only concerned with basic translate() functionality.
6259907b3d592f4c4edbc861
class SqlServer(object): <NEW_LINE> <INDENT> def __init__(self, host, user, pwd, db): <NEW_LINE> <INDENT> self.host = host <NEW_LINE> self.user = user <NEW_LINE> self.pwd = pwd <NEW_LINE> self.db = db <NEW_LINE> <DEDENT> def get_connect(self): <NEW_LINE> <INDENT> if not self.db: <NEW_LINE> <INDENT> raise (NameError, '没...
SqlServer工具类
6259907b23849d37ff852abf
class ConnectionMonitorResultProperties(ConnectionMonitorParameters): <NEW_LINE> <INDENT> _validation = { 'source': {'required': True}, 'destination': {'required': True}, } <NEW_LINE> _attribute_map = { 'source': {'key': 'source', 'type': 'ConnectionMonitorSource'}, 'destination': {'key': 'destination', 'type': 'Connec...
Describes the properties of a connection monitor. All required parameters must be populated in order to send to Azure. :param source: Required. Describes the source of connection monitor. :type source: ~azure.mgmt.network.v2018_12_01.models.ConnectionMonitorSource :param destination: Required. Describes the destinati...
6259907bfff4ab517ebcf21f
class KFTQuerySet(models.query.QuerySet): <NEW_LINE> <INDENT> def update(self, **kwargs): <NEW_LINE> <INDENT> raw = kwargs.get('__raw', False) <NEW_LINE> if raw: <NEW_LINE> <INDENT> del kwargs['__raw'] <NEW_LINE> <DEDENT> super(KFTQuerySet, self).update(**kwargs) <NEW_LINE> for instance in self._clone(): <NEW_LINE> <IN...
KFT Query Set. Contains overwritten update methods. Update call post_save signal and pass to them required data. Moreover, added '__raw' flag which works like a 'raw' flag from base_save method.
6259907b2c8b7c6e89bd51f2
class UserCodeDriver(metaclass=ABCMeta): <NEW_LINE> <INDENT> drive: 'Drive' <NEW_LINE> _status: CodeStatus <NEW_LINE> def __init__(self, drive: 'Drive', daemon_controller: 'Controller'): <NEW_LINE> <INDENT> self.drive = drive <NEW_LINE> self.daemon_controller = daemon_controller <NEW_LINE> self.status = CodeStatus.STAR...
User Code Driver class. This class defines a set of functionality that must be implemented in a usercode driver. A usercode driver runs and manages some user code through a uniform interface. This allows us to execute usercode in a variety of formats and environments, depending on the kit.
6259907bbf627c535bcb2ed7
class Pythonista(_Available): <NEW_LINE> <INDENT> def __init__(self, from_version=None, to_version=None, appex=None): <NEW_LINE> <INDENT> super().__init__(from_version, to_version) <NEW_LINE> self._appex = appex <NEW_LINE> <DEDENT> def _available(self): <NEW_LINE> <INDENT> available = super()._available() <NEW_LINE> if...
Decorator to execute function under specific Pythonista versions. By default, function is not executed under application extension. You have to pass ``appex=True`` if you'd like to run some function under appex as well. Return value is return value of decorated function or `None` if Pythonista condition isn't met. E...
6259907b26068e7796d4e346
class MergeUniquesBase(luigi.Task): <NEW_LINE> <INDENT> task_name = 'merge_uniques' <NEW_LINE> src_file = os.path.abspath(__file__) <NEW_LINE> allow_retry = False <NEW_LINE> input_path = luigi.Parameter() <NEW_LINE> input_key = luigi.Parameter() <NEW_LINE> output_path = luigi.Parameter() <NEW_LINE> output_key = luigi.P...
MergeUniques base class
6259907b8a349b6b43687c64
class List(tls.Unicode, TypeMeta): <NEW_LINE> <INDENT> info_text = "Communities.List" <NEW_LINE> class v1_0(tls.Unicode, TypeMeta): <NEW_LINE> <INDENT> info_text = "Communities.List-1.0"
List type
6259907ba8370b77170f1dd7
class ITextTitleWidget(ITextWidget): <NEW_LINE> <INDENT> pass
Marker interface for TextDate
6259907b97e22403b383c909
class PythonObjectToProtoVisitor(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._protos = {} <NEW_LINE> <DEDENT> def GetProtos(self): <NEW_LINE> <INDENT> return self._protos <NEW_LINE> <DEDENT> def __call__(self, path, parent, children): <NEW_LINE> <INDENT> lib_path = 'tensorflow.%s' % path i...
A visitor that summarizes given python objects as protobufs.
6259907b99fddb7c1ca63adb
class NextcloudBinarySensor(BinarySensorEntity): <NEW_LINE> <INDENT> def __init__(self, item): <NEW_LINE> <INDENT> self._name = item <NEW_LINE> self._is_on = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def icon(self): <NEW_LINE> <INDENT> return "mdi:cloud" <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW...
Represents a Nextcloud binary sensor.
6259907b7d847024c075dde5
class Milestone(SourceModel): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _builder(cls, milestones): <NEW_LINE> <INDENT> return instance_builder(cls, milestones) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '<Milestone.id={}.name={}>'.format( self['id'], self['name'] )
This object stores all information about a milestone. Data store in the milestones can be used to configure the ``Parameter`` object. Args: id (str): unique identifier of the milestone name (str): name of the milestone description (str, optional): description of the milestone start_date (datetime.datet...
6259907b21bff66bcd724671
class XMLLink(TargetRelativeLink): <NEW_LINE> <INDENT> def __init__(self, target, tagFactory=tag('a'), text=None): <NEW_LINE> <INDENT> TargetRelativeLink.__init__(self, target, ('.xml',)) <NEW_LINE> self.tagFactory = tagFactory <NEW_LINE> self.text = text <NEW_LINE> <DEDENT> def render(self, context): <NEW_LINE> <INDEN...
An anchor tag linking to the XML feed for a given stats target
6259907b67a9b606de5477aa
class FlatMapLatest(Stream): <NEW_LINE> <INDENT> def __init__(self, stream, method): <NEW_LINE> <INDENT> if not hasattr(method, '__call__'): <NEW_LINE> <INDENT> self.method = lambda x: method <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.method = method <NEW_LINE> <DEDENT> stream.register(self) <NEW_LINE> super()....
Flat map but ignores all but latest stream
6259907bfff4ab517ebcf221
class AddToPrivileged(ServerMessage): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.user = None <NEW_LINE> <DEDENT> def parse_network_message(self, message): <NEW_LINE> <INDENT> _pos, self.user = self.get_object(message, str)
Server code: 91
6259907be1aae11d1e7cf515
class _ARUnblockTweak(_ARaceTweak): <NEW_LINE> <INDENT> _sig_and_attr = (b'OVERRIDE', u'OVERRIDE') <NEW_LINE> def wants_record(self, record): <NEW_LINE> <INDENT> if record._rec_sig != b'RACE': <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> race_sig, race_attr = self._sig_and_attr <NEW_LINE> tweak_data = self.twea...
Shared code of 'races have all X' tweaks.
6259907bbe7bc26dc9252b5a
class ExpectimaxAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> def getAction(self, gameState): <NEW_LINE> <INDENT> action = None <NEW_LINE> if 0 == self.depth: <NEW_LINE> <INDENT> return self.evaluationFunction(gameState) <NEW_LINE> <DEDENT> if self.index == 0: <NEW_LINE> <INDENT> actions = gameState.getLegalActions...
Your expectimax agent (question 4)
6259907b283ffb24f3cf52aa
class Processing: <NEW_LINE> <INDENT> __slots__ = ('contexts', 'calls') <NEW_LINE> def __init__(self, contexts): <NEW_LINE> <INDENT> assert isinstance(contexts, dict), 'Invalid contexts %s' % contexts <NEW_LINE> if __debug__: <NEW_LINE> <INDENT> for key, clazz in contexts.items(): <NEW_LINE> <INDENT> assert isinstance(...
Container for processor's, provides chains for their execution. !!! Attention, never ever use a processing in multiple threads, only one thread is allowed to execute a processing at one time.
6259907b4527f215b58eb6a5
class ComparisonTestFramework(BitcoinTestFramework): <NEW_LINE> <INDENT> def set_test_params(self): <NEW_LINE> <INDENT> self.num_nodes = 2 <NEW_LINE> self.setup_clean_chain = True <NEW_LINE> <DEDENT> def add_options(self, parser): <NEW_LINE> <INDENT> parser.add_option("--testbinary", dest="testbinary", default=os.geten...
Test framework for doing p2p comparison testing Sets up some ufyd binaries: - 1 binary: test binary - 2 binaries: 1 test binary, 1 ref binary - n>2 binaries: 1 test binary, n-1 ref binaries
6259907b7047854f46340dc5
class CommViewSet(CORSMixin, MarketplaceView, GenericViewSet): <NEW_LINE> <INDENT> parser_classes = (FormParser, JSONParser) <NEW_LINE> def patched_get_request(self): <NEW_LINE> <INDENT> return lambda x: self.request <NEW_LINE> <DEDENT> def get_serializer_class(self): <NEW_LINE> <INDENT> original = super(CommViewSet, s...
Some overriding and mixin stuff to adapt other viewsets.
6259907b167d2b6e312b8298
class CoGameEntity: <NEW_LINE> <INDENT> COOFFSET = None <NEW_LINE> def __init__(self, phyworld): <NEW_LINE> <INDENT> self.entity_id = id(self) <NEW_LINE> self.myworld = phyworld <NEW_LINE> self.mybody = None <NEW_LINE> self.myimage = None <NEW_LINE> self.image_idx = 0 <NEW_LINE> self.shift_len = 0 <NEW_LINE> self.front...
Base Class For Game Entity
6259907bdc8b845886d54fc5
class PlayerState: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRUCT, 'location', (Location, Location.thrift_spec), None, ), (2, TType.I32, 'health', None, None, ), (3, TType.I32, 'type', None, None, ), ) <NEW_LINE> def __init__(self, type=None, location=None, health=None,): <NEW_LINE> <INDENT> self.type = typ...
Attributes: - type - location - health
6259907bd268445f2663a863
class STD_ANON_ (pyxb.binding.datatypes.string): <NEW_LINE> <INDENT> _ExpandedName = None <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd', 58, 16) <NEW_LINE> _Documentation = None
An atomic simple type.
6259907b5fdd1c0f98e5f989
class AgentTest(TestCaseImproved): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> mqttclient_mock.MQTTClientMock.mock_reset() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> mqttclient_mock.MQTTClientMock.mock_reset()
Setup and cleanup Agent mock.
6259907b4c3428357761bcc4
class WorkListIndexer(ValueIndexer): <NEW_LINE> <INDENT> indexName = 'worklist-value' <NEW_LINE> @property <NEW_LINE> def value(self): <NEW_LINE> <INDENT> return getattr(self.context, 'worklist', 'undefined')
Indexes work item in the worklist-value index.
6259907b67a9b606de5477ab
class DictionaryLanguageSetter(DefaultProfileSetter): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__('setSpellCheckLanguages', default=[]) <NEW_LINE> <DEDENT> def _find_installed(self, code): <NEW_LINE> <INDENT> local_filename = spell.local_filename(code) <NEW_LINE> if not local_filename: ...
Sets paths to dictionary files based on language codes.
6259907bd486a94d0ba2d9c2
class Type(ClassBasedTraitType): <NEW_LINE> <INDENT> def __init__ (self, default_value=None, klass=None, allow_none=True, **metadata ): <NEW_LINE> <INDENT> if default_value is None: <NEW_LINE> <INDENT> if klass is None: <NEW_LINE> <INDENT> klass = object <NEW_LINE> <DEDENT> <DEDENT> elif klass is None: <NEW_LINE> <INDE...
A trait whose value must be a subclass of a specified class.
6259907b91f36d47f2231b94
class AuthAPI(Resource): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> raise NotAllowed() <NEW_LINE> <DEDENT> def put(self): <NEW_LINE> <INDENT> raise NotAllowed() <NEW_LINE> <DEDENT> def delete(self): <NEW_LINE> <INDENT> raise NotAllowed() <NEW_LINE> <DEDENT> def post(self): <NEW_LINE> <INDENT> obj = request....
Using username and password exchange ext_id
6259907b1f5feb6acb164602
class CommandlineItem(ConfigItem): <NEW_LINE> <INDENT> default = False <NEW_LINE> def __init__(self, default_value=None): <NEW_LINE> <INDENT> super(CommandlineItem, self).__init__(None, default_value)
A special ConfigItem, which is passed through the commandline
6259907b32920d7e50bc7a4d
class Channel(grpc.Channel): <NEW_LINE> <INDENT> def __init__(self, target, options, credentials): <NEW_LINE> <INDENT> self._channel = cygrpc.Channel( _common.encode(target), _options(options), credentials) <NEW_LINE> self._call_state = _ChannelCallState(self._channel) <NEW_LINE> self._connectivity_state = _ChannelConn...
A cygrpc.Channel-backed implementation of grpc.Channel.
6259907b97e22403b383c90c
class MarkEmbeddedHyperlinkReferencesAnonymous(docutils.transforms.Transform): <NEW_LINE> <INDENT> default_priority = 480 <NEW_LINE> def apply(self): <NEW_LINE> <INDENT> for ref in self.document.traverse(docutils.nodes.reference): <NEW_LINE> <INDENT> if ref.get("refname"): <NEW_LINE> <INDENT> continue <NEW_LINE> <DEDEN...
Mark all hyperlink references with embedded targets as ``anonymous``. Hyperlink references with embedded targets [1]_ are syntactically always anonymous references [2]_, but the standard parser only marks them as anonymous if they refer to a separate anonymous target (i.e. don't embed the target using angle brackets) ...
6259907b442bda511e95da5d
class Space(Enum): <NEW_LINE> <INDENT> def to_float(self): <NEW_LINE> <INDENT> if self.value == 1: <NEW_LINE> <INDENT> return 0.0 <NEW_LINE> <DEDENT> elif self.value == 2: <NEW_LINE> <INDENT> return 1.0 <NEW_LINE> <DEDENT> elif self.value == 3: <NEW_LINE> <INDENT> return 2.0 <NEW_LINE> <DEDENT> <DEDENT> def __str__(sel...
Represents a single space by a player or an empty spot
6259907bf9cc0f698b1c5fd2
class GenerateUpdate(superdesk.Command): <NEW_LINE> <INDENT> option_list = [ superdesk.Option('--resource', '-r', dest='resource_name', required=True, help='Resource to update'), superdesk.Option('--global', '-g', dest='global_update', required=False, action='store_true', help='This data update belongs to superdesk cor...
Generate a file where to define a new data update.
6259907b2c8b7c6e89bd51f7
class TestFeatureSelector: <NEW_LINE> <INDENT> def setup_method(self, test_method): <NEW_LINE> <INDENT> self.conf = Conf() <NEW_LINE> self.dt = FeatureSelector(self.conf) <NEW_LINE> self.dt.training_file = self.conf.training_file <NEW_LINE> try: <NEW_LINE> <INDENT> os.remove(self.conf.output_file) <NEW_LINE> <DEDENT> e...
Component Tests
6259907ba8370b77170f1dda
class CopySerializer(serializers.Serializer): <NEW_LINE> <INDENT> config = serializers.JSONField( help_text=_("A JSON document describing sources, destinations, and content to be copied") ) <NEW_LINE> structured = serializers.BooleanField( help_text=_( "Also copy any distributions, components, and releases as needed fo...
A serializer for Content Copy API.
6259907b7047854f46340dc7
class DAG: <NEW_LINE> <INDENT> def __init__(self, tasks, filter_regex='', execute_dependents=False, force_run=False): <NEW_LINE> <INDENT> all_tasks = {} <NEW_LINE> def recurse(task): <NEW_LINE> <INDENT> if task.get_full_id() in all_tasks: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> for dep_task in task.dependencies:...
Directed Acylic Graph. Basically give it a bunch of tasks and it will try to execute them.
6259907b8a349b6b43687c67
class PointAnnotateCallback(TextLabelCallback): <NEW_LINE> <INDENT> _type_name = "point" <NEW_LINE> def __init__(self, pos, text, data_coords=False, coord_system='data', text_args=None, inset_box_args=None): <NEW_LINE> <INDENT> super(PointAnnotateCallback, self).__init__(pos, text, data_coords, coord_system, text_args,...
annotate_point(pos, text, coord_system='data', text_args=None, inset_box_args=None) This callback is deprecated, as it is simply a wrapper around the TextLabelCallback (ie annotate_text()). Please see TextLabelCallback for more information.
6259907b627d3e7fe0e08893
class CasetaPicoRemote(Entity): <NEW_LINE> <INDENT> def __init__(self, pico, data, mac): <NEW_LINE> <INDENT> self._data = data <NEW_LINE> self._name = pico[CONF_NAME] <NEW_LINE> self._area_name = None <NEW_LINE> if CONF_AREA_NAME in pico: <NEW_LINE> <INDENT> self._area_name = pico[CONF_AREA_NAME] <NEW_LINE> self._name ...
Representation of a Lutron Pico remote.
6259907b3d592f4c4edbc864