code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Date(Item, date): <NEW_LINE> <INDENT> def __new__(cls, year: int, month: int, day: int, *_: Any) -> date: <NEW_LINE> <INDENT> return date.__new__(cls, year, month, day) <NEW_LINE> <DEDENT> def __init__( self, year: int, month: int, day: int, trivia: Trivia, raw: str ) -> None: <NEW_LINE> <INDENT> super().__init__... | A date literal. | 62598fb85fc7496912d4831a |
class ModuleStatusClient: <NEW_LINE> <INDENT> def __init__( self, reader: asyncio.StreamReader, writer: asyncio.StreamWriter ) -> None: <NEW_LINE> <INDENT> self._reader = reader <NEW_LINE> self._writer = writer <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> async def connect( cls, host: str, port: int, retries: int = 3, i... | A module server client. | 62598fb8a8370b77170f051c |
class Polymer(Enum): <NEW_LINE> <INDENT> All = 'all' <NEW_LINE> DNAOnly = 'onlyDna' <NEW_LINE> ProteinDNA = 'protDna' <NEW_LINE> DrugDNA = 'drugDna' <NEW_LINE> HybridsChimera = 'hybNChimera' <NEW_LINE> PeptideNucleicAcid = 'pepNucAcid' | Enums to handle polymer in query
:cvar All: all in query
:cvar DNAOnly: DNA Only in query
:cvar ProteinDNA: Protein DNA Complexes in query
:cvar DrugDNA: Drug DNA Complexes in query
:cvar HybridsChimera: Hybrids and Chimera in query
:cvar PeptideNucleicAcid: Peptide Nucleic Acid / Mimetics in query | 62598fb8009cb60464d01661 |
class SQLTableNoCache(SQLTableBase): <NEW_LINE> <INDENT> itemClass = SQLRow <NEW_LINE> keys = getKeys <NEW_LINE> __iter__ = iter_keys <NEW_LINE> def getID(self, t): <NEW_LINE> <INDENT> return t[0] <NEW_LINE> <DEDENT> def select(self, whereClause, params): <NEW_LINE> <INDENT> return SQLTableBase.select(self, whereClause... | Provide on-the-fly access to rows in the database;
values are simply an object interface (SQLRow) to back-end db query.
Row data are not stored locally, but always accessed by querying the db | 62598fb8be383301e025393a |
class PageHeaders(headers): <NEW_LINE> <INDENT> def buildHeader(self): <NEW_LINE> <INDENT> urlArray = urlparse(self.url) <NEW_LINE> self.hostname = urlArray.hostname <NEW_LINE> path = urlArray.path <NEW_LINE> self.agent = random.choice(self.agentlist) <NEW_LINE> self.headers = { ':authority': self.hostname, ':method': ... | 构建搜狐页面的headers类
:param headers: 父类,构建headers类 | 62598fb8379a373c97d99154 |
class DVS_Phenology_Wrapper(SimulationObject): <NEW_LINE> <INDENT> phenology = Instance(SimulationObject) <NEW_LINE> def initialize(self, day, kiosk, cropdata, soildata, sitedata, start_type, stop_type): <NEW_LINE> <INDENT> self.phenology = DVS_Phenology(day, kiosk, cropdata, start_type, stop_type) <NEW_LINE> <DEDENT>... | This is wrapper class that wraps the DVS_phenology simulation object
in such a way that it can run directly in the Engine. This means that
it can be used direct in a configuration file::
CROP = DVS_Phenology_Wrapper
This is useful for running only the phenology instead of the entire
crop simulation. | 62598fb83539df3088ecc3eb |
class Indexer(): <NEW_LINE> <INDENT> def __init__(self, index_dir, mode, date_format='%Y-%m-%dT%H:%M:%S'): <NEW_LINE> <INDENT> self.store = FSDirectory.open(File(index_dir)) <NEW_LINE> self.analyzer = StandardAnalyzer(Version.LUCENE_CURRENT) <NEW_LINE> self.config = IndexWriterConfig(Version.LUCENE_CURRENT, self.analyz... | This class provide functions to index article stored in the database. | 62598fb84f88993c371f05ac |
class SingleNumberValueTest(unittest.TestCase): <NEW_LINE> <INDENT> def test_single_number_value(self): <NEW_LINE> <INDENT> single_number_value_obj = SingleNumberValue() <NEW_LINE> self.assertNotEqual(single_number_value_obj, None) | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fb84527f215b58ea014 |
class ASTNestedNameElementEmpty(ASTBase): <NEW_LINE> <INDENT> def get_id_v1(self): <NEW_LINE> <INDENT> return u'' <NEW_LINE> <DEDENT> def get_id_v2(self): <NEW_LINE> <INDENT> return u'' <NEW_LINE> <DEDENT> def __unicode__(self): <NEW_LINE> <INDENT> return u'' <NEW_LINE> <DEDENT> def describe_signature(self, signode, mo... | Used if a nested name starts with :: | 62598fb83317a56b869be5ed |
class AddBulkCaseForm(BaseAddCaseForm, BaseCaseForm): <NEW_LINE> <INDENT> cases = forms.CharField(widget=mtforms.BareTextarea) <NEW_LINE> def clean_cases(self): <NEW_LINE> <INDENT> data = model.BulkParser().parse(self.cleaned_data["cases"]) <NEW_LINE> for d in data: <NEW_LINE> <INDENT> if "error" in d: <NEW_LINE> <INDE... | Form for adding test cases in bulk. | 62598fb89c8ee82313040213 |
class Preferences(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> tm_identifier = getenv('TM_APP_IDENTIFIER', 'com.macromates.textmate') <NEW_LINE> CFPreferencesAppSynchronize(tm_identifier) <NEW_LINE> self.default_values = { 'latexAutoView': 1, 'latexEngine': "pdflatex", 'latexEngineOptions': "", ... | Process the current preferences of the LaTeX bundle.
This class reads the LaTeX preferences and provides a dictionary-like
interface to process them. | 62598fb856b00c62f0fb29f9 |
class LeaveOneOut(object): <NEW_LINE> <INDENT> def __init__(self, n, indices=True): <NEW_LINE> <INDENT> self.n = n <NEW_LINE> self.indices = indices <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> n = self.n <NEW_LINE> for i in xrange(n): <NEW_LINE> <INDENT> test_index = np.zeros(n, dtype=np.bool) <NEW_LINE... | Leave-One-Out cross validation iterator.
Provides train/test indices to split data in train test sets. Each
sample is used once as a test set (singleton) while the remaining
samples form the training set.
Due to the high number of test sets (which is the same as the
number of samples) this cross validation method can... | 62598fb8d7e4931a7ef3c1d5 |
class FunctionFieldPlace(Element): <NEW_LINE> <INDENT> def __init__(self, parent, prime): <NEW_LINE> <INDENT> Element.__init__(self, parent) <NEW_LINE> self._prime = prime <NEW_LINE> <DEDENT> def __hash__(self): <NEW_LINE> <INDENT> return hash((self.function_field(), self._prime)) <NEW_LINE> <DEDENT> def _repr_(self): ... | Places of function fields.
INPUT:
- ``field`` -- function field
- ``prime`` -- prime ideal associated with the place
EXAMPLES::
sage: K.<x>=FunctionField(GF(2)); _.<Y> = K[]
sage: L.<y>=K.extension(Y^3 + x + x^3*Y)
sage: L.places_finite()[0]
Place (x, y) | 62598fb867a9b606de546111 |
class MyFavorite(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(UserProfile, related_name='mf_user', verbose_name=u'用户') <NEW_LINE> course = models.ForeignKey(Course, verbose_name=u'课程') <NEW_LINE> date_favorite = models.DateTimeField(u'收藏时间', auto_now_add=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> v... | 我的收藏 | 62598fb81b99ca400228f5d0 |
class Task(db.Model): <NEW_LINE> <INDENT> creator = db.UserProperty() <NEW_LINE> summary = db.StringProperty() <NEW_LINE> body = db.TextProperty() <NEW_LINE> reminder = db.DateTimeProperty() | A saved task. | 62598fb8cc0a2c111447b14c |
class ViewSocketHandler(tornado.websocket.WebSocketHandler): <NEW_LINE> <INDENT> def open(self, game, game_id): <NEW_LINE> <INDENT> self.is_open = True <NEW_LINE> stratumgs.game.get_game_runner(int(game_id)).add_view(self) <NEW_LINE> <DEDENT> def on_close(self): <NEW_LINE> <INDENT> self.is_open = False <NEW_LINE> <DEDE... | Handles websocket connections for viewing games. | 62598fb8ec188e330fdf89d0 |
class CRF1d(link.Link): <NEW_LINE> <INDENT> def __init__(self, n_label): <NEW_LINE> <INDENT> super(CRF1d, self).__init__(cost=(n_label, n_label)) <NEW_LINE> self.cost.data[...] = 0 <NEW_LINE> <DEDENT> def __call__(self, xs, ys): <NEW_LINE> <INDENT> return crf1d.crf1d(self.cost, xs, ys) <NEW_LINE> <DEDENT> def argmax(se... | Linear-chain conditional random field loss layer.
This link wraps the :func:`~chainer.functions.crf1d` function.
It holds a transition cost matrix as a parameter.
Args:
n_label (int): Number of labels.
.. seealso:: :func:`~chainer.functions.crf1d` for more detail.
Attributes:
cost (~chainer.Variable): Trans... | 62598fb82c8b7c6e89bd3904 |
class ItemDelegate(QtGui.QStyledItemDelegate): <NEW_LINE> <INDENT> EXTRA_ROW_HEIGHT = 7 <NEW_LINE> def __init__(self, treeview, *args, **kwargs): <NEW_LINE> <INDENT> QtGui.QStyledItemDelegate.__init__(self, *args, **kwargs) <NEW_LINE> self._pen = QtGui.QPen() <NEW_LINE> self._pen.setWidth(1) <NEW_LINE> self._pen.setCol... | An item delegate with a fixed height and faint grey vertical lines
between columns | 62598fb8a05bb46b3848a9ab |
class Pagination: <NEW_LINE> <INDENT> def __init__(self, query, page, per_page, total, items): <NEW_LINE> <INDENT> self.query = query <NEW_LINE> self.page = page <NEW_LINE> self.per_page = per_page <NEW_LINE> self.total = total <NEW_LINE> self.items = items <NEW_LINE> <DEDENT> @property <NEW_LINE> def pages(self): <NEW... | Internal helper class returned by :meth:`BaseQuery.paginate`. You
can also construct it from any other SQLAlchemy query object if you are
working with other libraries. Additionally it is possible to pass `None`
as query object in which case the :meth:`prev` and :meth:`next` will
no longer work. | 62598fb85fc7496912d4831b |
class GoogleLoginView(View): <NEW_LINE> <INDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> storage = Storage(CredentialsModel, 'id', self.request.user.pk, 'credential') <NEW_LINE> credential = storage.get() <NEW_LINE> if credential is None or credential.invalid: <NEW_LINE> <INDENT> FLO... | Google Login View | 62598fb8cc40096d6161a279 |
class GenomeBuild(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=255, unique=True) <NEW_LINE> affiliation = models.CharField(max_length=255, default='UCSC') <NEW_LINE> description = models.CharField(max_length=255) <NEW_LINE> species = models.ForeignKey(Taxon) <NEW_LINE> html_path = models.CharFi... | Model that stores UCSC Genome Build Information | 62598fb87d847024c075c4fc |
class TestAddTransactionCreation(object): <NEW_LINE> <INDENT> def test_on_empty_block_transactions_length(self, sample_sut, sample_transaction_f): <NEW_LINE> <INDENT> sut = sample_sut() <NEW_LINE> sample_transaction = sample_transaction_f() <NEW_LINE> sut.add_transaction(**sample_transaction) <NEW_LINE> assert len(sut.... | Test the creation of a add transaction in a block | 62598fb8851cf427c66b83f6 |
class CircularSymplecticEnsemble(CircularEnsemble): <NEW_LINE> <INDENT> def joint_eigen_distribution(self): <NEW_LINE> <INDENT> return self._compute_joint_eigen_distribution(S(4)) | Represents Cicular Symplectic Ensembles.
Examples
========
>>> from sympy.stats import CircularSymplecticEnsemble as CSE, density
>>> from sympy.stats import joint_eigen_distribution
>>> C = CSE('S', 1)
>>> joint_eigen_distribution(C)
Lambda(t[1], Product(Abs(exp(I*t[_j]) - exp(I*t[_k]))**4, (_j, _k + 1, 1), (_k, 1, ... | 62598fb823849d37ff8511f3 |
class Images(object): <NEW_LINE> <INDENT> def __init__(self, skin='default'): <NEW_LINE> <INDENT> self.image = pygame.image.load(resource_stream('robbo', 'skins/'+skin+'/icons.png')).convert_alpha() <NEW_LINE> self.digits = pygame.image.load(resource_stream('robbo', 'skins/'+skin+'/digits.png')).convert_alpha() <NEW_LI... | Class responsible for visuals managements
Unlike sounds this is kept in class, so multiple skin pack can be selected. | 62598fb860cbc95b06364480 |
class IPATests(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self._ipa = OsmoIPAccessProtocol(None) <NEW_LINE> self._writes = Mock() <NEW_LINE> def convert_memview_to_bytes(memview): <NEW_LINE> <INDENT> return self._writes(memview.tobytes()) <NEW_LINE> <DEDENT> self._transport = asyncio.T... | Test class for osmo IPA protocols | 62598fb84428ac0f6e658662 |
class SetPeerAddr(BaseNXObject): <NEW_LINE> <INDENT> def __init__(self, name, seq_no, version='v4', state='disabled', session=None, parent=None): <NEW_LINE> <INDENT> super(SetPeerAddr, self).__init__(name) <NEW_LINE> self._session= session <NEW_LINE> self._parent = parent <NEW_LINE> self.peer_obj = 'rtmapSetNhPeerAddr'... | This class defines set peer address configuration | 62598fb832920d7e50bc618f |
class TranslationMiddleware(Middleware): <NEW_LINE> <INDENT> def __init__(self, translator: MicrosoftTranslator, user_state: UserState): <NEW_LINE> <INDENT> self.translator = translator <NEW_LINE> self.language_preference_accessor = user_state.create_property( "LanguagePreference" ) <NEW_LINE> <DEDENT> async def on_tur... | Middleware for translating text between the user and bot.
Uses the Microsoft Translator Text API. | 62598fb8be7bc26dc9251efc |
class SubmissionFileHandler(FileHandler): <NEW_LINE> <INDENT> @tornado_web.authenticated <NEW_LINE> @actual_phase_required(0, 3) <NEW_LINE> @multi_contest <NEW_LINE> def get(self, task_name, submission_num, filename): <NEW_LINE> <INDENT> if not self.contest.submissions_download_allowed: <NEW_LINE> <INDENT> raise tornad... | Send back a submission file.
| 62598fb871ff763f4b5e78b8 |
class Player(object): <NEW_LINE> <INDENT> def blast(self, enemy): <NEW_LINE> <INDENT> print("The Player shoots the enemy \n") <NEW_LINE> enemy.die() | The Player | 62598fb84c3428357761a3fc |
class MenuBar(BoxLayout): <NEW_LINE> <INDENT> file_menu = ObjectProperty(None) <NEW_LINE> see_menu = ObjectProperty(None) <NEW_LINE> def propagate_editor_container(self, editor_container): <NEW_LINE> <INDENT> self.editor_container = editor_container <NEW_LINE> self.file_menu.propagate_editor_container(editor_container)... | Contains the main menus for the application.
These menus include (more can be added or some can be removed):
* File Menu: To create a new file, save a file...
* See Menu: To select what to see (line numbers, for example) | 62598fb8091ae35668704d61 |
class Robot(object): <NEW_LINE> <INDENT> def __init__(self, room, speed, capacity): <NEW_LINE> <INDENT> self.speed = speed <NEW_LINE> self.capacity = capacity <NEW_LINE> self.room = room <NEW_LINE> self.d = random.uniform(0, 360) <NEW_LINE> self.pos = Position(random.uniform(0, room.width), random.uniform(0, room.heigh... | Represents a robot cleaning a particular room.
At all times, the robot has a particular position and direction in the room.
The robot also has a fixed speed and a fixed cleaning capacity.
Subclasses of Robot should provide movement strategies by implementing
update_position_and_clean, which simulates a single time-st... | 62598fb84a966d76dd5ef013 |
class HandleMysql: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> do_config = HandleConfig() <NEW_LINE> self.connt = pymysql.connect( host = do_config("mysql", "host"), port = do_config("mysql", "port"), db = do_config("mysql", "db"), user = do_config("mysql", "username"), password = do_config("mysql", "te... | 我的mysql处理类 | 62598fb8f548e778e596b6e6 |
class ConcurrencePlotter(object): <NEW_LINE> <INDENT> def __init__(self, concurrence=None, labels=None, x_values=None): <NEW_LINE> <INDENT> self.concurrence = concurrence <NEW_LINE> self.labels = self.get_concurrence_labels(concurrence, labels) <NEW_LINE> self._x_values = x_values <NEW_LINE> <DEDENT> @staticmethod <NEW... | Plot manager for contact concurrences.
Parameters
----------
concurrence : :class:`.Concurrence`
concurrence to plot; default None allows to override later
labels : list of string
labels for the contact pairs, default None will use concurrence
labels if available, integers if not
x_values : list of numeric... | 62598fb8fff4ab517ebcd929 |
class PrintSponsorshipBvr(models.TransientModel): <NEW_LINE> <INDENT> _name = 'print.sponsorship.gift.bvr' <NEW_LINE> birthday_gift = fields.Boolean(default=True) <NEW_LINE> general_gift = fields.Boolean(default=True) <NEW_LINE> family_gift = fields.Boolean(default=True) <NEW_LINE> project_gift = fields.Boolean() <NEW_... | Wizard for selecting a period and the format for printing
payment slips of a sponsorship. | 62598fb867a9b606de546112 |
class ServiceBusManagementClient(object): <NEW_LINE> <INDENT> def __init__( self, credentials, subscription_id, base_url=None): <NEW_LINE> <INDENT> self.config = ServiceBusManagementClientConfiguration(credentials, subscription_id, base_url) <NEW_LINE> self._client = ServiceClient(self.config.credentials, self.config) ... | Azure Service Bus client
:ivar config: Configuration for client.
:vartype config: ServiceBusManagementClientConfiguration
:ivar operations: Operations operations
:vartype operations: azure.mgmt.servicebus.operations.Operations
:ivar namespaces: Namespaces operations
:vartype namespaces: azure.mgmt.servicebus.operatio... | 62598fb87047854f4633f517 |
@adapter(Interface, ICopyAction, Interface) <NEW_LINE> @implementer(IExecutable) <NEW_LINE> class CopyActionExecutor(object): <NEW_LINE> <INDENT> def __init__(self, context, element, event): <NEW_LINE> <INDENT> self.context = context <NEW_LINE> self.element = element <NEW_LINE> self.event = event <NEW_LINE> <DEDENT> de... | The executor for this action.
| 62598fb88e7ae83300ee91e1 |
class Service(service.Service): <NEW_LINE> <INDENT> def __init__(self, executable_path, port=0, service_args=None, log_path="geckodriver.log", env=None): <NEW_LINE> <INDENT> log_file = open(log_path, "a+") if log_path is not None and log_path != "" else None <NEW_LINE> service.Service.__init__( self, executable_path, p... | Object that manages the starting and stopping of the
GeckoDriver. | 62598fb81b99ca400228f5d1 |
class DiceAttBlock(Chain): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, reduction=4, **kwargs): <NEW_LINE> <INDENT> super(DiceAttBlock, self).__init__(**kwargs) <NEW_LINE> mid_channels = in_channels // reduction <NEW_LINE> with self.init_scope(): <NEW_LINE> <INDENT> self.conv1 = conv1x1( in_channel... | Pure attention part of DiCE block.
Parameters:
----------
in_channels : int
Number of input channels.
out_channels : int
Number of output channels.
reduction : int, default 4
Squeeze reduction value. | 62598fb897e22403b383b047 |
class Student: <NEW_LINE> <INDENT> def __init__(self, first_name, last_name, age): <NEW_LINE> <INDENT> self.first_name = first_name <NEW_LINE> self.last_name = last_name <NEW_LINE> self.age = age <NEW_LINE> <DEDENT> def to_json(self): <NEW_LINE> <INDENT> return self.__dict__ | Class Student. | 62598fb8956e5f7376df571e |
class _LasyConnection(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.connection = None <NEW_LINE> <DEDENT> def cursor(self): <NEW_LINE> <INDENT> if self.connection is None: <NEW_LINE> <INDENT> connection = engine.connect() <NEW_LINE> logging.info('open connection <%s>...' % hex(id(connection)... | 数据库连接类,只有当调用到cursor方法,也就是真正要操作数据库时,才会真正去连接数据库,
这样可以减小不必要的数据库连接,并且提供cleanup方法进行关闭数据库连接和清理。 | 62598fb8aad79263cf42e915 |
class ChooseChainTypeAction(argparse.Action): <NEW_LINE> <INDENT> chainTypes = { 'words': { 'chainjoiner':' ', 'eventjoiner':'', 'eventiterator':word_iter }, 'sentences': { 'chainjoiner':'\n', 'eventjoiner':' ', 'eventiterator':sentence_iter }, } <NEW_LINE> def __call__(self, parser, namespace, values, option_string=No... | This class is used as an action for the argparser, and as a registry
for the different types of chains supported by the program. | 62598fb810dbd63aa1c70cfa |
class Solution: <NEW_LINE> <INDENT> def isInterleave(self, s1, s2, s3): <NEW_LINE> <INDENT> n1, n2, n3 = len(s1), len(s2), len(s3) <NEW_LINE> if n1 + n2 != n3: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> f = [[False for _ in range(n2 + 1)] for _ in range(n1 + 1)] <NEW_LINE> f[0][0] = True <NEW_LINE> for i in r... | @param s1: A string
@param s2: A string
@param s3: A string
@return: Determine whether s3 is formed by interleaving of s1 and s2 | 62598fb8e1aae11d1e7ce8c5 |
class XRefs(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.code = set() <NEW_LINE> self.data = set() <NEW_LINE> <DEDENT> def __iadd__(self, other): <NEW_LINE> <INDENT> self.code.update(other.code) <NEW_LINE> self.data.update(other.data) <NEW_LINE> return self | Container for an instruction's code and data cross references. | 62598fb8e5267d203ee6ba41 |
class GandiOption(click.Option): <NEW_LINE> <INDENT> def display_value(self, ctx, value): <NEW_LINE> <INDENT> gandi = ctx.obj <NEW_LINE> gandi.log('%s: %s' % (self.name, (value if value is not None else 'Not found'))) <NEW_LINE> <DEDENT> def get_default(self, ctx): <NEW_LINE> <INDENT> value = click.Option.get_default(s... | Custom command option class for handling configuration files.
When no value was found on command line, try to pull it from configuration
Display default or configuration value when needed | 62598fb8be383301e025393e |
class FileStorage(): <NEW_LINE> <INDENT> __file_path = "file.json" <NEW_LINE> __objects = {} <NEW_LINE> def all(self): <NEW_LINE> <INDENT> return (self.__objects) <NEW_LINE> <DEDENT> def new(self, obj): <NEW_LINE> <INDENT> self.__objects.update({"{}.{}".format(obj.__class__.__name__, obj.id): obj}) <NEW_LINE> <DEDENT> ... | Stores Python dictionaries as JSON files | 62598fb863b5f9789fe852b0 |
class Bullet(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, start_x, start_y, dest_x, dest_y): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.image = pygame.Surface([4, 10]) <NEW_LINE> self.image.fill(WHITE) <NEW_LINE> self.rect = self.image.get_rect() <NEW_LINE> self.rect.x = start_x <NEW_LINE> ... | This class represents the bullet. | 62598fb826068e7796d4ca9b |
class InternalError(Exception): <NEW_LINE> <INDENT> pass | Raised on unrecoverable errors that abort task with 'internal error'. | 62598fb83346ee7daa3376e9 |
class ListBindingHelper(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def GetList(*__args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def GetListItemProperties(*__args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def GetListItemType(*__args): <NEW_LINE> <IN... | Provides functionality to discover a bindable list and the properties of the items contained in the list when they differ from the public properties of the object to which they bind. | 62598fb891f36d47f2230f4a |
class ColorTable(KaitaiStruct): <NEW_LINE> <INDENT> SEQ_FIELDS = ["entries"] <NEW_LINE> def __init__(self, _io, _parent=None, _root=None): <NEW_LINE> <INDENT> self._io = _io <NEW_LINE> self._parent = _parent <NEW_LINE> self._root = _root if _root else self <NEW_LINE> self._debug = collections.defaultdict(dict) <NEW_LIN... | .. seealso::
- section 19 - https://www.w3.org/Graphics/GIF/spec-gif89a.txt | 62598fb871ff763f4b5e78ba |
class RlModel(Model): <NEW_LINE> <INDENT> def step(self, observations) -> dict: <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def evaluate(self, rollout: Rollout) -> Evaluator: <NEW_LINE> <INDENT> raise NotImplementedError | Reinforcement learning model | 62598fb84c3428357761a3fe |
class TestAutoContentTypeAndAcceptHeaders: <NEW_LINE> <INDENT> def test_GET_no_data_no_auto_headers(self, httpbin): <NEW_LINE> <INDENT> r = http('GET', httpbin.url + '/headers') <NEW_LINE> assert HTTP_OK in r <NEW_LINE> assert r.json['headers']['Accept'] == '*/*' <NEW_LINE> assert 'Content-Type' not in r.json['headers'... | Test that Accept and Content-Type correctly defaults to JSON,
but can still be overridden. The same with Content-Type when --form
-f is used. | 62598fb855399d3f05626656 |
class InstantAction(Operation): <NEW_LINE> <INDENT> pass | An instant action attached to a distributed RDataFrame graph node. | 62598fb8a219f33f346c6948 |
class ServerInformation(Struct): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ServerInformation, self).__init__(Tags.SERVER_INFORMATION) <NEW_LINE> self.data = BytearrayStream() <NEW_LINE> self.validate() <NEW_LINE> <DEDENT> def read(self, istream, kmip_version=enums.KMIPVersion.KMIP_1_0): <NEW_LIN... | A structure containing vendor-specific fields and/or substructures.
Returned by KMIP servers upon receipt of a Query request for server
information. See Section 4.25 of the KMIP 1.1 specification for more
information.
Note:
There are no example structures nor data encodings in the KMIP
documentation of this object. T... | 62598fb85fdd1c0f98e5e0d2 |
class Template(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TemplateID = None <NEW_LINE> self.TemplateData = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.TemplateID = params.get("TemplateID") <NEW_LINE> self.TemplateData = params.get("TemplateData... | 模板发送相关信息,包含模板ID,模板变量参数等信息
| 62598fb856b00c62f0fb29fd |
class helloString_args(object): <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRING, 'word', 'UTF8', None, ), ) <NEW_LINE> def __init__(self, word=None,): <NEW_LINE> <INDENT> self.word = word <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.tra... | Attributes:
- word | 62598fb899cbb53fe683101b |
class Proxy(Pb2Base): <NEW_LINE> <INDENT> def __init__(self, data=None, **kwargs): <NEW_LINE> <INDENT> object.__setattr__(self, 'srcip_a', None) <NEW_LINE> super(Proxy, self).__init__(vxfld_pb2.Proxy, data=data, **kwargs) <NEW_LINE> <DEDENT> def add_proxy_ip(self, ip_addr): <NEW_LINE> <INDENT> if self._msg.proxy_ips an... | Proxy message from vxsnd to vxsnd.
| 62598fb81b99ca400228f5d2 |
class FloatDeltaInterpolateNode(ArmLogicTreeNode): <NEW_LINE> <INDENT> bl_idname = 'LNFloatDeltaInterpolateNode' <NEW_LINE> bl_label = 'Float Delta Interpolate' <NEW_LINE> arm_version = 1 <NEW_LINE> def arm_init(self, context): <NEW_LINE> <INDENT> self.add_input('ArmFloatSocket', 'From', default_value=0.0) <NEW_LINE> s... | Linearly interpolate to a new value with specified interpolation `Rate`.
@input From: Value to interpolate from.
@input To: Value to interpolate to.
@input Delta Time: Delta Time.
@input Rate: Rate of interpolation. | 62598fb8ec188e330fdf89d4 |
class ClassifiedsCategory(BaseBTreeFolder, BrowserDefaultMixin): <NEW_LINE> <INDENT> security = ClassSecurityInfo() <NEW_LINE> implements(interfaces.IClassifiedsCategory) <NEW_LINE> meta_type = 'ClassifiedsCategory' <NEW_LINE> _at_rename_after_creation = True <NEW_LINE> schema = ClassifiedsCategory_schema <NEW_LINE> de... | Category which can contain Classifieds (such as books) | 62598fb82c8b7c6e89bd3908 |
class Airport: <NEW_LINE> <INDENT> def __init__(self, iata, name, lat, long, currency, fuel): <NEW_LINE> <INDENT> self.iata = iata <NEW_LINE> self.name = name <NEW_LINE> self.lat = lat <NEW_LINE> self.long = long <NEW_LINE> self.currency = currency <NEW_LINE> self.fuel = fuel <NEW_LINE> <DEDENT> def get_lat(self): <NEW... | a class to store Airport objects | 62598fb8e1aae11d1e7ce8c6 |
class NoDatabaseException(FaitoutException): <NEW_LINE> <INDENT> pass | Exception thrown when someone has requested to drop a database
that does not exist. | 62598fb8e5267d203ee6ba43 |
class Phase(LMatrix): <NEW_LINE> <INDENT> def __init__(self,phase,n=1): <NEW_LINE> <INDENT> LMatrix.__init__(self,"Gate") <NEW_LINE> self.phase = phase <NEW_LINE> ph = larray([[1,0],[0,np.exp(1j*phase)]]) <NEW_LINE> phn = ph <NEW_LINE> for i in range(n-1): <NEW_LINE> <INDENT> ph = tensor_lazy(ph,phn) <NEW_LINE> <DEDENT... | Phase gate. Applies complex phase shift to qubit.
| 62598fb82c8b7c6e89bd3909 |
@api.route('/logout') <NEW_LINE> class LogoutApi(Resource): <NEW_LINE> <INDENT> @api.doc('user logout') <NEW_LINE> def post(self): <NEW_LINE> <INDENT> log_infos: Dict = { 'level': logging.DEBUG, 'msg': 'Logout request.', 'filename': __name__, 'funcName': sys._getframe().f_code.co_name } <NEW_LINE> custom_log_message(ap... | Logout resource | 62598fb8d486a94d0ba2c111 |
class HiveDecimal(HiveStringTypeBase): <NEW_LINE> <INDENT> impl = types.DECIMAL <NEW_LINE> def process_result_value(self, value, dialect): <NEW_LINE> <INDENT> if value is None: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return decimal.Decimal(value) | Translates strings to decimals | 62598fb801c39578d7f12ebe |
@dataclasses.dataclass <NEW_LINE> class GridParallelXEBTrialResultParameters: <NEW_LINE> <INDENT> data_collection_id: str <NEW_LINE> layer: GridInteractionLayer <NEW_LINE> depth: int <NEW_LINE> circuit_index: int <NEW_LINE> @property <NEW_LINE> def filename(self) -> str: <NEW_LINE> <INDENT> return os.path.join( self.da... | Parameters describing a trial result from a grid parallel XEB experiment.
Attributes:
data_collection_id: The data collection ID of the experiment.
layer: The grid layer specifying the pattern of two-qubit interactions
in a layer of two-qubit gates for the circuit used to obtain the
trial resul... | 62598fb8cc40096d6161a27b |
class MarzhauserRS232(RS232.RS232): <NEW_LINE> <INDENT> def __init__(self, **kwds): <NEW_LINE> <INDENT> self.live = True <NEW_LINE> self.unit_to_um = 1000.0 <NEW_LINE> self.um_to_unit = 1.0/self.unit_to_um <NEW_LINE> self.x = 0.0 <NEW_LINE> self.y = 0.0 <NEW_LINE> try: <NEW_LINE> <INDENT> super().__init__(**kwds) <NEW_... | Marzhauser RS232 interface class. | 62598fb85fdd1c0f98e5e0d3 |
class CustomerCreateForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Customer <NEW_LINE> fields = ['firstName', 'lastName', 'additionalName', 'ssn', 'address', 'zipCode', 'city', 'telephone', 'email', 'status', 'therapyCategory', 'sessionprice', 'sessionpriceKelaRefund'] <NEW_LINE> lab... | Create Customer form.
Field enhancements:
* therapyCategory uses forms.TypedChoiceField. | 62598fb8f9cc0f698b1c536f |
class InMemoryNumpyDataset(indexed_dataset.IndexedDataset): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.buffer = None <NEW_LINE> self.offsets = None <NEW_LINE> self.sizes = None <NEW_LINE> <DEDENT> def __getitem__(self, i): <NEW_LINE> <INDENT> assert i < self.__len__(), f"index {i} out of range!" <... | analogous to fairseq.indexed_dataset.IndexedInMemoryDataset | 62598fb8097d151d1a2c1176 |
class SatPrinter(object): <NEW_LINE> <INDENT> def __init__(self, vf, cc): <NEW_LINE> <INDENT> self.vf = vf <NEW_LINE> self.cc = cc <NEW_LINE> <DEDENT> def print_statistics(self): <NEW_LINE> <INDENT> print('Variables: ' + str(self.vf.count)) <NEW_LINE> print('Clauses: ' + str(len(self.cc.constraints))) <NEW_LINE> print(... | A class for printing SAT input. | 62598fb8167d2b6e312b70ba |
class TestPathResolver(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._galaxy_home = None <NEW_LINE> self._lwr_home = None <NEW_LINE> self.galaxy_data = TEST_DATA_DIR <NEW_LINE> self.galaxy_tools = TEST_TOOLS_DIR <NEW_LINE> self.galaxy_indices = TEST_INDICES_DIR <NEW_LINE> <DEDENT> @property ... | Dummy implementation of PathResolver
for unit testing. | 62598fb8e1aae11d1e7ce8c7 |
class AlwaysValidForm(forms.ModelForm): <NEW_LINE> <INDENT> def is_valid(self): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> model = Parameter <NEW_LINE> fields = '__all__' | A workaround for inlines without change permission not returning
all fields causing default ModelForm to complain. Data are unchanged
so form might be assumed to be always valid. | 62598fb8be383301e0253942 |
class Dice: <NEW_LINE> <INDENT> def __init__(self, sides: Optional[int] = 6): <NEW_LINE> <INDENT> if not isinstance(sides, int) or sides < 1: <NEW_LINE> <INDENT> raise DiceException('Invalid sides value received.') <NEW_LINE> <DEDENT> self.sides = sides <NEW_LINE> self.last_roll = None <NEW_LINE> <DEDENT> def roll(self... | The Dice object have some sides.
Args:
sides (int): The number of the sides of a dice instance.
Attributes:
last_roll (int|None): Result of the last roll of a dice instance.
Don't let a dice fall from the table. | 62598fb826068e7796d4ca9f |
class Rows_worker(Worker): <NEW_LINE> <INDENT> def __init__(self, hdf5_file, path, N, slice_queue, g_rows_sum): <NEW_LINE> <INDENT> super(self.__class__, self).__init__(hdf5_file, path, slice_queue) <NEW_LINE> self.N = N <NEW_LINE> self.g_rows_sum = g_rows_sum <NEW_LINE> <DEDENT> def process(self, rows_slice): <NEW_LIN... | The processes instantiated from this class compute the sums
of row entries in an array accessed at node 'path' from the
hierarchidal data format at 'hdf5_file'. Those sums are stored
in the shared multiprocessing.Array data structure 'g_rows_sum'. | 62598fb87d847024c075c502 |
class TextStats(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def fit(self, x, y=None): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def transform(self, message): <NEW_LINE> <INDENT> return [{'length': len(text) } for text in message] | Extract features from each document for DictVectorizer | 62598fb892d797404e388c06 |
class IINet(IntervalModule, ColorRangeModule): <NEW_LINE> <INDENT> settings = ( "format", ("username", "Username for IINet"), ("password", "Password for IINet"), ("start_color", "Beginning color for color range"), ("end_color", "End color for color range") ) <NEW_LINE> format = '{percent_used}' <NEW_LINE> start_color =... | Check IINet Internet usage.
Requires `requests` and `colour`
Formatters:
* `{percentage_used}` — percentage of your quota that is used
* `{percentage_available}` — percentage of your quota that is available
* `{used}` - GB of your quota used | 62598fb8a8370b77170f0525 |
class _String(LabeledWidget, ValueWidget): <NEW_LINE> <INDENT> _model_module = Unicode('jupyter-js-widgets').tag(sync=True) <NEW_LINE> _view_module = Unicode('jupyter-js-widgets').tag(sync=True) <NEW_LINE> value = Unicode(help="String value").tag(sync=True) <NEW_LINE> disabled = Bool(False, help="Enable or disable user... | Base class used to create widgets that represent a string. | 62598fb844b2445a339b6a17 |
class ContainerServiceSshConfiguration(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'public_keys': {'required': True}, } <NEW_LINE> _attribute_map = { 'public_keys': {'key': 'publicKeys', 'type': '[ContainerServiceSshPublicKey]'}, } <NEW_LINE> def __init__( self, *, public_keys: List["ContainerServi... | SSH configuration for Linux-based VMs running on Azure.
All required parameters must be populated in order to send to Azure.
:ivar public_keys: Required. The list of SSH public keys used to authenticate with Linux-based
VMs. A maximum of 1 key may be specified.
:vartype public_keys:
list[~azure.mgmt.containerservic... | 62598fb8a219f33f346c694c |
class PrmListe(Parametre): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Parametre.__init__(self, "liste", "list") <NEW_LINE> self.aide_courte = "liste les autoquêtes existantes" <NEW_LINE> self.aide_longue = "Cette commande liste les autoquêtes existantes." <NEW_LINE> <DEDENT> def interpreter(... | Commande 'autoquête liste'.
| 62598fb8097d151d1a2c1178 |
class TestCleanHeaders(TestCase): <NEW_LINE> <INDENT> def test_clean_headers(self): <NEW_LINE> <INDENT> request = HttpRequest() <NEW_LINE> wrapper = clean_headers('Vary', 'Accept-Encoding') <NEW_LINE> wrapped_view = wrapper(fake_view) <NEW_LINE> response = wrapped_view(request) <NEW_LINE> self.assertEqual(len(response.... | Test the `clean_headers` decorator. | 62598fb821bff66bcd722db0 |
class SpanVdest(AciResourceBase): <NEW_LINE> <INDENT> identity_attributes = t.identity( ('vdg_name', t.name), ('name', t.name)) <NEW_LINE> other_attributes = t.other( ('monitored', t.bool), ('display_name', t.name)) <NEW_LINE> _aci_mo_name = 'spanVDest' <NEW_LINE> _tree_parent = SpanVdestGroup <NEW_LINE> def __init__(s... | Resource representing a ERSPAN VDest in ACI.
Identity attributes are RNs for ERSPAN VDest. | 62598fb897e22403b383b04c |
class NodeRatingCount(models.Model): <NEW_LINE> <INDENT> node = models.OneToOneField(Node) <NEW_LINE> likes = models.IntegerField(default=0) <NEW_LINE> dislikes = models.IntegerField(default=0) <NEW_LINE> rating_count = models.IntegerField(default=0) <NEW_LINE> rating_avg = models.FloatField(default=0.0) <NEW_LINE> com... | Node Rating Count
Keep track of participation counts of nodes. | 62598fb856b00c62f0fb2a01 |
class SymbolReferencedError(SymbolError): <NEW_LINE> <INDENT> pass | Symbol cannot be removed because it is still in use. | 62598fb899cbb53fe683101f |
class Attachment(fhirelement.FHIRElement): <NEW_LINE> <INDENT> resource_name = "Attachment" <NEW_LINE> def __init__(self, jsondict=None): <NEW_LINE> <INDENT> self.contentType = None <NEW_LINE> self.creation = None <NEW_LINE> self.data = None <NEW_LINE> self.hash = None <NEW_LINE> self.language = None <NEW_LINE> self.si... | Content in a format defined elsewhere.
For referring to data content defined in other formats. | 62598fb8fff4ab517ebcd92f |
class token_ (pyxb.binding.basis.complexTypeDefinition): <NEW_LINE> <INDENT> _TypeDefinition = pyxb.binding.datatypes.token <NEW_LINE> _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_SIMPLE <NEW_LINE> _Abstract = False <NEW_LINE> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'token') <NEW_LINE> ... | Complex type {http://schemas.xmlsoap.org/soap/encoding/}token with content type SIMPLE | 62598fb82c8b7c6e89bd390d |
class ListOfCategoryDescriptions(APIView): <NEW_LINE> <INDENT> permission_classes = [permissions.IsAuthenticatedOrReadOnly] <NEW_LINE> def get_object(self, id): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return Category.objects.get(id=id) <NEW_LINE> <DEDENT> except Product.DoesNotExist: <NEW_LINE> <INDENT> raise Http... | Retrouvez la liste des descriptions d'une catégorie | 62598fb8796e427e5384e8dd |
class InformationDescriptor(object): <NEW_LINE> <INDENT> _connection_pool = weakref.WeakValueDictionary() <NEW_LINE> def __init__(self, model): <NEW_LINE> <INDENT> self.model = model <NEW_LINE> self.backrefs = {} <NEW_LINE> self.primary_key_field = None <NEW_LINE> db_name, host, port = self.model._meta.get('database') ... | Among other things, is responsible for generating and managing
pynch connections to the database. | 62598fb8f548e778e596b6ed |
class _stdform1(object): <NEW_LINE> <INDENT> def __init__(self, x, t): <NEW_LINE> <INDENT> self.rows = 1 <NEW_LINE> self.cols = 1 <NEW_LINE> self.optvars = set((x, t)) <NEW_LINE> self.x = x <NEW_LINE> self.t = t <NEW_LINE> <DEDENT> def indomain(self): <NEW_LINE> <INDENT> if value(self.x > 0): <NEW_LINE> <INDENT> return... | An F() standard form for -entropy(x) + t <= 0. | 62598fb83d592f4c4edbb006 |
class APIError(APIException): <NEW_LINE> <INDENT> def __init__(self, event): <NEW_LINE> <INDENT> reason = event.get("error_reason") <NEW_LINE> if reason: <NEW_LINE> <INDENT> suffix = " ({})".format(reason) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> suffix = "" <NEW_LINE> <DEDENT> APIException.__init__(self, "{}{}".f... | Raised by operations which check if an "error" API event happened.
.. attribute:: event
Dict[str, Any] | 62598fb83346ee7daa3376ec |
class UsageManager(base.ManagerWithFind): <NEW_LINE> <INDENT> resource_class = Usage <NEW_LINE> usage_prefix = 'os-simple-tenant-usage' <NEW_LINE> def _usage_query(self, start, end, marker=None, limit=None, detailed=None): <NEW_LINE> <INDENT> query = "?start=%s&end=%s" % (start.isoformat(), end.isoformat()) <NEW_LINE> ... | Manage :class:`Usage` resources. | 62598fb8851cf427c66b83fe |
class SolveLevelTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def callServer(self,level='SAD1.lvl', strategy='bfs', ma=False): <NEW_LINE> <INDENT> if ma: <NEW_LINE> <INDENT> client = 'main.py' <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> client = 'searchclient.py' <NEW_LINE> <DEDENT> args = str(r'java -jar server.j... | Application tests for solving levels. | 62598fb84c3428357761a404 |
class Literal: <NEW_LINE> <INDENT> datatype = "int" <NEW_LINE> uom = None <NEW_LINE> type = "literal" <NEW_LINE> def set_value(self,value): <NEW_LINE> <INDENT> if self.datatype == "int": <NEW_LINE> <INDENT> self.value = int(value) <NEW_LINE> <DEDENT> elif self.datatype == "float": <NEW_LINE> <INDENT> self.value = float... | Basic literal input or output object | 62598fb8be7bc26dc9251f00 |
class ThreadPool(object): <NEW_LINE> <INDENT> def __init__(self, max_num, max_task_num=None): <NEW_LINE> <INDENT> if max_task_num: <NEW_LINE> <INDENT> self.q = queue.Queue(max_task_num) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.q = queue.Queue() <NEW_LINE> <DEDENT> self.max_num = max_num <NEW_LINE> self.cancel... | 定义一个线程池类。 | 62598fb855399d3f0562665c |
class Cheshire3OaiMetadataWriter(object): <NEW_LINE> <INDENT> def __init__(self, txr): <NEW_LINE> <INDENT> self.txr = txr <NEW_LINE> <DEDENT> def __call__(self, element, rec): <NEW_LINE> <INDENT> if self.txr: <NEW_LINE> <INDENT> doc = self.txr.process_record(session, rec) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> d... | Cheshire3 Transforming MetadataWriter.
An implementation of a 'MetadataWriter' complying with the oaipmh module's
API. | 62598fb8a219f33f346c694e |
class ExperimentDescriptionListSerializer( ExperimentDescriptionBaseSerializer, ExperimentDescriptionRelationBaseSerializer, ExperimentDescriptionFieldMethodSerializer ): <NEW_LINE> <INDENT> url = hyperlinked_identity('research_api:experiment_description_detail', 'slug') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model... | Serialize all records in given fields into an API | 62598fb85fdd1c0f98e5e0d8 |
class Heading(Entity): <NEW_LINE> <INDENT> content: Array["InlineContent"] <NEW_LINE> depth: Optional[Integer] = None <NEW_LINE> def __init__( self, content: Array["InlineContent"], depth: Optional[Integer] = None, id: Optional[String] = None, meta: Optional[Object] = None ) -> None: <NEW_LINE> <INDENT> super().__init_... | A heading. | 62598fb8d7e4931a7ef3c1de |
class CreateUsagePlanRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.UsagePlanName = None <NEW_LINE> self.UsagePlanDesc = None <NEW_LINE> self.MaxRequestNum = None <NEW_LINE> self.MaxRequestNumPreSec = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> ... | CreateUsagePlan request structure.
| 62598fb8283ffb24f3cf39cc |
class lsmon_py(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.refresh() <NEW_LINE> <DEDENT> def query_lsmon(self): <NEW_LINE> <INDENT> lsmon = subprocess.Popen( LSM_LOCATION, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) <NEW_LINE> stdout_value, stderr_value = lsmon.commu... | Provides an interface between LUSAS licence monitor and Python. | 62598fb8fff4ab517ebcd931 |
class DescribeAllTableInfoForDbRequest(JDCloudRequest): <NEW_LINE> <INDENT> def __init__(self, parameters, header=None, version="v2"): <NEW_LINE> <INDENT> super(DescribeAllTableInfoForDbRequest, self).__init__( '/regions/{regionId}/instance/{instanceGid}/allTableInfoForDb', 'GET', header, version) <NEW_LINE> self.param... | 获取指定库下的所有表名 | 62598fb899cbb53fe6831021 |
class DatetimeOptions(AWSProperty): <NEW_LINE> <INDENT> props: PropsDictType = { "Format": (str, True), "LocaleCode": (str, False), "TimezoneOffset": (str, False), } | `DatetimeOptions <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-datetimeoptions.html>`__ | 62598fb8cc0a2c111447b155 |
class JobLogConfigModifyIterInfo(NetAppObject): <NEW_LINE> <INDENT> _error_code = None <NEW_LINE> @property <NEW_LINE> def error_code(self): <NEW_LINE> <INDENT> return self._error_code <NEW_LINE> <DEDENT> @error_code.setter <NEW_LINE> def error_code(self, val): <NEW_LINE> <INDENT> if val != None: <NEW_LINE> <INDENT> se... | Information about the modify operation that was
attempted/performed against job-log-config object.
not modified due to some error.
due to some error.
This element will be returned only if input element
'return-failure-list' is true. | 62598fb810dbd63aa1c70d02 |
class TestSetCheckbox(TestCase): <NEW_LINE> <INDENT> def test_initializer(self): <NEW_LINE> <INDENT> set_checkbox = SetCheckbox(ANY_CSS_PATH, ANY_HINT, True) <NEW_LINE> self.assertEqual(set_checkbox.css_path, ANY_CSS_PATH) <NEW_LINE> self.assertEqual(set_checkbox.hint, ANY_HINT) <NEW_LINE> self.assertEqual(set_checkbox... | Has unit tests for the set checkbox class | 62598fb8167d2b6e312b70be |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.