code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class LegacyJsonAdapter(Adapter): <NEW_LINE> <INDENT> def request(self, *args, **kwargs): <NEW_LINE> <INDENT> headers = kwargs.setdefault('headers', {}) <NEW_LINE> headers.setdefault('Accept', 'application/json') <NEW_LINE> try: <NEW_LINE> <INDENT> kwargs['json'] = kwargs.pop('body') <NEW_LINE> <DEDENT> except KeyError... | Make something that looks like an old HTTPClient.
A common case when using an adapter is that we want an interface similar to
the HTTPClients of old which returned the body as JSON as well.
You probably don't want this if you are starting from scratch. | 62598f8fd7e4931a7ef3bca6 |
class GivenAlreadyUsed(ScenarioValidationError): <NEW_LINE> <INDENT> pass | Fixture that implements the Given has been already used. | 62598f8fb57a9660fecd1686 |
class TradeRow(object): <NEW_LINE> <INDENT> def __init__(self, maindeck: MainDeck, cardrepo: CardRepo): <NEW_LINE> <INDENT> self._maindeck: MainDeck = maindeck <NEW_LINE> self._repo: CardRepo = cardrepo <NEW_LINE> self._explorer = None <NEW_LINE> self._cards = [] <NEW_LINE> <DEDENT> @property <NEW_LINE> def available(s... | Presents the cards that players may acquire
Parameters
----------
maindeck : MainDeck
The deck from which the trade row is drawn
cardrepo : CardRepo
The repository from which cards are obtained | 62598f8fb7558d589546323a |
class CallMonitorType(Enum): <NEW_LINE> <INDENT> RING = "RING" <NEW_LINE> CALL = "CALL" <NEW_LINE> CONNECT = "CONNECT" <NEW_LINE> DISCONNECT = "DISCONNECT" | Relevant call types in received lines from call monitor. | 62598f8f004d5f362081edfe |
class TestNatGatewayInformer(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.nat_gateway_resource = ( GLOBAL_MEDIATOR.entities('nat_gateway')[0] ) <NEW_LINE> <DEDENT> def test_nat_gateway_informer_init(self): <NEW_LINE> <INDENT> informer = aws_informer.NatGat... | Basic test cases for NatGatewayInformer. | 62598f8f15fb5d323ce7e936 |
class WorkgroupDiscussionForm(SpecificQuestionForm): <NEW_LINE> <INDENT> type = forms.ModelChoiceField(widget=HiddenInput(), queryset=SpecificQuestionType.objects.filter(type="wg-discuss"), initial=SpecificQuestionType.objects.get(type="wg-discuss")) | Form to create a workgroup discussion | 62598f8f10dbd63aa1c707c1 |
@dataclass(frozen=True) <NEW_LINE> class StoredFileInfo(StoredDatastoreItemInfo): <NEW_LINE> <INDENT> __slots__ = {"formatter", "path", "storageClass", "component", "checksum", "file_size"} <NEW_LINE> storageClassFactory = StorageClassFactory() <NEW_LINE> def __init__( self, formatter: FormatterParameter, path: str, st... | Datastore-private metadata associated with a Datastore file. | 62598f8f82261d6c5272fcd9 |
class ColumnBuilder(object): <NEW_LINE> <INDENT> def __init__(self, max_height): <NEW_LINE> <INDENT> self.x = 0 <NEW_LINE> self.max_height = max_height <NEW_LINE> self.last_column = None <NEW_LINE> self.direction_count = 0 <NEW_LINE> <DEDENT> def create_initial_column(self): <NEW_LINE> <INDENT> self.x = 0 <NEW_LINE> in... | This class holds the state machine for generating columns of the lollercoaster
based on previous columns. Current implementation is a simple state based machine,
but it could easily be migrated to a markov chain or other type. This machine
keeps only the last column in memory along with a count of how many columns in a... | 62598f8f097d151d1a2c0c31 |
class ModuleSetup: <NEW_LINE> <INDENT> def __init__(self, driver: WebDriver) -> None: <NEW_LINE> <INDENT> self.driver: WebDriver = driver <NEW_LINE> <DEDENT> proceed_to_module_setup: Tuple[str, str] = (By.ID, "RobotCalStep_proceedButton") <NEW_LINE> module_setup_text_locator: Tuple[str, str] = ( By.ID, "CollapsibleStep... | All elements and actions for the Module Setup. | 62598f8fac7a0e7691f72112 |
class GreedyParams(Params): <NEW_LINE> <INDENT> def __init__(self,datadir,experimentName,splits,candidate_method,objectness_method, hs=2, og_k=4, og_num_scales=3, objgraph_distancefn=chisquared): <NEW_LINE> <INDENT> Params.__init__(self,datadir,experimentName,candidate_method,objectness_method) <NEW_LINE> self.db = '/f... | See Params base class for explanations of parameters.
og_num_scales specifies multi-scale behavoir of an older idea not considered in current implementations.
og_k
objgraph_distancefn is the default distance function used to define similarity of object graphs. | 62598f8f596a897236127881 |
class StiebelEltron(ClimateDevice): <NEW_LINE> <INDENT> def __init__(self, name, ste_data): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._target_temperature = None <NEW_LINE> self._current_temperature = None <NEW_LINE> self._current_humidity = None <NEW_LINE> self._operation_modes = OPERATION_MODES <NEW_LINE> ... | Representation of a STIEBEL ELTRON heat pump. | 62598f8fb5575c28eb712acf |
class OrcResult(object): <NEW_LINE> <INDENT> def __init__(self, p_res=None): <NEW_LINE> <INDENT> object.__init__(self) <NEW_LINE> self.code = 0x00000000 <NEW_LINE> self.message = "" <NEW_LINE> self.data = "" <NEW_LINE> self.init_res(p_res) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "<code: %x, me... | 处理返回值 | 62598f8f0c0af96317c55f8b |
class getSquareMember_args: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRUCT, 'request', (GetSquareMemberRequest, GetSquareMemberRequest.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, request=None,): <NEW_LINE> <INDENT> self.request = request <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDE... | Attributes:
- request | 62598f8fe64d504609df91b8 |
class Menus(collection.Collection): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def collection_type() -> str: <NEW_LINE> <INDENT> return "menu" <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def collection_types() -> str: <NEW_LINE> <INDENT> return "menus" <NEW_LINE> <DEDENT> def factory_produce(self, api, item_dict): <... | A menu represents an element of the hierarchical boot menu. | 62598f8f07d97122c42168b3 |
class DisbursementTransactionType(object): <NEW_LINE> <INDENT> openapi_types = { 'disbursement_type': 'str', 'sender_info': 'SenderInfo', 'receiver_info': 'ReceiverInfo' } <NEW_LINE> attribute_map = { 'disbursement_type': 'disbursementType', 'sender_info': 'senderInfo', 'receiver_info': 'receiverInfo' } <NEW_LINE> def ... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62598f8f6aa9bd52df0d4ad5 |
class TestDestinyRequestsActionsDestinyCharacterActionRequest(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 testDestinyRequestsActionsDestinyCharacterActionRequest(self): <NEW_LINE> <INDENT> pass | DestinyRequestsActionsDestinyCharacterActionRequest unit test stubs | 62598f8ff7d966606f747be8 |
class RandomRotation(object): <NEW_LINE> <INDENT> def __init__(self, degrees, resample='BILINEAR', expand=False, center=None): <NEW_LINE> <INDENT> if isinstance(degrees, numbers.Number): <NEW_LINE> <INDENT> if degrees < 0: <NEW_LINE> <INDENT> raise ValueError("If degrees is a single number, it must be positive.") <NEW_... | Rotate the image by angle.
Args:
degrees (sequence or float or int): Range of degrees to select from.
If degrees is a number instead of sequence like (min, max), the range of degrees
will be (-degrees, +degrees) clockwise order.
resample ({CV.Image.NEAREST, CV.Image.BILINEAR, CV.Image.BICUBIC},... | 62598f8f0a50d4780f704fd9 |
class Bullet(Sprite): <NEW_LINE> <INDENT> def __init__(self, settings, screen, ship): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.screen = screen <NEW_LINE> self.rect = pg.Rect(0, 0, settings.bullet_width + 5, settings.bullet_height) <NEW_LINE> self.rect.centerx = ship.rect.centerx <NEW_LINE> self.rect.botto... | A class to manage bullets fired from the ship | 62598f8ff8510a7c17d7df7b |
class KNearestNeighbor(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def train(self, X, y): <NEW_LINE> <INDENT> self.X_train = X <NEW_LINE> self.y_train = y <NEW_LINE> <DEDENT> def predict(self, X, k=1, num_loops=0): <NEW_LINE> <INDENT> if num_loops == 0: <NEW_LINE> <INDE... | a kNN classifier with L2 distance | 62598f8f71ff763f4b5e737b |
class _BaseProfileRule(object): <NEW_LINE> <INDENT> _TYPE_REPORT = "report" <NEW_LINE> _TYPE_ASSERT = "assert" <NEW_LINE> def __init__(self, context, field): <NEW_LINE> <INDENT> self._type = None <NEW_LINE> self._role = "error" <NEW_LINE> self._context = context <NEW_LINE> self.field = field <NEW_LINE> self._validate... | Base class for profile rules.
Attributes:
context: The context selector for this rule. This is determined by
linking the rule context label to a selector.
field: The name of the element or attribute for which this rule
applies.
Args:
context: The context selector for this rule. This is det... | 62598f8f29b78933be269ee0 |
class RaiffeisenPlugin(Plugin): <NEW_LINE> <INDENT> def get_parser(self, filename): <NEW_LINE> <INDENT> encoding = self.settings.get('charset', 'cp1252') <NEW_LINE> f = open(filename, 'r', encoding=encoding) <NEW_LINE> parser = RaiffeisenCsvParser(f) <NEW_LINE> parser.statement.account_id = self.settings.get('account',... | Raiffeisenbank (CSV) | 62598f8f76e4537e8c3ef1b7 |
@tests.add_test <NEW_LINE> class ChannelCostTest(RpcTestCommon): <NEW_LINE> <INDENT> name = "channel_cost" <NEW_LINE> def get_module_name(self): <NEW_LINE> <INDENT> return "channel_cost_bench" | Cost of incrementally more channels | 62598f8f8e71fb1e983bb6bb |
class Go(Command): <NEW_LINE> <INDENT> def on_init(self): <NEW_LINE> <INDENT> self.add_argument('direction', help='The direction to go in.') <NEW_LINE> <DEDENT> def func(self, character, args, rest): <NEW_LINE> <INDENT> character.can_move() <NEW_LINE> x = character.location.match_exit(args.direction) <NEW_LINE> if x is... | Go in a specific direction. | 62598f8f76d4e153a661c822 |
class Order_Viewset(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = models.Order.objects.all() <NEW_LINE> serializer_class = serializers.Order_Serializer | Creates the Order_Viewset querys the models from order objects and the seralized data. | 62598f8f7cff6e4e811b561f |
@dataclass <NEW_LINE> class TokenizerState(t.Generic[T, U]): <NEW_LINE> <INDENT> cursor: 'Cursor' <NEW_LINE> token: t.Optional[Token[T, U]] <NEW_LINE> skipped: RuleConfigSet[T, U, bool] <NEW_LINE> ignored: RuleConfigSet[T, U, bool] <NEW_LINE> skip_rule_once: t.Optional[Rule[T, U]] | A checkpoint that can be used to restore the tokenizer to a previous state. | 62598f8fd7e4931a7ef3bca8 |
class TestVigiloPermissionsAddGraph(TestVigiloPermissionsAddMap): <NEW_LINE> <INDENT> _creator = fn.add_graphgroup <NEW_LINE> _type = 'graph' | Test l'ajout de permissions pour le type d'objet "graph". | 62598f8fb57a9660fecd1688 |
class IndentWriter (IndentBase): <NEW_LINE> <INDENT> def __init__ (self, outfile = sys.stdout): <NEW_LINE> <INDENT> IndentBase.__init__ (self) <NEW_LINE> self.outfile = outfile <NEW_LINE> <DEDENT> def _write_raw (self, output): <NEW_LINE> <INDENT> self.outfile.write (output) | An indented text printer. | 62598f8fdc8b845886d531c4 |
class Graph(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.graph = defaultdict(list) <NEW_LINE> <DEDENT> def add_edge(self, vertex, adjacent_vertex): <NEW_LINE> <INDENT> self.graph[vertex].append(adjacent_vertex) <NEW_LINE> <DEDENT> def dfs_iterative(self, start): <NEW_LINE> <INDENT> stack, p... | Represents a graph that maintains an adjacency list | 62598f8ffbf16365ca793cb9 |
class Null: <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): pass <NEW_LINE> def __call__(self, *args, **kwargs): return self <NEW_LINE> def __repr__(self): return "Null( )" <NEW_LINE> @staticmethod <NEW_LINE> def __nonzero__(): return 0 <NEW_LINE> def __getattr__(self, name): return self <NEW_LINE> def __seta... | Null objects always and reliably "do nothing." | 62598f8f004d5f362081edff |
class accompany(Goal): <NEW_LINE> <INDENT> def __init__(self, who): <NEW_LINE> <INDENT> Goal.__init__(self, "stay with someone", self.am_i_with, [self.follow]) <NEW_LINE> self.who=who <NEW_LINE> self.vars=["who"] <NEW_LINE> <DEDENT> def am_i_with(self, me): <NEW_LINE> <INDENT> who=me.map.get(self.who) <NEW_LINE> if who... | Move around staying close to someone. | 62598f8f3539df3088ecbec7 |
class momentdict(collections.defaultdict): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(momentdict, self).__init__(lambda: sympy.Integer(0)) <NEW_LINE> <DEDENT> def __str__(self, sym=str): <NEW_LINE> <INDENT> s = [] <NEW_LINE> p = ' ' <NEW_LINE> if 1 in self: <NEW_LINE> <INDENT> if len(self) > 1: ... | A map detailing how to compute some approximate moment like E[f(x)]
or Var[f(x)]. Keys in the map are either 1 or tuples representing
standard errors scaling factors pre-multiplying the maps' values.
The maps' values should be evaluated using sample means. | 62598f8f0383005118f6d304 |
class BaseProvisioningService(object): <NEW_LINE> <INDENT> def __init__( self, server="", provider="", username="", password="", version=""): <NEW_LINE> <INDENT> super(BaseProvisioningService, self).__init__() <NEW_LINE> self.server = server <NEW_LINE> self._add_scheme_to_server() <NEW_LINE> self.provider = provider <N... | Base for provisioning services
:param endpoint: server to use e.g. https://example.com/
:param provider: provider name
:param username: username
:param password: password
:param version: wsdl version number, defaults to latest version available | 62598f8f0c0af96317c55f8c |
class ModifySecurityPolicyResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.RegistryId = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.RegistryId = params.get("RegistryId") <NEW_LINE> self.RequestId = params.get... | ModifySecurityPolicy返回参数结构体
| 62598f8fac7a0e7691f72114 |
class RelationPrettyLinkColumn(RelationTitleColumn, PrettyLinkColumn): <NEW_LINE> <INDENT> params = {} <NEW_LINE> def target_display(self, obj): <NEW_LINE> <INDENT> return PrettyLinkColumn.getPrettyLink(self, obj) | A column displaying related items with IPrettyLink.getLink | 62598f8f925a0f43d25e7c42 |
class MyghtyHtmlLexer(DelegatingLexer): <NEW_LINE> <INDENT> name = 'HTML+Myghty' <NEW_LINE> aliases = ['html+myghty'] <NEW_LINE> mimetypes = ['text/html+myghty'] <NEW_LINE> def __init__(self, **options): <NEW_LINE> <INDENT> super(MyghtyHtmlLexer, self).__init__(HtmlLexer, MyghtyLexer, **options) | Subclass of the `MyghtyLexer` that highlights unlexed data
with the `HtmlLexer`.
.. versionadded:: 0.6 | 62598f8f24f1403a926856b4 |
class LoginForm(Form): <NEW_LINE> <INDENT> openid = StringField('openid', validators=[DataRequired()]) <NEW_LINE> remember_me = BooleanField('remember_me', default=False) | Simple Login form. | 62598f8fe76e3b2f99fd863d |
class NoopPluggingDriver(plug.PluginSidePluggingDriver): <NEW_LINE> <INDENT> def create_hosting_device_resources(self, context, complementary_id, tenant_id, mgmt_context, max_hosted): <NEW_LINE> <INDENT> return {'mgmt_port': None, 'ports': []} <NEW_LINE> <DEDENT> def get_hosting_device_resources(self, context, id, comp... | This class defines a no-op plugging driver. | 62598f8fd99f1b3c44d052b5 |
class Orgao(orgao_base.metaclass): <NEW_LINE> <INDENT> def __init__(self, **args): <NEW_LINE> <INDENT> super(Orgao, self).__init__(**args) <NEW_LINE> self.documentrest = orgao_base.documentrest <NEW_LINE> <DEDENT> @property <NEW_LINE> def coleta(self): <NEW_LINE> <INDENT> col = orgao_base.metaclass.coleta.__get__(self)... | Classe genérica de órgãos | 62598f8f462c4b4f79dbb60e |
class AM2321: <NEW_LINE> <INDENT> def __init__(self, interface, sensor_address= 0x5c): <NEW_LINE> <INDENT> self.interface = interface <NEW_LINE> self.address = sensor_address <NEW_LINE> self.temperature = -1000.0 <NEW_LINE> self.humidity = -1 <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> return self <NEW... | AM2321 temperature and humidity sensor class.
:param interface: I2C communication interface.
:type interface: :class:`IoTPy.pyuper.i2c.I2C`
:param sensor_address: AM2321 sensor I2C address. Optional, default 0x5C (92).
:type sensor_address: int | 62598f8f6fb2d068a7693c36 |
class AbstractBaseFilter(hxl.model.Dataset): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> def __init__(self, source): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.source = source <NEW_LINE> self._filtered_column_cache = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def is_cached(self): <NEW_LINE... | Abstract base class for composable filters.
This is the base class for all filters. A B{filter} is like a
L{hxl.model.Dataset}, except that it uses another dataset as its source, and
performs some kind of transformation on it before producing its
output.
This class stores the upstream source, and provides a
L{filter_... | 62598f8fbaa26c4b54d4eec0 |
class ExpressRoutePortListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[ExpressRoutePort]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["ExpressRoutePort"]] = None, next_link: Optional[str] = ... | Response for ListExpressRoutePorts API service call.
:param value: A list of ExpressRoutePort resources.
:type value: list[~azure.mgmt.network.v2018_11_01.models.ExpressRoutePort]
:param next_link: The URL to get the next set of results.
:type next_link: str | 62598f8f8e71fb1e983bb6bd |
class CsvScenarioSource(ScenarioSource): <NEW_LINE> <INDENT> def __init__(self, filepath, delimiter=",", quotechar="\""): <NEW_LINE> <INDENT> self.filepath = filepath <NEW_LINE> self.delimiter = delimiter <NEW_LINE> self.quotechar = quotechar <NEW_LINE> <DEDENT> def get_scenarios(self): <NEW_LINE> <INDENT> assert path.... | Pulls scenarios from a CSV. The first row is assumed to contain headers, giving the names of each column. These determine the elements of the Civet command into which each member of any given row below the first is interpolated.
Attributes:
filepath: The path to the CSV file. Can be relative.
delimiter: The... | 62598f8f38b623060ffa8c91 |
class Initiator(Model): <NEW_LINE> <INDENT> _attrs = { 'durable-id': '', 'nickname': '', 'discovered': '', 'mapped': '', 'profile': '', 'profile-numeric': '', 'host-bus-type': '', 'host-bus-type-numeric': '', 'id': '', 'host-id': '', 'host-key': '', 'host-port-bits-a': '', 'host-port-bits-b': '', } | Class to represent the initiator model from the ME4 API
https://www.dell.com/support/manuals/us/en/04/powervault-me4012/me4_series_cli_pub/initiator?guid=guid-cedb2c5c-bdc6-4e0b-85fb-669cda536a46&lang=en-us | 62598f8f656771135c489288 |
class StaticField(FixedSizeField): <NEW_LINE> <INDENT> def __init__(self, val) -> None: <NEW_LINE> <INDENT> self.val = grup(val) <NEW_LINE> super().__init__(len(self.val)) <NEW_LINE> <DEDENT> def text(self, _) -> str: <NEW_LINE> <INDENT> return self.val <NEW_LINE> <DEDENT> def revert(self, txtval) -> str: <NEW_LINE> <I... | Just a fixed value ABCD -> ABCD | 62598f8f45492302aabfc0e1 |
class Measurer(object): <NEW_LINE> <INDENT> def __init__(self, backend, stat_name): <NEW_LINE> <INDENT> self.backend = backend <NEW_LINE> self.stat_name = stat_name <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> self.t0 = time.time() <NEW_LINE> return self <NEW_LINE> <DEDENT> def __exit__(self, type, valu... | Context manager for measuring times | 62598f8fdc8b845886d531c6 |
class ExampleCharacter(Character): <NEW_LINE> <INDENT> pass | The Character is like any normal Object (see example/object.py for
a list of properties and methods), except it actually implements
some of its hook methods to do some work:
at_basetype_setup - always assigns the default_cmdset to this object type
(important!)sets locks so character cannot be picked up... | 62598f8f5f7d997b871f91df |
class model_instance(): <NEW_LINE> <INDENT> def __init__(self, nX=18, F=10, G=10, alpha=1, gamma=1): <NEW_LINE> <INDENT> self.nX = nX <NEW_LINE> self.M = 2*nX <NEW_LINE> self.F = F <NEW_LINE> self.G = G <NEW_LINE> self.alpha = alpha <NEW_LINE> self.gamma = gamma <NEW_LINE> self.x0 = np.eye(self.M)[0] <NEW_LINE> <DEDENT... | Use OOP to facilitate having multiple parameter settings simultaneously. | 62598f8fa8ecb03325870e0f |
class Image_Single_FigureGeometry: <NEW_LINE> <INDENT> def __init__(self,seq_plotter): <NEW_LINE> <INDENT> self.figsize_points = seq_plotter.data[0].imagesize_points <NEW_LINE> self.axes_boxes = [[0, 0, 1, 1]] | Class for single plot figures, sets:
figure size,
axes positions, | 62598f8fd4950a0f3b110c3c |
class Registro1105(Registro): <NEW_LINE> <INDENT> campos = [ CampoFixo(1, 'REG', '1105'), Campo(2, 'COD_MOD'), Campo(3, 'SERIE'), CampoNumerico(4, 'NUM_DOC'), CampoChaveEletronica(5, 'CHV_NFE'), CampoData(6, 'DT_DOC'), Campo(7, 'COD_ITEM'), ] <NEW_LINE> nivel = 3 | DOCUMENTOS FISCAIS DE EXPORTAÇÃO | 62598f8f82261d6c5272fcdb |
class DescribeDBBackupsResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.BackupList = None <NEW_LINE> self.TotalCount = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("BackupList") is not None: <NEW_LINE... | DescribeDBBackups response structure.
| 62598f8fa17c0f6771d5be44 |
class Config: <NEW_LINE> <INDENT> NEWSHIGHLIGHT_API_BASE_URL = 'https://newsapi.org/v2/sources?category={}&apiKey={}' <NEW_LINE> NEWSHIGHLIGHT_API_KEY = os.environ.get('NEWSHIGHLIGHT_API_KEY') | General configuration parent class | 62598f8f498bea3a75a57732 |
class InvalidPosition(Exception): <NEW_LINE> <INDENT> pass | Raised when a position is specified that does not fit on the table | 62598f8f004d5f362081ee00 |
class TestType: <NEW_LINE> <INDENT> def test_method_lookup(self, simple, timer, N): <NEW_LINE> <INDENT> obj = simple.Foo() <NEW_LINE> with timer: <NEW_LINE> <INDENT> for i in range(N): <NEW_LINE> <INDENT> obj.noargs <NEW_LINE> <DEDENT> <DEDENT> <DEDENT> def test_noargs(self, simple, timer, N): <NEW_LINE> <INDENT> obj =... | Compares the performance of operations on types.
The kinds of type used are:
* cpy: a static type
* hpy: a heap type (HPy only has heap types)
The type is named `simple.Foo` in both cases. | 62598f8fcad5886f8bdc4e91 |
@register_scenario <NEW_LINE> class ExportPolicyMedAdd(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def boot(env): <NEW_LINE> <INDENT> lookup_scenario('ImportPolicy').boot(env) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def setup(env): <NEW_LINE> <INDENT> g1 = env.g1 <NEW_LINE> e1 = env.e1 <NEW_LINE> q1 = en... | No.29 med add action export-policy test
-------------------------------
e1 ->(med=300)-> | -> q1-rib -> q1-adj-rib-out | ->(med=300)-> q1
| |
| -> q2-rib -> q2-adj-rib-out | ->(med=300+100)-> q2
| apply acti... | 62598f8fdd821e528d6d8b3d |
class CartUpdateView(View): <NEW_LINE> <INDENT> def post(self, request): <NEW_LINE> <INDENT> sku_id = request.POST.get("sku_id") <NEW_LINE> sku_count = self.request.POST.get("count") <NEW_LINE> if not all([sku_id, sku_count]): <NEW_LINE> <INDENT> return JsonResponse({"code": 2, "message": "参数错误"}) <NEW_LINE> <DEDENT> t... | 购物车更新 | 62598f8f7b25080760ed70b8 |
class AddCollectionForm(forms.Form): <NEW_LINE> <INDENT> title = forms.CharField(required=True, max_length=SMAX) <NEW_LINE> description = forms.CharField(required=True, max_length=LMAX, widget=forms.Textarea()) <NEW_LINE> notify = forms.BooleanField(initial=True, required=False) <NEW_LINE> def save(self, user, question... | This form's save() method should be called with the list (queryset)
of question objects that should be saved with it. The calling view
(add_collection) currently determines this from the questions nrs
stored in the session | 62598f8f3cc13d1c6d465375 |
class OpenedClosedIssues(DateLimitedReport): <NEW_LINE> <INDENT> name = "Opened and closed issues" <NEW_LINE> headers = ('Opened', 'Closed') <NEW_LINE> def analyze(self): <NEW_LINE> <INDENT> issues = self.filter_by_date_bounds(self.repo.issues, self.start_date, self.end_date) <NEW_LINE> opened = len(self.filter_by_stat... | Number of opened and closed issues | 62598f8f0383005118f6d306 |
class MatchingStrategy(object): <NEW_LINE> <INDENT> draw_for_all_rounds = False <NEW_LINE> def match(self, entry_list): <NEW_LINE> <INDENT> raise NotImplementedError() | Strategy pattern for matching entries into games | 62598f8f07f4c71912baf053 |
class ProviderList(LoginRequiredMixin, SuperuserMixin, TemplateView): <NEW_LINE> <INDENT> template_name = 'superusertools/provider_list.html' <NEW_LINE> def get_context_data(self): <NEW_LINE> <INDENT> return {'providers': providers.registry.get_list()} | A list of all providers page. | 62598f8f73bcbd0ca4bc9e5f |
class RetinaNetFeatureExtractor(ssd_meta_arch.SSDFeatureExtractor): <NEW_LINE> <INDENT> def __init__(self, is_training, depth_multiplier, min_depth, conv_hyperparams_fn, pad_to_multiple, backbone, fpn_scope_name, min_level=3, max_level=7, additional_layer_depth=256, reuse_weights=None, use_explicit_padding=False, use_d... | SSD FPN feature extractor based on Resnet v1 architecture. | 62598f8fec188e330fdf84ac |
class CiscoIetfIpQuery(Query): <NEW_LINE> <INDENT> def __init__(self, snmp_object): <NEW_LINE> <INDENT> self.snmp_object = snmp_object <NEW_LINE> test_oid = '.1.3.6.1.4.1.9.10.86.1.1.3.1.3' <NEW_LINE> super().__init__(snmp_object, test_oid, tags=['layer3']) <NEW_LINE> <DEDENT> def layer3(self): <NEW_LINE> <INDENT> fina... | Class interacts with CISCO-IETF-IP-MIB.
Args:
None
Returns:
None
Key Methods:
supported: Queries the device to determine whether the MIB is
supported using a known OID defined in the MIB. Returns True
if the device returns a response to the OID, False if not.
layer3: Returns all nee... | 62598f8fa79ad16197769c73 |
class DoubleTapContainer(gremlin.base_classes.AbstractContainer): <NEW_LINE> <INDENT> name = "Double Tap" <NEW_LINE> tag = "double_tap" <NEW_LINE> functor = DoubleTapContainerFunctor <NEW_LINE> widget = DoubleTapContainerWidget <NEW_LINE> input_types = [ gremlin.common.InputType.JoystickAxis, gremlin.common.InputType.J... | A container with two actions which are triggered based on the delay
between the taps.
A single tap will run the first action while a double tap will run the
second action. | 62598f8f01c39578d7f12990 |
class Cache(object): <NEW_LINE> <INDENT> class File(object): <NEW_LINE> <INDENT> def __init__(self, path_, id_, modified, length, md5_checksum): <NEW_LINE> <INDENT> self.path = path_ <NEW_LINE> self.id = id_ <NEW_LINE> self.modified = modified <NEW_LINE> self.length = length <NEW_LINE> self.md5_checksum = md5_checksum ... | Controls cache/mapping of local vs remote files.
NB: this class should never be created directly, it should always be
created by a call to static method Cache.load() | 62598f8ff7d966606f747bec |
class DaemonsMixin(object): <NEW_LINE> <INDENT> def verify_hash_type(self): <NEW_LINE> <INDENT> if self.config['hash_type'].lower() in ['md5', 'sha1']: <NEW_LINE> <INDENT> log.warning('IMPORTANT: Do not use {h_type} hashing algorithm! Please set "hash_type" to ' 'sha256 in Salt {d_name} config!'.format( h_type=self.con... | Uses the same functions for all daemons | 62598f8f8e71fb1e983bb6be |
class Robot(Automaton): <NEW_LINE> <INDENT> MOUSE_MOVE_DELAY = 10 <NEW_LINE> _last_button_clicked = -1 <NEW_LINE> _last_click_time = 0 <NEW_LINE> _last_click_position = (-1, -1) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._modifiers = Qt.NoModifier <NEW_LINE> <DEDENT> @property <NEW_LINE> def mouse_position... | A robotic automaton that simulates human gestures. It is very fast, but has limitations.
The known limitations are:
- no mouse drag and drop
- no right clicks on Mac | 62598f8f0a50d4780f704fdd |
class Tool(benchexec.tools.template.BaseTool): <NEW_LINE> <INDENT> REQUIRED_PATHS = ["bin", "helper"] <NEW_LINE> def executable(self): <NEW_LINE> <INDENT> return util.find_executable("bin/fairfuzz-svtestcomp") <NEW_LINE> <DEDENT> def program_files(self, executable): <NEW_LINE> <INDENT> return self._program_files_from_e... | Tool info for FairFuzz (https://https://github.com/carolemieux/afl-rb/tree/testcomp). | 62598f8fe76e3b2f99fd863f |
class DeviceDetails(messages.Message): <NEW_LINE> <INDENT> connectionInfo = messages.MessageField('ConnectionInfo', 1) <NEW_LINE> gceInstanceDetails = messages.MessageField('GceInstanceDetails', 2) | A DeviceDetails object.
Fields:
connectionInfo: A ConnectionInfo attribute.
gceInstanceDetails: A GceInstanceDetails attribute. | 62598f8f23849d37ff850ccd |
class HTTPDownloadView(BaseDownloadView): <NEW_LINE> <INDENT> url = u'' <NEW_LINE> request_kwargs = {} <NEW_LINE> def get_request_factory(self): <NEW_LINE> <INDENT> return requests.get <NEW_LINE> <DEDENT> def get_request_kwargs(self): <NEW_LINE> <INDENT> return self.request_kwargs <NEW_LINE> <DEDENT> def get_url(self):... | Proxy files that live on remote servers. | 62598f8fdd821e528d6d8b3e |
class DPDKtester(Tester): <NEW_LINE> <INDENT> def __init__(self, crb, serializer): <NEW_LINE> <INDENT> self.NAME = "tester" <NEW_LINE> super(DPDKtester, self).__init__(crb, serializer) <NEW_LINE> <DEDENT> def prerequisites(self, perf_test=False): <NEW_LINE> <INDENT> self.kill_all() <NEW_LINE> if not self.skip_setup: <N... | DPDK project class for tester. DTS will call prerequisites function to setup
interface and generate port map. | 62598f8f63d6d428bbee23c6 |
class SearchView(object): <NEW_LINE> <INDENT> def __init__(self, form_class=None, template_name=None, error_redirect=None): <NEW_LINE> <INDENT> self.form_class = form_class <NEW_LINE> self.template_name = template_name <NEW_LINE> if not error_redirect: <NEW_LINE> <INDENT> error_redirect = 'solango_search_error' <NEW_LI... | Class based view object. Makes it easier to create custom views
while keeping the structure of the orginal call.
Issues a select request to the search server and renders any results.
The query term is derived from the incoming URL, while additional
parameters for pagination, faceting, filtering, sorting, etc come
from... | 62598f8f3eb6a72ae038a243 |
@pytest.mark.tier1 <NEW_LINE> class test_whoami(XMLRPC_test): <NEW_LINE> <INDENT> oldpw, newpw = u"Secret1234", u"Secret123" <NEW_LINE> def test_whoami_users(self, krb_user): <NEW_LINE> <INDENT> krb_user.ensure_exists() <NEW_LINE> pwdmod = krb_user.make_update_command({'userpassword': self.oldpw}) <NEW_LINE> pwdmod() <... | Test the 'whoami' plugin. | 62598f8f435de62698e9b9fc |
class RegistrationManager(models.Manager): <NEW_LINE> <INDENT> def activate_user(self, activation_key): <NEW_LINE> <INDENT> profile = self.get_user(activation_key, only_activated=False) <NEW_LINE> if profile and not profile.activated and not profile.activation_key_expired(): <NEW_LINE> <INDENT> user = pro... | The methods defined here provide shortcuts for account creation
and activation (including generation and emailing of activation
keys), and for cleaning out expired inactive accounts. | 62598f8f30dc7b766599f466 |
class Usuario(object): <NEW_LINE> <INDENT> nombre = "" <NEW_LINE> id_usuario = "" <NEW_LINE> @classmethod <NEW_LINE> def get_usuario(cls, nombre_usuario): <NEW_LINE> <INDENT> usuario = [Usuario(r) for r in list(DB.usuarios.find({"nombre":nombre_usuario}))] <NEW_LINE> return usuario[0] <NEW_LINE> <DEDENT> @classmethod <... | Clase Usuario representa un usuario de la app | 62598f8f60cbc95b06363f50 |
class EnvironmentSettingsCompletenessTests(PythonAPICompletenessTestCase, PyFlinkTestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def python_class(cls): <NEW_LINE> <INDENT> return EnvironmentSettings <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def java_class(cls): <NEW_LINE> <INDENT> return "org.apache.flink.tabl... | Tests whether the Python :class:`EnvironmentSettings` is consistent with
Java `org.apache.flink.table.api.EnvironmentSettings`. | 62598f8fe5267d203ee6b525 |
class Firefox(browser.Browser): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> super().__init__(config) <NEW_LINE> self._driver = SharedDriver() | Connects to specified websites using Firefox. Subsequent website visits will use the same window and tab.
| 62598f8f23e79379d538c10e |
class OrderViewset(mixins.ListModelMixin, mixins.RetrieveModelMixin, mixins.CreateModelMixin, mixins.DestroyModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> permission_classes = (IsAuthenticated, IsOwnerOrReadOnly) <NEW_LINE> serializer_class = OrderSerializer <NEW_LINE> def get_queryset(self): <NEW_LINE> <IND... | 订单管理
list:
获取个人订单
delete:
删除订单
create:
新增订单 | 62598f8f8a43f66fc4bf1d94 |
class CredentialResults(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'kubeconfigs': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'kubeconfigs': {'key': 'kubeconfigs', 'type': '[CredentialResult]'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(CredentialResults, self)... | The list credential result response.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar kubeconfigs: Base64-encoded Kubernetes configuration file.
:vartype kubeconfigs:
list[~azure.mgmt.containerservice.v2021_11_01_preview.models.CredentialResult] | 62598f8fb57a9660fecd168c |
class KNXSensorFloatClass(KNXGroupAddress, KNXSensorBaseClass): <NEW_LINE> <INDENT> def __init__(self, hass, config, unit_of_measurement, minimum_sensor_value, maximum_sensor_value): <NEW_LINE> <INDENT> self._unit_of_measurement = unit_of_measurement <NEW_LINE> self._minimum_value = minimum_sensor_value <NEW_LINE> self... | Base Implementation of a 2byte Floating Point KNX Telegram.
Defined in KNX 3.7.2 - 3.10 | 62598f8f8da39b475be02dec |
@BaseSpatialField.register_lookup <NEW_LINE> class RightLookup(GISLookup): <NEW_LINE> <INDENT> lookup_name = 'right' | The 'right' operator returns true if A's bounding box is strictly to the right
of B's bounding box. | 62598f8f004d5f362081ee01 |
class SynchronizerBase(NetworkJobOnDefaultServer): <NEW_LINE> <INDENT> def __init__(self, network: 'Network'): <NEW_LINE> <INDENT> self.asyncio_loop = network.asyncio_loop <NEW_LINE> self._reset_request_counters() <NEW_LINE> NetworkJobOnDefaultServer.__init__(self, network) <NEW_LINE> <DEDENT> def _reset(self): <NEW_LI... | Subscribe over the network to a set of addresses, and monitor their statuses.
Every time a status changes, run a coroutine provided by the subclass. | 62598f8f498bea3a75a57734 |
class TopModelListMixin: <NEW_LINE> <INDENT> def get_queryset(self, *args, **kwargs): <NEW_LINE> <INDENT> context = super().get_queryset(**kwargs) <NEW_LINE> return self.model.objects.filter( is_public=True, ).order_by('-weight') <NEW_LINE> <DEDENT> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = su... | Queryset and context for top list views using ArtAppProfile. | 62598f8f3617ad0b5ee05d55 |
class optionlink(nodes.General, nodes.Element): <NEW_LINE> <INDENT> def __init__(self, text, *args, **kwargs): <NEW_LINE> <INDENT> super(optionlink, self).__init__(text, *args, **kwargs) <NEW_LINE> self.text = text | temporary node created during doctree-read and replaced with a link
during doctree-resolved | 62598f8fd6c5a102081e1d52 |
class GaussianInitialization(Initialization): <NEW_LINE> <INDENT> def __init__(self, epsilon): <NEW_LINE> <INDENT> self.epsilon = epsilon <NEW_LINE> <DEDENT> def __call__(self, images, perturbations): <NEW_LINE> <INDENT> is_cuda = common.torch.is_cuda(perturbations) <NEW_LINE> D = perturbations.size(1) * perturbations.... | Initialization using random noise; does not enforce any constraints, projections should be used instead. | 62598f8f8e7ae83300ee8cb1 |
class BaseEmbeddings(ABC): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def _load_embeddings(self, path: str = None) -> None: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def __getitem__(self, token: str) -> np.ndarray: <NEW_LINE> <INDENT> pass | The base class for all embedding classes. | 62598f8ff7d966606f747bee |
class CustomReport(pycodestyle.StandardReport): <NEW_LINE> <INDENT> results = [] <NEW_LINE> def get_file_results(self): <NEW_LINE> <INDENT> if self._deferred_print: <NEW_LINE> <INDENT> self._deferred_print.sort() <NEW_LINE> for line_number, offset, code, text, _ in self._deferred_print: <NEW_LINE> <INDENT> self.results... | Collect report, and overload the string operator. | 62598f8f23849d37ff850ccf |
class FakeEpicsSignalWithRBV(FakeEpicsSignal): <NEW_LINE> <INDENT> _metadata_keys = EpicsSignalWithRBV._metadata_keys <NEW_LINE> def __init__(self, prefix, **kwargs): <NEW_LINE> <INDENT> super().__init__(prefix + '_RBV', write_pv=prefix, **kwargs) | FakeEpicsSignal with PV and PV_RBV; used in the AreaDetector PV naming
scheme | 62598f8f0c0af96317c55f91 |
class Loader(core.SimpleLoader): <NEW_LINE> <INDENT> dependencies = set([InfoLoader, Downloader]) <NEW_LINE> allow_no_data = True <NEW_LINE> def to_process(self, pdbs, **kwrags): <NEW_LINE> <INDENT> known = set(self._create(qual.Utils).known(has_data=True)) <NEW_LINE> return sorted(known.intersection(pdbs)) <NEW_LINE> ... | The loader to fetch and store quality data for structures.
| 62598f8fe76e3b2f99fd8641 |
class ApiLog(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'api_logs' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> user_id = db.Column(db.Integer, db.ForeignKey('users.id')) <NEW_LINE> name = db.Column(db.String(128)) <NEW_LINE> ts_created = db.Column(db.DateTime, default=datetime.datetime.now) | Products model. | 62598f8f6e29344779b00264 |
class TemplateEngineRegistry(object): <NEW_LINE> <INDENT> factory_arguments = { 'setting_registry': SettingRegistry } <NEW_LINE> def __init__(self, setting_registry): <NEW_LINE> <INDENT> self._setting_registry = setting_registry <NEW_LINE> self._template_loaders = {} <NEW_LINE> self._template_renders = {} <NEW_LINE> se... | A registry of template engines.
Is used by the :meth:`morepath.App.view`, :meth:morepath.App.json`
and :meth:`morepath.App.html` directives for template-based
rendering.
:param setting_registry: a :class:`morepath.settings.SettingRegistry`
instance. | 62598f8f462c4b4f79dbb612 |
class InlineResponse404(object): <NEW_LINE> <INDENT> swagger_types = { 'error': 'str', 'detail': 'list[ERRORUNKNOWN]' } <NEW_LINE> attribute_map = { 'error': 'error', 'detail': 'detail' } <NEW_LINE> def __init__(self, error=None, detail=None): <NEW_LINE> <INDENT> self._error = None <NEW_LINE> self._detail = None <NEW_L... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f8ff8510a7c17d7df7e |
class removeIdentifier_args(object): <NEW_LINE> <INDENT> def __init__(self, authSessionId=None, request=None,): <NEW_LINE> <INDENT> self.authSessionId = authSessionId <NEW_LINE> self.request = request <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.t... | Attributes:
- authSessionId
- request | 62598f8f63b5f9789fe84d81 |
class Magnetic(XYZ): <NEW_LINE> <INDENT> physical_convert = PozyxConstants.MAGNETOMETER_DIV_UT <NEW_LINE> byte_size = 6 <NEW_LINE> data_format = 'hhh' | Container for coordinates in x, y, and z (in uT). | 62598f8fbaa26c4b54d4eec4 |
class PhaseChangerLineAnalyzer(GeneralLineAnalyzer): <NEW_LINE> <INDENT> def __init__(self, exp, idNr=None): <NEW_LINE> <INDENT> GeneralLineAnalyzer.__init__(self, doTimelines=False, doFiles=False) <NEW_LINE> self.idNr=idNr <NEW_LINE> self.exp=re.compile(exp) <NEW_LINE> <DEDENT> def doAnalysis(self,line): <NEW_LINE> <I... | Parses lines for an arbitrary regular expression
and sets the phase if it fits | 62598f8f76e4537e8c3ef1bd |
class FakeModelerMultiband(PeriodicModelerMultiband): <NEW_LINE> <INDENT> def _fit(self, t, y, dy, filts): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def _predict(self, t, filts, period): <NEW_LINE> <INDENT> return np.ones(len(t)) <NEW_LINE> <DEDENT> def _score(self, periods): <NEW_LINE> <INDENT> return np.exp(-np.ab... | Fake periodic modeler for testing PeriodicModelerMultiband base | 62598f8fbde94217f370746e |
class RunnerApiFn(object): <NEW_LINE> <INDENT> _known_urns = {} <NEW_LINE> @abc.abstractmethod <NEW_LINE> def to_runner_api_parameter(self, unused_context): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def register_urn(cls, urn, parameter_type, fn=None): <NEW_LINE> <INDENT> def register(fn): <NE... | Abstract base class that provides urn registration utilities.
A class that inherits from this class will get a registration-based
from_runner_api and to_runner_api method that convert to and from
beam_runner_api_pb2.SdkFunctionSpec.
Additionally, register_pickle_urn can be called from the body of a class
to register ... | 62598f8feab8aa0e5d30b98b |
class powx_fit_func(fit_func_base): <NEW_LINE> <INDENT> dim = 1 <NEW_LINE> param_names = ['A', 'B', 'x0'] <NEW_LINE> A_guess = -2.62681 <NEW_LINE> B_guess = -9.05046 <NEW_LINE> x0_guess = 1.57327 <NEW_LINE> def __call__(self, C, x): <NEW_LINE> <INDENT> from numpy import exp <NEW_LINE> A, B, x0 = self.get_params(C, *(... | Power of x function object.
For use with fit_func function.
Functional form:
C[0] * ((x - C[2])**C[1])
Coefficients:
* C[0] = amplitude
* C[1] = exponent (< 0)
* C[2] = offset | 62598f8f30dc7b766599f468 |
class ShareMoment(BasicTestCase): <NEW_LINE> <INDENT> def testShareMoment(self): <NEW_LINE> <INDENT> self.pagehelper.getPageHome().clickNewsTextView(2) <NEW_LINE> title = self.pagehelper.getPageNewsDetail().getNewsTitle() <NEW_LINE> self.pagehelper.getPageNewsDetail().clickShareBtn() <NEW_LINE> self.pagehelper.getPageS... | 分享微信朋友圈测试用列 | 62598f8f656771135c48928c |
class RichMenu(with_metaclass(ABCMeta, Base)): <NEW_LINE> <INDENT> def __init__(self, size=None, selected=None, name=None, chat_bar_text=None, areas=None, **kwargs): <NEW_LINE> <INDENT> super(RichMenu, self).__init__(**kwargs) <NEW_LINE> self.size = self.get_or_new_from_json_dict(size, RichMenuSize) <NEW_LINE> self.sel... | RichMenu.
https://developers.line.me/en/docs/messaging-api/reference/#rich-menu-object | 62598f8f7cff6e4e811b5625 |
class BFD(Packet): <NEW_LINE> <INDENT> udp_dport = 3784 <NEW_LINE> udp_dport_echo = 3785 <NEW_LINE> udp_sport_min = 49152 <NEW_LINE> udp_sport_max = 65535 <NEW_LINE> bfd_pkt_len = 24 <NEW_LINE> sha1_auth_len = 28 <NEW_LINE> name = "BFD" <NEW_LINE> fields_desc = [ BitField("version", 1, 3), BitEnumField("diag", 0, 5, BF... | BFD protocol layer for scapy | 62598f8fa8ecb03325870e13 |
class FailureDetail(Plugin): <NEW_LINE> <INDENT> score = 600 <NEW_LINE> def options(self, parser, env): <NEW_LINE> <INDENT> parser.add_option( "-d", "--detailed-errors", "--failure-detail", action="store_true", default=env.get('NOSE_DETAILED_ERRORS'), dest="detailedErrors", help="Add detail to error" " output by attemp... | Plugin that provides extra information in tracebacks of test failures. | 62598f8f9b70327d1c57e9ae |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.