code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Base64EncodedModelForm(ModelForm): <NEW_LINE> <INDENT> class Meta(object): <NEW_LINE> <INDENT> model = Base64EncodedModel | A standard ModelForm generated from Base64EncodedModel, with all the
default configurations. | 62598edf462c4b4f79db9fa1 |
class StateCreationDialog(CuteDialog): <NEW_LINE> <INDENT> def __init__(self, frame): <NEW_LINE> <INDENT> CuteDialog.__init__(self, frame, title='Creating a root state') <NEW_LINE> self.frame = frame <NEW_LINE> self.simpack = frame.gui_project.simpack <NEW_LINE> State = self.simpack.State <NEW_LINE> vbox = wx.BoxSizer(... | An initial dialog to show when creating a root state.
This is a generic one, used if the simpack doesn't define its own. | 62598edf32920d7e50bc45d5 |
class ArbiterService(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.arbiter = None <NEW_LINE> self.arbiter_process = None <NEW_LINE> self.arbiter_stop_flag = Value('b', False) <NEW_LINE> self.config = Configuration() <NEW_LINE> self.start_time = 0 <NEW_LINE> self.lock = Lock() <NEW_LINE> <DED... | Represents the service of arbiter process management | 62598edf67a9b606de544576 |
class EmployeeManager(models.Manager): <NEW_LINE> <INDENT> def get_queryset(self): <NEW_LINE> <INDENT> return super(EmployeeManager, self). get_queryset().filter(person_type=d['employee']) | Manage Employees query set to only return
person type = employee | 62598edf21bff66bcd7211fa |
class ContentCategory(BaseModel): <NEW_LINE> <INDENT> name = models.CharField(max_length=50, verbose_name='名称') <NEW_LINE> key = models.CharField(max_length=50, verbose_name='类别键名') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> db_table = 'tb_content_category' <NEW_LINE> verbose_name = '广告类别' <NEW_LINE> verbose_name_plura... | 广告内容类别 | 62598edfcb5e8a47e493b44d |
class DataCompressor: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.state = CompressorStates.Ready <NEW_LINE> <DEDENT> def process_data(self): <NEW_LINE> <INDENT> self.state = CompressorStates.Ready <NEW_LINE> <DEDENT> def check_on_status(self): <NEW_LINE> <INDENT> self.state += 1 <NEW_LINE> return s... | Component: Compressor | 62598edf56ac1b37e6300794 |
class ContinuousProcess(Process): <NEW_LINE> <INDENT> def __init__(self, target=None, name=None, args=None, kwargs=None, daemon=None, group=None, init=None, iargs=None, ikwargs=None, alive=None, **kwds): <NEW_LINE> <INDENT> self.init = init <NEW_LINE> self.iargs = iargs or tuple() <NEW_LINE> self.ikwargs = ikwargs or d... | Process that is continuously running a function and closes properly. If you want a single function to run over
and over again give a target function or override the '_run' method. It is not recommended to override the normal
'run' method. | 62598edf23849d37ff84f662 |
class PokemonSpecies(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=50) <NEW_LINE> id_poke_api = models.PositiveIntegerField(unique=True) | Pokémon Species forms the basis for at least one Pokémon | 62598edf4527f215b58e84ac |
class TaskAdd(Resource): <NEW_LINE> <INDENT> def post(self): <NEW_LINE> <INDENT> _type = request.form.get('type') <NEW_LINE> _arg = request.form.get('args') <NEW_LINE> tittle = request.form.get('tittle') <NEW_LINE> if _type and _arg and tittle and _type in ['USER', 'SEARCH']: <NEW_LINE> <INDENT> with get_db() as s: <NE... | @api {post} /task/add Add Task
@apiVersion 0.1.0
@apiGroup Task
@apiName Add Task to database
@apiParam {String} type task type, 'USER' or 'SEARCH'
@apiParam {String} args task arguments
@apiParam {String} tittle task tittle
@apiSuccessExample {json} Success-Response:
{
"message": "success",
"status... | 62598edf8e71fb1e983ba019 |
class MyApplication(AbstractApplication): <NEW_LINE> <INDENT> description = models.TextField(blank=True) | Custom Application model which adds description field | 62598edf498bea3a75a560df |
class UnexpectedArgumentError(_BaseTosmException): <NEW_LINE> <INDENT> pass | Unexpected argument | 62598edfa17c0f6771d5a801 |
class Car: <NEW_LINE> <INDENT> width = None <NEW_LINE> length = None <NEW_LINE> height = None <NEW_LINE> license_plate = None <NEW_LINE> def __init__(self, w, l, h, lic): <NEW_LINE> <INDENT> self.width = w <NEW_LINE> self.length = l <NEW_LINE> self.height = h <NEW_LINE> self.license_plate = lic | Represents a car, within the context of a parking lot | 62598edf3c8af77a43b67206 |
class VaspPotcarFileError(Exception): <NEW_LINE> <INDENT> pass | Exception raised by the VaspPotcarFile class. | 62598edf01c39578d7f11350 |
class GetReport(APIView): <NEW_LINE> <INDENT> permission_classes = (IsAuthenticated,) <NEW_LINE> mandatory_fields = ('site', 'begin_date', 'end_date', 'events') <NEW_LINE> def get(self, request): <NEW_LINE> <INDENT> params = request.GET.dict() <NEW_LINE> for key in self.mandatory_fields: <NEW_LINE> <INDENT> if key not ... | Report Api.
Examples:
http://addnow.dev:8081/api/v1/reports?site=1&begin_date=<timestamp>&end_date=<timestamp>&events=clicks,copies
http://addnow.dev:8081/api/v1/reports?site=1&begin_date=<timestamp>&end_date=<timestamp>&events=clicks,copies&dimensions=browser,copy
http://addnow.dev:8081/api/v1/reports?site=1&begin_dat... | 62598edfac7a0e7691f70abc |
class GcpTransferOperationStatus: <NEW_LINE> <INDENT> IN_PROGRESS = "IN_PROGRESS" <NEW_LINE> PAUSED = "PAUSED" <NEW_LINE> SUCCESS = "SUCCESS" <NEW_LINE> FAILED = "FAILED" <NEW_LINE> ABORTED = "ABORTED" | Class with Google Cloud Transfer operations statuses. | 62598edf85dfad0860cbed3e |
class RunTests(Command): <NEW_LINE> <INDENT> description = 'run tests' <NEW_LINE> user_options = [] <NEW_LINE> def initialize_options(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def finalize_options(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> errno = call(['py.test', '... | Run all tests. | 62598edf67a9b606de544577 |
class BaseModel(Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> database = db <NEW_LINE> <DEDENT> def get_new(self) -> Type['BaseModel']: <NEW_LINE> <INDENT> return type(self).get(self._pk_expr()) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get_first(cls) -> Type['BaseModel']: <NEW_LINE> <INDENT> return... | Базовая модель для классов-таблиц | 62598edfadb09d7d5dc08b70 |
class DevicePlugin(SpreadsPlugin): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> features = () <NEW_LINE> @classmethod <NEW_LINE> def configuration_template(cls): <NEW_LINE> <INDENT> if DeviceFeatures.IS_CAMERA in cls.features: <NEW_LINE> <INDENT> return { "parallel_capture": PluginOption( value=True, docs... | Base class for devices.
Subclass to implement support for different devices. | 62598edfd486a94d0ba2a580 |
class process(object): <NEW_LINE> <INDENT> def __init__(self, name, number): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.number = number <NEW_LINE> self.results = [] <NEW_LINE> self.readMCNPOutput() <NEW_LINE> <DEDENT> def readMCNPOutput(self): <NEW_LINE> <INDENT> F = open('MCNP_{}_Neu_{}.o'.format(self.name,s... | This class reads the MCNP output, extracts necessary information (k_eff & kinetics paramters) | 62598edf0a50d4780f703952 |
class _TemplateGaussianMarkovChain(ExponentialFamily): <NEW_LINE> <INDENT> _moments = GaussianMarkovChainMoments() <NEW_LINE> def show(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def rotate(self, R, inv=None, logdet=None): <NEW_LINE> <INDENT> if inv is not None: <NEW_LINE> <INDENT> invR =... | VMP abstract node for Gaussian Markov chain.
This is a general base class for different Gaussian Markov chain nodes.
Output is Gaussian variables with mean, covariance and one-step
cross-covariance.
self.phi and self.u are defined in a particular way but otherwise the parent
nodes may vary.
Child classes must imple... | 62598edf3eb6a72ae0388bea |
class TournamentSelection(Selection): <NEW_LINE> <INDENT> def __init__(self, tournament_size=2): <NEW_LINE> <INDENT> self.tournament_size = tournament_size <NEW_LINE> <DEDENT> def select(self, population, fitness): <NEW_LINE> <INDENT> all_fits = population.all_fits(fitness) <NEW_LINE> def complete(competitors): <NEW_LI... | Selection operator using Tournament Strategy with tournament size equals
to two by default.
:param tournament_size: Individual number in one tournament
:type tournament_size: int | 62598edf097d151d1a2bf5c8 |
class LazyLookup: <NEW_LINE> <INDENT> def __init__(self, store: 'LazyDict') -> None: <NEW_LINE> <INDENT> self.store = store <NEW_LINE> self.callee_list: List[LazyCallee] = [] <NEW_LINE> <DEDENT> def add_func(self, func: Callable, keys: Sequence, args: Sequence, kwargs: Mapping) -> None: <NEW_LINE> <INDENT> self.callee_... | This class stores the information to do a lazy lookup for a LazyDict. An instance is stored as a placeholder value
for any key that can be lazily looked up. There should be one instance of this class per LazyDict. | 62598edfbd1bec0571e143a0 |
class State: <NEW_LINE> <INDENT> def __init__(self, board, predecessor, move): <NEW_LINE> <INDENT> self.board = board <NEW_LINE> self.predecessor = predecessor <NEW_LINE> self.move = move <NEW_LINE> if predecessor == None: <NEW_LINE> <INDENT> self.num_moves = 0 <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.num_mov... | A class for objects that represent a state in the state-space
search tree of an Eight Puzzle. | 62598edfd7e4931a7ef3a646 |
class Date(Column): <NEW_LINE> <INDENT> db_type = 'date' <NEW_LINE> def to_database(self, value): <NEW_LINE> <INDENT> if value is None: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> d = value if isinstance(value, util.Date) else util.Date(value) <NEW_LINE> return d.days_from_epoch + SimpleDateType.EPOCH_OFFSET_DAYS <N... | Stores a simple date, with no time-of-day
.. versionchanged:: 2.6.0
removed overload of Date and DateTime. DateTime is a drop-in replacement for legacy models
requires C* 2.2+ and protocol v4+ | 62598edfb5575c28eb711fa5 |
class Parser(object): <NEW_LINE> <INDENT> def __init__(self, ioloop, configuration): <NEW_LINE> <INDENT> self._configuration = configuration <NEW_LINE> self._ioloop = ioloop <NEW_LINE> <DEDENT> def parse(self, message, callback): <NEW_LINE> <INDENT> raise NotImplementedError("All Parsers must implement " "'parse(self, ... | Just the basic interface for parsers. | 62598edf8da39b475be01753 |
class ShowPost(BlogHandler): <NEW_LINE> <INDENT> def get(self, post_id): <NEW_LINE> <INDENT> key = db.Key.from_path('Post', int(post_id), parent=blog_key()) <NEW_LINE> post = db.get(key) <NEW_LINE> if not post: <NEW_LINE> <INDENT> self.render('notfound.html') <NEW_LINE> return <NEW_LINE> <DEDENT> comments = Comment.all... | ShowPost: Show Post
Args:
BlogHandler: Blog Handler | 62598edf82261d6c5272f18b |
class UserBalance(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(User, verbose_name='User', on_delete=models.CASCADE, related_name='user_balances') <NEW_LINE> cell_operator = models.ForeignKey(CellOperator, on_delete=models.CASCADE, verbose_name='Cell operator', related_name='user_balances') <NEW_LINE> pho... | User balance model for DB table | 62598edf1b99ca400228e7e1 |
class UpdateStickerSetsOrder(TLObject): <NEW_LINE> <INDENT> __slots__: List[str] = ["order", "masks"] <NEW_LINE> ID = 0xbb2d201 <NEW_LINE> QUALNAME = "types.UpdateStickerSetsOrder" <NEW_LINE> def __init__(self, *, order: List[int], masks: Union[None, bool] = None) -> None: <NEW_LINE> <INDENT> self.order = order <NEW_LI... | This object is a constructor of the base type :obj:`~pyrogram.raw.base.Update`.
Details:
- Layer: ``122``
- ID: ``0xbb2d201``
Parameters:
order: List of ``int`` ``64-bit``
masks (optional): ``bool`` | 62598edf1f037a2d8b9e26af |
class TensorSimilarity: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.initialize() <NEW_LINE> <DEDENT> def initialize(self): <NEW_LINE> <INDENT> module_url = "https://tfhub.dev/google/universal-sentence-encoder/2" <NEW_LINE> embed = hub.Module(module_url) <NEW_LINE> self.session = tf.compat.v1.Sessio... | GUSE text similarity. Have to initialize an instance each time using this.
Have to be closed after usage. | 62598edf60cbc95b063628e5 |
class APIFramework: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def make_get_request(self, url, params=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> response = requests.get(url,params = params) <NEW_LINE> response.raise_for_status() <NEW_LINE> <DEDENT> except HTTPError as ... | contains all necessary methods to make url requests | 62598edf3539df3088eca85c |
class ServiceType(enum.Enum): <NEW_LINE> <INDENT> LongRun = 'longrun' <NEW_LINE> Oneshot = 'oneshot' <NEW_LINE> Bundle = 'bundle' | Types of services.
| 62598edf92d797404e387e50 |
class Params: <NEW_LINE> <INDENT> def __init__(self, start_ts: datetime, end_ts: datetime, underlying_tickers: List[str], strategy_name: str, weights: List[Weight] ): <NEW_LINE> <INDENT> self.start_ts = start_ts <NEW_LINE> self.end_ts = end_ts <NEW_LINE> self.underlying_tickers = underlying_tickers <NEW_LINE> self.stra... | This contains the strategy parameters
-------
Attributes
-------
- start_ts (datetime)
- end_ts (datetime)
- underlying_ticker (str)
- strategy_name (str)
- weights (List[Weight]) | 62598edf24f1403a92684b79 |
class Itemset(Element): <NEW_LINE> <INDENT> def __init__(self, items=None, label=None, separator=" "): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.items = items <NEW_LINE> if items is None: <NEW_LINE> <INDENT> self.items = [] <NEW_LINE> <DEDENT> self.label = label <NEW_LINE> self.separator = separator <NEW_L... | A single itemset element | 62598edf56ac1b37e6300796 |
class NestedStack(stack_resource.StackResource): <NEW_LINE> <INDENT> properties_schema = {PROP_TEMPLATE_URL: {'Type': 'String', 'Required': True}, PROP_TIMEOUT_MINS: {'Type': 'Number'}, PROP_PARAMETERS: {'Type': 'Map'}} <NEW_LINE> def handle_create(self): <NEW_LINE> <INDENT> template_data = urlfetch.get(self.properties... | A Resource representing a child stack to allow composition of templates. | 62598edf925a0f43d25e65d7 |
@ufl_type(num_ops=2, is_abstract=False, is_index_free=True, is_shaping=False) <NEW_LINE> class Assign(AssignmentBase): <NEW_LINE> <INDENT> _symbol = "=" <NEW_LINE> _ast = ast.Assign <NEW_LINE> __slots__ = ("ufl_shape", "_symbol", "_ast", "_visit") <NEW_LINE> def _visit(self, transformer): <NEW_LINE> <INDENT> lhs = self... | A UFL assignment operator. | 62598edf4e4d5625663709c3 |
class ColorJitter(BaseTransform): <NEW_LINE> <INDENT> def __init__(self, brightness=0, contrast=0, saturation=0, hue=0): <NEW_LINE> <INDENT> self.brightness = brightness <NEW_LINE> self.contrast = contrast <NEW_LINE> self.saturation = saturation <NEW_LINE> self.hue = hue <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def... | Randomly change the brightness, contrast and saturation of an image.
Args:
brightness (float): How much to jitter brightness. brightness_factor
is chosen uniformly from [max(0, 1 - brightness), 1 + brightness].
contrast (float): How much to jitter contrast. contrast_factor
is chosen uniformly f... | 62598edf63b5f9789fe8371b |
class PBS(Sched): <NEW_LINE> <INDENT> _sched_for = ['pbs', 'torque'] <NEW_LINE> _sched_environ_id = 'PBS_JOBID' <NEW_LINE> RSH_LARGE_CMD = 'pbsssh' <NEW_LINE> RSH_LARGE_LIMIT = 'pbsssh' <NEW_LINE> HYDRA_LAUNCHER_EXEC = 'pbsssh' <NEW_LINE> HYDRA_RMK = ['pbs'] <NEW_LINE> def get_node_list(self): <NEW_LINE> <INDENT> nodev... | Torque/PBS based | 62598edf23849d37ff84f664 |
class Flank(Tool): <NEW_LINE> <INDENT> def __init__(self, path="", max_threads=4): <NEW_LINE> <INDENT> Tool.__init__(self, "bedtools flank", path=path, max_threads=max_threads) <NEW_LINE> <DEDENT> def get(self, in_file, genome_file, left, right, fraction_mode=False, strand_based=False, print_header=False, out_file=None... | Tool: bedtools flank (aka flankBed)
Version: v2.17.0
Summary: Creates flanking interval(s) for each BED/GFF/VCF feature.
Usage: bedtools flank [OPTIONS] -i <bed/gff/vcf> -g <genome> [-b <int> or (-l and -r)]
Options:
-b Create flanking interval(s) using -b base pairs in each direction.
- (Intege... | 62598edf99fddb7c1ca620db |
class HeartbeatController(rest.RestController): <NEW_LINE> <INDENT> @method.expose(status_code=http_client.ACCEPTED) <NEW_LINE> @args.validate(node_ident=args.uuid_or_name, callback_url=args.string, agent_version=args.string, agent_token=args.string, agent_verify_ca=args.string, agent_status=args.string, agent_status_m... | Controller handling heartbeats from deploy ramdisk. | 62598edf6e29344779afebd8 |
class Slow(SeismicTable): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> SeismicTable.__init__(self) <NEW_LINE> table = tools.read_table("input_seismic/prem.txt") <NEW_LINE> table = np.array(table) <NEW_LINE> table2 = tools.read_table("input_seismic/swave_slow.txt") <NEW_LINE> table2 = np.array(table2) <NE... | Inserts the mean profiles for slower regions in the lower mantle (Lekic et al. 2012).
We stitch together tables 'input_seismic/prem_lowermantle.txt', 'input_seismic/swave_slow.txt', 'input_seismic/pwave_slow.txt').
See also :class:`burnman.seismic.SeismicTable`. | 62598edf01c39578d7f11352 |
class LaunchpadPPAManager(object): <NEW_LINE> <INDENT> _LAUNCHPAD_URL = ( 'http://ppa.launchpad.net/{name:s}/{track:s}/ubuntu/dists' '/{distribution:s}/main/source/Sources.gz') <NEW_LINE> def __init__(self, name, distribution=None): <NEW_LINE> <INDENT> super(LaunchpadPPAManager, self).__init__() <NEW_LINE> self._distri... | Defines a Launchpad PPA manager. | 62598edf2eb69b55b15a065e |
class WordACC(tf.keras.metrics.Metric): <NEW_LINE> <INDENT> def __init__(self, name='word_accuracy', **kwargs): <NEW_LINE> <INDENT> super().__init__(name=name, **kwargs) <NEW_LINE> self.total = self.add_weight(name='total', dtype=tf.int32, initializer=tf.zeros_initializer()) <NEW_LINE> self.count = self.add_weight(name... | Calculate the word accuracy between y_true and y_pred. | 62598edfd6c5a102081e06db |
@skipIf(SKIP_TEST, "пропущено для економії часу") <NEW_LINE> class FolderReportListPageAnonymousVisitorTest(FolderReportListPageVisitTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.dummy_user = AnonymousUser() <NEW_LINE> DummyFolder().create_dummy_catalogue(report=True) <NEW_LINE> self.get_data_lin... | Тест відвідання сторінки сайту
анонімним користувачем
Параметри сторінки описані в суперкласі, тому не потребують переозначення. | 62598edfe64d504609df8695 |
class LoadBalancer(resource_base.ResourceBase, admin_state_up_mixin.AdminStateUpMixin): <NEW_LINE> <INDENT> media_type = vendor_media_type.APPLICATION_LOAD_BALANCER_JSON <NEW_LINE> def __init__(self, uri, dto, auth): <NEW_LINE> <INDENT> super(LoadBalancer, self).__init__(uri, dto, auth) <NEW_LINE> <DEDENT> def get_id(s... | The load balancer JSON model of the L4LB feature.
| 62598edf21a7993f00c64517 |
class Ono3dObjectExporter(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "export.ono3o" <NEW_LINE> bl_label = "Export Ono3dObject" <NEW_LINE> filter_glob = StringProperty(default="*.o3o",options={'HIDDEN'}) <NEW_LINE> filepath = StringProperty(subtype='FILE_PATH') <NEW_LINE> EnableDoubleSided = BoolProperty(name=... | Export to the Ono3dObject format (.o3o) | 62598edf9b70327d1c57d365 |
class temp_disconnect_signal(): <NEW_LINE> <INDENT> def __init__(self, signal, receiver, sender, dispatch_uid=None): <NEW_LINE> <INDENT> self.signal = signal <NEW_LINE> self.receiver = receiver <NEW_LINE> self.sender = sender <NEW_LINE> self.dispatch_uid = dispatch_uid <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE... | Temporarily disconnect a model from a signal | 62598edf0c0af96317c54948 |
class TatorCognito: <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setup_cognito(cls): <NEW_LINE> <INDENT> if os.getenv('COGNITO_ENABLED') == 'TRUE': <NEW_LINE> <INDENT> with open('/cognito/cognito.yaml', 'r') as f: <NEW_LINE> <INDENT> cls.config = yaml.safe_load(f) <NEW_LINE> <DEDENT> cls.cognito = boto3.client('cogn... | Interface for cognito.
| 62598edf56b00c62f0fb0e7b |
class Site(http.HTTPFactory): <NEW_LINE> <INDENT> counter = 0 <NEW_LINE> requestFactory = Request <NEW_LINE> displayTracebacks = True <NEW_LINE> sessionFactory = Session <NEW_LINE> sessionCheckTime = 1800 <NEW_LINE> def __init__(self, resource, logPath=None, timeout=60*60*12): <NEW_LINE> <INDENT> http.HTTPFactory.__ini... | A web site: manage log, sessions, and resources.
@ivar counter: increment value used for generating unique sessions ID.
@ivar requestFactory: factory creating requests objects. Default to
L{Request}.
@ivar displayTracebacks: if set, Twisted internal errors are displayed on
rendered pages. Default to C{True}.
@... | 62598edf6aa9bd52df0d3459 |
class Media: <NEW_LINE> <INDENT> def __init__(self, db_id=-1, title='', genre=''): <NEW_LINE> <INDENT> self._id = db_id <NEW_LINE> self.title = title <NEW_LINE> self.genre = genre <NEW_LINE> self.borrower = None <NEW_LINE> self.checkout_date = None <NEW_LINE> self.return_date = None <NEW_LINE> <DEDENT> def checkout(sel... | A class that defines how media should behave | 62598edff548e778e5969b43 |
class WaterInfiltrationSystem(BSElement): <NEW_LINE> <INDENT> pass | Description of the infiltration characteristics for an opaque surface, fenestration unit, a thermal zone. | 62598edf435de62698e9a381 |
class PagedResponsePublisher(object): <NEW_LINE> <INDENT> swagger_types = { 'items': 'list[KeyedItemObject]', 'next_start_index': 'int', 'request_page_size': 'int' } <NEW_LINE> attribute_map = { 'items': 'items', 'next_start_index': 'nextStartIndex', 'request_page_size': 'requestPageSize' } <NEW_LINE> def __init__(self... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598edf442bda511e95aa12 |
class PubSubProtocol(WampServerProtocol): <NEW_LINE> <INDENT> def onSessionOpen(self): <NEW_LINE> <INDENT> self.registerForPubSub(lobbychannel) <NEW_LINE> self.registerForPubSub(gamechannel, True) | A pub/sub server that performs two functions: allows for chat between
clients, and publishes updates to lobby data. | 62598edf1f037a2d8b9e26b1 |
class APIRequestor: <NEW_LINE> <INDENT> def __init__(self, session, APIMainURL): <NEW_LINE> <INDENT> self.session = session <NEW_LINE> self.APIMainURL = APIMainURL <NEW_LINE> <DEDENT> def makeRequest(self, method, endpoint, params=None, returnValue=None): <NEW_LINE> <INDENT> URL = self.APIMainURL + endpoint <NEW_LINE> ... | A class to simplify request calls to REST API
Attributes
----------
session : session
A requests Session object to be associated with the class
APIMainURL : str
Main URL endpoint for API
Methods
-------
makeRequest(method, endpoint, params=None, returnValue=None)
Make a request to a given API endpoint
pos... | 62598edf2c8b7c6e89bd1d6a |
class ShowLldpInterface(ShowLldpInterface_iosxe): <NEW_LINE> <INDENT> pass | Parser for show lldp interface [<WORD>] | 62598edf2ae34c7f260a9694 |
class GreaterThan(Lookup): <NEW_LINE> <INDENT> operator = 'gt' <NEW_LINE> query_type = Range <NEW_LINE> value_type = maybe_number | Greater than lookup. | 62598edfa79ad161977685c8 |
@Challenge.register <NEW_LINE> class DNS(DVChallenge): <NEW_LINE> <INDENT> typ = "dns" <NEW_LINE> token = jose.Field("token") | ACME "dns" challenge. | 62598edfbaa26c4b54d4d87d |
class AdvisoryParserUrlException(Exception): <NEW_LINE> <INDENT> pass | Exception for unknown or malformed URL to parse. | 62598edfa17c0f6771d5a803 |
class WinBonusScorer(ScoringSystem): <NEW_LINE> <INDENT> def __init__(self, tourney): <NEW_LINE> <INDENT> self.tourney = tourney <NEW_LINE> self.min_games = 5 <NEW_LINE> self.bonus_factor = 1 <NEW_LINE> self._build_game_bonuses() <NEW_LINE> <DEDENT> def get_player_score(self, name): <NEW_LINE> <INDENT> score = self.get... | Score is win percentage plus bonuses for hard games
Additionally, each score is record is padded up to 5 games with losses. | 62598edf01c39578d7f11354 |
class Tee(object): <NEW_LINE> <INDENT> def __init__(self, name, mode='w'): <NEW_LINE> <INDENT> self.logfile = open(name, mode, buffering=1) <NEW_LINE> self.stdout = sys.stdout <NEW_LINE> self.stderr = sys.stderr <NEW_LINE> sys.stdout = self <NEW_LINE> sys.stderr = self <NEW_LINE> self.stdout.write("Logging into: %s\n" ... | Copies stdout and stderr into a new log file. Restores on close().
NOTE: Due to references from sys.stdout and sys.stderr created on
construction, close() MUST be called for a later deletion of this object to
succeed. | 62598edf32920d7e50bc45da |
@dataclass <NEW_LINE> class VolumeGeometry(Geometry): <NEW_LINE> <INDENT> vol_shape_xyz: ArrayLike <NEW_LINE> vox_size: float = 1 <NEW_LINE> @property <NEW_LINE> def shape(self) -> ArrayLike: <NEW_LINE> <INDENT> return self.vol_shape_xyz <NEW_LINE> <DEDENT> @property <NEW_LINE> def extent(self) -> Sequence[float]: <NEW... | Store the volume geometry. | 62598edf66673b3332c2e953 |
class Factory: <NEW_LINE> <INDENT> def create(self, values): <NEW_LINE> <INDENT> return ReorderReverseAccumulative(values) | Internal factory class to be used in dynamic object creation. | 62598edf6e29344779afebda |
@admin.register(Review) <NEW_LINE> class ReviewAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = ('id', 'name', 'email', 'parent', 'movie') <NEW_LINE> list_display_links = ('movie',) <NEW_LINE> list_filter = ('id',) <NEW_LINE> readonly_fields = ('name', 'email', 'text') | Отзывы | 62598edfac7a0e7691f70ac0 |
class TestsOpenOCDcli(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> ocd_class = mock.patch('gateway_code.utils.openocd.OpenOCD').start() <NEW_LINE> self.ocd = ocd_class.return_value <NEW_LINE> ocd_class.from_node.return_value = self.ocd <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <... | Test OpenOCD cli | 62598edf85dfad0860cbed40 |
class Flag(messages.Message): <NEW_LINE> <INDENT> allowedStringValues = messages.StringField(1, repeated=True) <NEW_LINE> appliesTo = messages.StringField(2, repeated=True) <NEW_LINE> kind = messages.StringField(3, default=u'sql#flag') <NEW_LINE> maxValue = messages.IntegerField(4) <NEW_LINE> minValue = messages.Intege... | A Google Cloud SQL service flag resource.
Fields:
allowedStringValues: For STRING flags, a list of strings that the value
can be set to.
appliesTo: The database version this flag applies to. Currently this can
only be [MYSQL_5_5].
kind: This is always sql#flag.
maxValue: For INTEGER flags, the maximum ... | 62598edf9c8ee8231303f42e |
class Commit(object): <NEW_LINE> <INDENT> def __init__(self, commitSHA, previousSHA, author, email, date, notes): <NEW_LINE> <INDENT> self.myCommitSHA = commitSHA <NEW_LINE> self.myPreviousSHA = previousSHA <NEW_LINE> self.myAuthor = author <NEW_LINE> self.myEmail = email <NEW_LINE> self.myDate = date <NEW_LINE> self.m... | container for a review between file deltas | 62598edf91af0d3eaad383c5 |
class TestInstall(unittest.TestCase): <NEW_LINE> <INDENT> layer = INTEGRATION <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.portal = self.layer['portal'] <NEW_LINE> self.installer = api.portal.get_tool('portal_quickinstaller') <NEW_LINE> <DEDENT> def test_product_installed(self): <NEW_LINE> <INDENT> self.assertT... | Test installation of hack.n.dine into Plone. | 62598edf67a9b606de54457b |
class multiclass_loss(): <NEW_LINE> <INDENT> def __init__(self, Y, Y_hat): <NEW_LINE> <INDENT> self.Y = Y <NEW_LINE> self.Y_hat = Y_hat <NEW_LINE> <DEDENT> def cost(self): <NEW_LINE> <INDENT> cost = -(1/ self.Y.shape[1]) * np.sum(np.multiply(self.Y, np.log(self.Y_hat))) <NEW_LINE> return cost <NEW_LINE> <DEDENT> def ba... | "This is the class which is Concerned with Calculating the multiclass loss & it's derivative " | 62598edf9b70327d1c57d367 |
class AbstractRepository(abc.ABC): <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> def add(self, batch: model.Batch): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def get(self, reference) -> model.Batch: <NEW_LINE> <INDENT> raise NotImplementedError | Python's provisions for creating class hiearchy abstractions is provided in the module `abc`:
https://docs.python.org/3.9/library/abc.html | 62598edfa8370b77170ee99c |
class MessageModel(object): <NEW_LINE> <INDENT> def __init__(self,uid,message,remindDate): <NEW_LINE> <INDENT> self.uid=uid <NEW_LINE> self.message=message <NEW_LINE> self.remindDate=remindDate <NEW_LINE> self.status = 0 <NEW_LINE> self.updateTime=time.strftime("%Y-%m-%d %H:%M:%S") | 日程类 | 62598edfbd1bec0571e143a2 |
class Room(db.Model): <NEW_LINE> <INDENT> user1 = db.StringProperty() <NEW_LINE> user2 = db.StringProperty() <NEW_LINE> user1_connected = db.BooleanProperty(default=False) <NEW_LINE> user2_connected = db.BooleanProperty(default=False) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> str = '[' <NEW_LINE> if self.user1:... | All the data we store for a room | 62598edfe5267d203ee69eb0 |
class quick_sort_strategy(base_sort_strategy): <NEW_LINE> <INDENT> def __quick_sort(self,arr, cmp): <NEW_LINE> <INDENT> less = [] <NEW_LINE> pivotList = [] <NEW_LINE> more = [] <NEW_LINE> if len(arr) <= 1: <NEW_LINE> <INDENT> return arr <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> pivot = arr[0] <NEW_LINE> for i in ar... | General-purpose sorting strategy based on the quicksort-algorithm | 62598edf0c0af96317c5494b |
class Digit(object): <NEW_LINE> <INDENT> def __init__(self, soure_image): <NEW_LINE> <INDENT> self.__grayscaled_source_image = cv2.resize(soure_image, (20, 45)) <NEW_LINE> self.__number = '?' <NEW_LINE> <DEDENT> def getPreparedImage(self): <NEW_LINE> <INDENT> return self.__grayscaled_source_image.copy() <NEW_LINE> <DED... | classdocs | 62598edffbf16365ca792651 |
class Area(Bar): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Area, self).__init__() <NEW_LINE> area_updates = [('remove', 'width', 'marks', 0, 'properties', 'enter'), ('add', 'area', 'marks', 0, 'type'), ('add', 'linear', 'scales', 0, 'type')] <NEW_LINE> self.multi_update(area_updates) <NEW_LINE> ... | Create an area chart in Vega grammar | 62598edf8da39b475be01757 |
class NotFoundError(TajoClientError): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> super(NotFoundError, self).__init__(value) <NEW_LINE> self.value = value <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return ("<NotFoundError in " + repr(self.value) + ">") | NotFound Error exceptions | 62598edf435de62698e9a383 |
class HttpHeaderPathRule(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.HeaderMode = None <NEW_LINE> self.HeaderName = None <NEW_LINE> self.HeaderValue = None <NEW_LINE> self.RuleType = None <NEW_LINE> self.RulePaths = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE>... | 分路径的http头部设置规则。
| 62598edffff4ab517ebcbd91 |
class DeleteUndefException(DeleteNeededObjectException): <NEW_LINE> <INDENT> pass | Deleting the table entry that is the 'undefined' value. | 62598edf796e427e5384cd46 |
class CoffeePod(models.Model): <NEW_LINE> <INDENT> TYPES = Choices( ('COFFEE_POD_LARGE'), ('COFFEE_POD_SMALL'), ('ESPRESSO_POD'), ) <NEW_LINE> FLAVORS = Choices( ('COFFEE_FLAVOR_VANILLA'), ('COFFEE_FLAVOR_CARAMEL'), ('COFFEE_FLAVOR_PSL'), ('COFFEE_FLAVOR_MOCHA'), ('COFFEE_FLAVOR_HAZELNUT'), ) <NEW_LINE> product_type = ... | Stores CoffePods objects | 62598edfcc0a2c11144795af |
class IrredZone(KpointList): <NEW_LINE> <INDENT> def __init__(self, reciprocal_lattice, frac_coords, weights, ksampling): <NEW_LINE> <INDENT> super(IrredZone, self).__init__(reciprocal_lattice, frac_coords, weights=weights, names=None) <NEW_LINE> wsum = self.sum_weights() <NEW_LINE> if abs(wsum - 1) > 1.e-6: <NEW_LINE>... | An IrredZone is a (immutable) sequence of points in the irreducible wedge of the BZ.
Each point has a weight whose sum must equal 1 so that we can integrate quantities
in the full Brillouin zone.
Provides methods to symmetrize k-dependent quantities with the full
symmetry of the structure. e.g. bands, occupation facto... | 62598edf45492302aabfaa60 |
class YearSchedule(models.Model): <NEW_LINE> <INDENT> school_year = models.ForeignKey( SchoolYear, on_delete=models.PROTECT, verbose_name=_('School year') ) <NEW_LINE> number = models.PositiveSmallIntegerField( blank=False, null=False, choices=tuple(zip(PERIOD_NUMBERS, [str(n) for n in PERIOD_NUMBERS])), verbose_name=_... | Represents schedule of a school year:
- period type (academic quarter/holidays)
- number of a period
- start & end date of a period | 62598edf627d3e7fe0e05435 |
class LegacyDomain(Base): <NEW_LINE> <INDENT> @versionutils.deprecated( as_of=versionutils.deprecated.ICEHOUSE, in_favor_of='keystone.auth.external.Domain', remove_in=+1) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(LegacyDomain, self).__init__() <NEW_LINE> <DEDENT> def _authenticate(self, remote_user, cont... | Deprecated. Please use keystone.auth.external.Domain instead. | 62598edf24f1403a92684b7b |
class Trigger(BaseModel): <NEW_LINE> <INDENT> metric = ForeignKeyField(Metric) <NEW_LINE> upper_bound = BooleanField() <NEW_LINE> power_driver = ForeignKeyField(Driver) <NEW_LINE> power_on = BooleanField() <NEW_LINE> disabled = BooleanField(default=False) | A rule for what power device to either turn on or off a when a metric's
value hits either an upper or lower bound (too_high) | 62598edf498bea3a75a560e4 |
class View3D_TP_Origin_Mass(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "tp_ops.origin_set_mass" <NEW_LINE> bl_label = "Origin to Center of Mass" <NEW_LINE> bl_options = {"REGISTER", 'UNDO'} <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS') <NEW_... | Set Origin to Center of Mass | 62598edfbe8e80087fbbd5fb |
class Sku(Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'tier': {'key': 'tier', 'type': 'str'}, 'size': {'key': 'size', 'type': 'str'}, 'family': {'key': 'family', 'type': 'str'}, 'model': {'key': 'model', 'type': 'str'}, 'capacity': {'key': 'capacity', 'type': 'int'}, } <NEW_LI... | SKU for the resource.
:param name: The SKU name.
:type name: str
:param tier: The SKU tier.
:type tier: str
:param size: The SKU size.
:type size: str
:param family: The SKU family.
:type family: str
:param model: The SKU model.
:type model: str
:param capacity: The SKU capacity.
:type capacity: int | 62598edf29b78933be2693a6 |
class Mocks(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def make_paging_controls(count=None, start_id=None, end_id=None, start_index=None): <NEW_LINE> <INDENT> return ClientPagingControls( count=count, start_id=start_id, end_id=end_id, start_index=start_index) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def ... | A static class with methods that return lists of mock Protobuf objects.
| 62598edf3cc13d1c6d463d18 |
class ShowConfigCommand(Command): <NEW_LINE> <INDENT> def run(self, **kwargs): <NEW_LINE> <INDENT> _show_config() | Show current configuration | 62598edf32920d7e50bc45db |
class NUNSGRoutingPolicyBindingsFetcher(NURESTFetcher): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def managed_class(cls): <NEW_LINE> <INDENT> from .. import NUNSGRoutingPolicyBinding <NEW_LINE> return NUNSGRoutingPolicyBinding | Represents a NUNSGRoutingPolicyBindings fetcher
Notes:
This fetcher enables to fetch NUNSGRoutingPolicyBinding objects.
See:
bambou.NURESTFetcher | 62598edf8e71fb1e983ba01e |
class TestSimpleQuadrilateral(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 testSimpleQuadrilateral(self): <NEW_LINE> <INDENT> pass | SimpleQuadrilateral unit test stubs | 62598edf5fdd1c0f98e5c55c |
class NinjaAnt(Ant): <NEW_LINE> <INDENT> name = 'Ninja' <NEW_LINE> implemented = True <NEW_LINE> food_cost = 6 <NEW_LINE> damage = 1 <NEW_LINE> blocks_path = False <NEW_LINE> def action(self, colony): <NEW_LINE> <INDENT> for bee in self.place.bees[:]: <NEW_LINE> <INDENT> bee.reduce_armor(self.damage) | NinjaAnt is an Ant which does not block the path and does 1 damage to
all Bees in the exact same Place. | 62598edf63b5f9789fe8371f |
class NonceManager(object): <NEW_LINE> <INDENT> def generate_nonce(self, request): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def is_valid_nonce(self, nonce, request): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def get_next_nonce(self, nonce, request): <NEW_LINE> <INDENT> r... | Interface definition for management of digest-auth nonces.
This class defines the necessary methods for managing nonces as
part of the digest-auth protocol:
* generate_nonce: create a new unique nonce
* is_valid_nonce: check for validity of a nonce
* get_next_nonce: get next nonce to be used b... | 62598edf99fddb7c1ca620dd |
class SubnetAssociation(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'security_rules': {'key': 'securityRules', 'type': '[SecurityRule]'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> su... | Network interface and its custom security rules.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Subnet ID.
:vartype id: str
:param security_rules: Collection of custom security rules.
:type security_rules: list[~azure.mgmt.network.v2018_07_01.models.SecurityRule] | 62598edfa79ad161977685cb |
class K8sContainer: <NEW_LINE> <INDENT> def __init__(self, response: client.V1Container): <NEW_LINE> <INDENT> self._response = response <NEW_LINE> <DEDENT> def IsPrivileged(self) -> bool: <NEW_LINE> <INDENT> security_context = self._response.security_context <NEW_LINE> return bool(security_context and security_context.... | Class wrapping a Kubernetes container response | 62598edf85dfad0860cbed41 |
class CallbackComponent(Component): <NEW_LINE> <INDENT> def init(self, component_manager: ComponentManager, *arugs, **kwargs) -> None: <NEW_LINE> <INDENT> self._callback_manager = {} <NEW_LINE> <DEDENT> def get_callback_obj(self, enum_cls: Enum) -> Callbacks: <NEW_LINE> <INDENT> if not enum_cls in self._callback_manage... | default component for managing callback function by enum types | 62598edf67a9b606de54457d |
class ClientException(PAException): <NEW_LINE> <INDENT> pass | Indicate errors that don't involve interaction with PolyAnalyst's API. | 62598edfd486a94d0ba2a586 |
class Tag(Model): <NEW_LINE> <INDENT> __fillable__ = ['name'] <NEW_LINE> @belongs_to_many <NEW_LINE> def articles(self): <NEW_LINE> <INDENT> from app.Article import Article <NEW_LINE> return Article | Tag Model.
Model Definition (generated with love by Masonite)
id: integer default: None
name: string(255) default: None
created_at: datetime default: CURRENT_TIMESTAMP
updated_at: datetime default: CURRENT_TIMESTAMP | 62598edfbd1bec0571e143a3 |
class GPIO: <NEW_LINE> <INDENT> def __init__(self, gpio_index, direction): <NEW_LINE> <INDENT> if not direction in ('in','out'): <NEW_LINE> <INDENT> raise ValueError("Direction should be in or out.") <NEW_LINE> <DEDENT> self.index = gpio_index <NEW_LINE> self.direction = direction <NEW_LINE> self.path = '/sys/class/gpi... | Class to wrap Linux's GPIO Sysfs API.
This GPIO class does not handle PL I/O.
Attributes
----------
index : int
The index of the GPIO, starting from the GPIO base.
direction : str
Input/output direction of the GPIO.
path: str
The path of the GPIO device in the linux system. | 62598edf56b00c62f0fb0e7f |
class NoTimeLimitMujocoWrapper(GymWrapper): <NEW_LINE> <INDENT> def __init__(self, env_name): <NEW_LINE> <INDENT> self.internal_env = gym.make(env_name).env <NEW_LINE> self.observation_space = self.internal_env.observation_space <NEW_LINE> self.action_space = self.internal_env.action_space <NEW_LINE> self.custom_init() | Wrap Mujoco-style environments, removing the termination condition after time.
This is needed to keep it Markovian. | 62598edf7cff6e4e811b3f9d |
@add_metaclass(ABCMeta) <NEW_LINE> class LCDictBuilderABC(): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> @abstractmethod <NEW_LINE> def add_to_lcdict(cls, lcdict): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def build_lcdict(cls, root_level='WARNING', log_path='', locking=False, attach_handlers... | .. include:: _global.rst
A class for automating multi-package / multi-module logging configuration.
``LCDictBuilderABC`` is an abstract base class: its metaclass is ``ABCMeta``,
defined in ``_collections_abc.py`` of the standard library. You can't
directly instantiate this class: it has an `abstractmethod`
``add_to_lc... | 62598edf1b99ca400228e7e4 |
class InvalidSectionTemplateNameError(PropertyConfigError): <NEW_LINE> <INDENT> def __init__(self, section): <NEW_LINE> <INDENT> assert section is not None <NEW_LINE> PropertyConfigError.__init__(self, section=section) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return _("Section template name '{0}' is n... | Exception class used to indicate an invalid section template name. | 62598edf6aa9bd52df0d345d |
class ProductPage(BasePage): <NEW_LINE> <INDENT> def add_to_cart(self) -> "ProductPage": <NEW_LINE> <INDENT> logging.info('adding product to the Cart') <NEW_LINE> self.driver.find_element(*ProductPageLocators.BTN_CART).click() <NEW_LINE> time.sleep(DRIVER_WAIT_TIME) <NEW_LINE> return self <NEW_LINE> <DEDENT> def goto_c... | Product Page methods come here. | 62598edf7d43ff24874266d3 |
class LabelEnum(LoadEnumInterface, metaclass=LabelEnumMeta): <NEW_LINE> <INDENT> r <NEW_LINE> pass | Base of all label enum | 62598edfd7e4931a7ef3a64c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.