code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class SecurePermissionAPI(object): <NEW_LINE> <INDENT> def __init__(self, user): <NEW_LINE> <INDENT> self._user = user <NEW_LINE> self._permissions = CachingPermissionAPI(user) <NEW_LINE> <DEDENT> def get(self, values): <NEW_LINE> <INDENT> self._checkPermissions(values) <NEW_LINE> return self._permissions.get(values) <...
The public API to secure permission-related functionality. @param user: The L{User} to perform operations on behalf of.
62598fa792d797404e388af6
class PLSRegression(_PLS): <NEW_LINE> <INDENT> @_deprecate_positional_args <NEW_LINE> def __init__(self, n_components=2, *, scale=True, max_iter=500, tol=1e-06, copy=True): <NEW_LINE> <INDENT> super().__init__( n_components=n_components, scale=scale, deflation_mode="regression", mode="A", algorithm='nipals', max_iter=m...
PLS regression PLSRegression is also known as PLS2 or PLS1, depending on the number of targets. Read more in the :ref:`User Guide <cross_decomposition>`. .. versionadded:: 0.8 Parameters ---------- n_components : int, default=2 Number of components to keep. Should be in `[1, min(n_samples, n_features, n_tar...
62598fa726068e7796d4c87b
class Maze: <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> if os.path.isfile(filename) is False: <NEW_LINE> <INDENT> self.status = False <NEW_LINE> print(ERR_FILE.format(filename)) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> with open(filename, "r") as maze_data: <NEW_LINE> <INDENT> splited_maz...
Provides a usable maze from a text file Checks the maze compatibility Moves the player to it
62598fa799cbb53fe6830df8
class SplashQWebView(QWebView): <NEW_LINE> <INDENT> onBeforeClose = None <NEW_LINE> def closeEvent(self, event): <NEW_LINE> <INDENT> dont_close = False <NEW_LINE> if self.onBeforeClose: <NEW_LINE> <INDENT> dont_close = self.onBeforeClose() <NEW_LINE> <DEDENT> if dont_close: <NEW_LINE> <INDENT> event.ignore() <NEW_LINE>...
QWebView subclass that handles 'close' requests.
62598fa74f6381625f19944f
class Axis3D(Enum): <NEW_LINE> <INDENT> POS_X = 0 <NEW_LINE> NEG_X = 1 <NEW_LINE> POS_Y = 2 <NEW_LINE> NEG_Y = 3 <NEW_LINE> POS_Z = 4 <NEW_LINE> NEG_Z = 5 <NEW_LINE> def index(self): <NEW_LINE> <INDENT> if self is Axis3D.POS_X or self is Axis3D.NEG_X: <NEW_LINE> <INDENT> return X <NEW_LINE> <DEDENT> elif self is Axis3D...
An enum with values representing each axis in three-dimensional space, indexed as follows: 0: POS_X 1: NEG_X 2: POS_Y 3: NEG_Y 4: POS_Z 5: NEG_Z
62598fa70c0af96317c562a5
class InputSplitter(IPyInputSplitter): <NEW_LINE> <INDENT> def push(self, lines): <NEW_LINE> <INDENT> self._store(lines) <NEW_LINE> source = self.source <NEW_LINE> self.code, self._is_complete = None, None <NEW_LINE> if source.endswith('\\\n'): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDEN...
A specialized version of IPython's input splitter. The major differences between this and the base version are: - push considers a SyntaxError as incomplete code - push_accepts_more returns False when the indentation has return flush regardless of whether the statement is a single line
62598fa7627d3e7fe0e06dcf
class ResNet(nn.Module): <NEW_LINE> <INDENT> def __init__(self, block, duplicates, num_classes=10): <NEW_LINE> <INDENT> super(ResNet, self).__init__() <NEW_LINE> self.in_channels = 32 <NEW_LINE> self.conv1 = conv3x3(in_channels=3, out_channels=32) <NEW_LINE> self.bn = nn.BatchNorm2d(num_features=32) <NEW_LINE> self.rel...
Residual Neural Network.
62598fa732920d7e50bc5f78
class Solution: <NEW_LINE> <INDENT> def subtractProductAndSum(self, n: int) -> int: <NEW_LINE> <INDENT> digits = [int(digit) for digit in str(n)] <NEW_LINE> product = reduce(lambda a, b: a * b, digits) <NEW_LINE> return product - sum(digits)
Runtime: 52 ms, faster than 5.52% of Python3 Memory Usage: 14.4 MB, less than 9.83% of Python3
62598fa74428ac0f6e658446
class VpnClientConfiguration(Model): <NEW_LINE> <INDENT> _attribute_map = { 'vpn_client_address_pool': {'key': 'vpnClientAddressPool', 'type': 'AddressSpace'}, 'vpn_client_root_certificates': {'key': 'vpnClientRootCertificates', 'type': '[VpnClientRootCertificate]'}, 'vpn_client_revoked_certificates': {'key': 'vpnClien...
VpnClientConfiguration for P2S client. :param vpn_client_address_pool: Gets or sets the reference of the Address space resource which represents Address space for P2S VpnClient. :type vpn_client_address_pool: ~azure.mgmt.network.v2015_06_15.models.AddressSpace :param vpn_client_root_certificates: VpnClientRootCertif...
62598fa71f037a2d8b9e400f
class Cart(object): <NEW_LINE> <INDENT> def __init__(self, request): <NEW_LINE> <INDENT> self.session = request.session <NEW_LINE> cart = self.session.get(settings.CART_SESSION_ID) <NEW_LINE> if not cart: <NEW_LINE> <INDENT> cart = self.session[settings.CART_SESSION_ID] = {} <NEW_LINE> <DEDENT> self.cart = cart <NEW_LI...
Manage the shopping cart
62598fa7fff4ab517ebcd708
@registry.register_class_label_modality("onehot_softmax_max_pooling") <NEW_LINE> class SoftmaxMaxPoolingClassLabelModality(OneHotClassLabelModality): <NEW_LINE> <INDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return "softmax_max_pooling_onehot_class_label_modality_%d_%d" % ( self._vocab_size, self._bo...
Softmax cross-entropy applied on max-pooling over timesteps.
62598fa74e4d562566372348
class VSResume(CLIRunnable): <NEW_LINE> <INDENT> action = 'resume' <NEW_LINE> def execute(self, args): <NEW_LINE> <INDENT> virtual_guest = self.client['Virtual_Guest'] <NEW_LINE> vsi = VSManager(self.client) <NEW_LINE> vs_id = resolve_id(vsi.resolve_ids, args.get('<identifier>'), 'VS') <NEW_LINE> virtual_guest.resume(i...
usage: sl vs resume <identifier> [options] Resumes a paused virtual server
62598fa7a8ecb03325871133
class DiscussionSearchAlertTest(UniqueCourseTest): <NEW_LINE> <INDENT> SEARCHED_USERNAME = "gizmo" <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(DiscussionSearchAlertTest, self).setUp() <NEW_LINE> CourseFixture(**self.course_info).install() <NEW_LINE> self.searched_user_id = AutoAuthPage( self.browser, username...
Tests for spawning and dismissing alerts related to user search actions and their results.
62598fa756ac1b37e6302110
@register_workload('GLOBETRAFF') <NEW_LINE> class GlobetraffWorkload(object): <NEW_LINE> <INDENT> def __init__(self, topology, reqs_file, contents_file, beta=0, **kwargs): <NEW_LINE> <INDENT> if beta < 0: <NEW_LINE> <INDENT> raise ValueError('beta must be positive') <NEW_LINE> <DEDENT> self.receivers = [v for v in topo...
Parse requests from GlobeTraff workload generator All requests are mapped to receivers uniformly unless a positive *beta* parameter is specified. If a *beta* parameter is specified, then receivers issue requests at different rates. The algorithm used to determine the requests rates for each receiver is the following:...
62598fa7925a0f43d25e7f62
class Game(AbstractGame): <NEW_LINE> <INDENT> def __init__(self, seed=None): <NEW_LINE> <INDENT> self.env = Klop(6) <NEW_LINE> <DEDENT> def step(self, action): <NEW_LINE> <INDENT> observation, reward, done = self.env.step(action) <NEW_LINE> return observation, reward, done <NEW_LINE> <DEDENT> def to_play(self): <NEW_LI...
Game wrapper.
62598fa776e4537e8c3ef4d1
class PaymentCreate(SuccessMessageMixin, PaymentFormViewMixin, ModelFormWidgetMixin, CreateView): <NEW_LINE> <INDENT> success_message = "Payment was created successfully" <NEW_LINE> success_url = reverse_lazy('finances:payments_list')
Payment create view
62598fa7baa26c4b54d4f1d4
class FileServer: <NEW_LINE> <INDENT> def receive_file(self, file, folder): <NEW_LINE> <INDENT> print('FS: Opening sever: localhost port: 7100') <NEW_LINE> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) <NEW_LINE> s.bind(('localhost', 7100)) <NEW_LINE> s.listen(5) <NEW_LINE> print('FS: Waiting for connection') <...
FileServer class: A small self contained class that creates a independent socket purely for receiving a file sent from a client connection. Once the file has been received the socket is closed off. Uses a hardcoded server and port.
62598fa7d486a94d0ba2bef2
@dataclass <NEW_LINE> class Side: <NEW_LINE> <INDENT> isInBed: bool <NEW_LINE> alertDetailedMessage: str <NEW_LINE> sleepNumber: int <NEW_LINE> alertId: int <NEW_LINE> lastLink: str <NEW_LINE> pressure: int <NEW_LINE> side: str <NEW_LINE> sleeper: Sleeper <NEW_LINE> @staticmethod <NEW_LINE> def from_dict(data: Dict[str...
Return a side status
62598fa710dbd63aa1c70ad7
class DescribeAssetImageListExportRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ExportField = None <NEW_LINE> self.Limit = None <NEW_LINE> self.Offset = None <NEW_LINE> self.Filters = None <NEW_LINE> self.By = None <NEW_LINE> self.Order = None <NEW_LINE> <DEDENT> def _deserial...
DescribeAssetImageListExport请求参数结构体
62598fa78e71fb1e983bb9d7
class UsernameWithoutPassword(LoginError): <NEW_LINE> <INDENT> pass
A user-name was provided without a corresponding password.
62598fa766673b3332c302ef
class Major: <NEW_LINE> <INDENT> def __init__(self,major,flag,course): <NEW_LINE> <INDENT> self.major = major <NEW_LINE> self.flag =flag <NEW_LINE> self.course = course
Major class to hold details of required and elective course for each major
62598fa701c39578d7f12ca4
class Shell_Restoring_Aux (rubber.depend.Shell): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def initialize (cls, document): <NEW_LINE> <INDENT> cls.aux = document.basename (with_suffix = ".aux") <NEW_LINE> cls.bak = document.basename (with_suffix = ".aux.tmp") <NEW_LINE> document.add_product (cls.bak) <NEW_LINE> <DEDE...
This class replaces Shell because of a bug in asymptote. Every run of /usr/bin/asy flushes the .aux file.
62598fa75fc7496912d48216
class MySqlClientPool(ReusabletPool): <NEW_LINE> <INDENT> def _create_object(self): <NEW_LINE> <INDENT> return MySqlClient()
Mysql连接池
62598fa77d847024c075c2e9
class UnknownVolumeTypeException(DbcentralException): <NEW_LINE> <INDENT> def __init__(self, volume_type): <NEW_LINE> <INDENT> self.volumetype = volume_type <NEW_LINE> msg = 'Volume type "%s" in cluster database not understood' % volume_type <NEW_LINE> DbcentralException.__init__(self, msg=msg) <NEW_LINE> <DEDENT> def ...
The Dbcentral cluster database contains an unknown Volume type.
62598fa7e5267d203ee6b830
class CompressedStaticFilesMixin(object): <NEW_LINE> <INDENT> def post_process(self, *args, **kwargs): <NEW_LINE> <INDENT> super_post_process = getattr( super(CompressedStaticFilesMixin, self), 'post_process', self.fallback_post_process) <NEW_LINE> files = super_post_process(*args, **kwargs) <NEW_LINE> if not kwargs.ge...
Wraps a StaticFilesStorage instance to compress output files
62598fa74428ac0f6e658447
class visualizer: <NEW_LINE> <INDENT> def draw_it(self,**args): <NEW_LINE> <INDENT> set_figsize = 7 <NEW_LINE> if 'set_figsize' in args: <NEW_LINE> <INDENT> set_figsize = args['set_figsize'] <NEW_LINE> <DEDENT> set_axis = 'on' <NEW_LINE> if 'set_axis' in args: <NEW_LINE> <INDENT> set_axis = args['set_axis'] <NEW_LINE> ...
Draw 3d quadratic ranging from convex
62598fa71f037a2d8b9e4011
class Meta: <NEW_LINE> <INDENT> abstract = True
Meta class.
62598fa73cc13d1c6d465691
class Task(): <NEW_LINE> <INDENT> def __init__(self, init_pose=None, init_velocities=None, init_angle_velocities=None, runtime=5., target_pos=None): <NEW_LINE> <INDENT> self.sim = PhysicsSim(init_pose, init_velocities, init_angle_velocities, runtime) <NEW_LINE> self.action_repeat = 3 <NEW_LINE> self.state_size = self.a...
Task (environment) that defines the goal and provides feedback to the agent.
62598fa78e7ae83300ee8fc7
class PackagePluginManager(PluginManager): <NEW_LINE> <INDENT> PLUGIN_MANIFEST = 'plugins.py' <NEW_LINE> plugin_path = List(Directory) <NEW_LINE> @on_trait_change('plugin_path[]') <NEW_LINE> def _plugin_path_changed(self, obj, trait_name, removed, added): <NEW_LINE> <INDENT> self._update_sys_dot_path(removed, added) <N...
A plugin manager that finds plugins in packages on the 'plugin_path'. All items in 'plugin_path' are directory names and they are all added to 'sys.path' (if not already present). Each directory is then searched for plugins as follows:- a) If the package contains a 'plugins.py' module, then we import it and look for ...
62598fa74e4d56256637234a
class BinRequestModel(Model): <NEW_LINE> <INDENT> _validation = { 'card_number': {'required': True}, } <NEW_LINE> _attribute_map = { 'card_number': {'key': 'cardNumber', 'type': 'str'}, } <NEW_LINE> def __init__(self, card_number): <NEW_LINE> <INDENT> super(BinRequestModel, self).__init__() <NEW_LINE> self.card_number ...
The request model sent by the client for retrieving credit card bin information. :param card_number: The number on the credit card. :type card_number: str
62598fa77047854f4633f2ff
class _DendrogramNode(object): <NEW_LINE> <INDENT> def __init__(self, value, *children): <NEW_LINE> <INDENT> self._value = value <NEW_LINE> self._children = children <NEW_LINE> <DEDENT> def leaves(self, values=True): <NEW_LINE> <INDENT> if self._children: <NEW_LINE> <INDENT> leaves = [] <NEW_LINE> for child in self._ch...
Tree node of a dendrogram.
62598fa738b623060ffa8fbd
class AllRecentActions(modules.DashboardModule): <NEW_LINE> <INDENT> title = _('All Recent Actions') <NEW_LINE> template = 'grappelli/dashboard/modules/recent_actions_all.html' <NEW_LINE> limit = 10 <NEW_LINE> include_list = None <NEW_LINE> exclude_list = None <NEW_LINE> def __init__(self, title=None, limit=10, include...
Module that lists the recent actions for the current user.
62598fa78da39b475be03108
@skipIf(NO_MOCK, NO_MOCK_REASON) <NEW_LINE> class EventTestCase(TestCase, LoaderModuleMockMixin): <NEW_LINE> <INDENT> def setup_loader_modules(self): <NEW_LINE> <INDENT> return { event: { '__opts__': { 'id': 'id', 'sock_dir': TMP, 'transport': 'zeromq' } } } <NEW_LINE> <DEDENT> def test_fire_master(self): <NEW_LINE> <I...
Test cases for salt.modules.event
62598fa75fdd1c0f98e5debe
class MiniPost: <NEW_LINE> <INDENT> def __init__(self, in_post_id, in_title, in_date): <NEW_LINE> <INDENT> self.post_id = in_post_id <NEW_LINE> self.title = in_title <NEW_LINE> self.date = in_date
A minipost contains just the title, numerical selector, and post_id
62598fa8be8e80087fbbef88
class TestIsPrime(unittest.TestCase): <NEW_LINE> <INDENT> def test_is_prime(self): <NEW_LINE> <INDENT> primes = [n for n in range(20) if is_prime(n)] <NEW_LINE> assert_that([2, 3, 5, 7, 11, 13, 17, 19], equal_to(primes))
Testing of is_prime function.
62598fa8f9cc0f698b1c525b
class Multi(Field): <NEW_LINE> <INDENT> def __init__(self, keys: t.Sequence[str], **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.keys: t.Sequence[str] = keys <NEW_LINE> <DEDENT> def get_value(self, message: Message) -> JSONValue: <NEW_LINE> <INDENT> values = [] <NEW_LINE> for key in self.keys...
Returns a JSON array made of multiple JSON values. Retrieves the each JSON value at each given key and builds a JSON array from them as the field value. Parameters ---------- keys: Sequence[str] Sequence of JSON keys to retrieve.
62598fa8e5267d203ee6b831
class ShaderPart(object): <NEW_LINE> <INDENT> def __init__(self, name, variables="", vertex_functions="", fragment_functions="", **kwargs): <NEW_LINE> <INDENT> if not re.match(r'^[\w\.]+$', name): <NEW_LINE> <INDENT> raise Exception("The shader name {!r} contains an invalid character. Shader names are limited to ASCII ...
Arguments are as for register_shader.
62598fa89c8ee82313040103
class G15CalendarPreferences(g15accounts.G15AccountPreferences): <NEW_LINE> <INDENT> def __init__(self, parent, gconf_client, gconf_key): <NEW_LINE> <INDENT> g15accounts.G15AccountPreferences.__init__(self, parent, gconf_client, gconf_key, ...
Configuration UI
62598fa8b7558d5895463555
class TimeRecorder(): <NEW_LINE> <INDENT> def __init__(self, decay=0.9995, max_seconds=10): <NEW_LINE> <INDENT> self.moving_average = ThreadSafeMovingAverageRecorder(decay) <NEW_LINE> self.max_seconds = max_seconds <NEW_LINE> self.started = False <NEW_LINE> <DEDENT> @contextmanager <NEW_LINE> def time(self): <NEW_LINE>...
Records average of whatever context block it is recording Don't call time in two threads
62598fa82c8b7c6e89bd36eb
class LibraryCache(Cache): <NEW_LINE> <INDENT> _impl_class = CustomCodeLibraryCacheImpl
Implements Cache that saves and loads CodeLibrary objects for additional feature for the specified python function.
62598fa863d6d428bbee26d8
class GridWorldState(object): <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> self._is_terminal = False <NEW_LINE> self.data = [x, y] <NEW_LINE> self.x = round(x, 5) <NEW_LINE> self.y = round(y, 5) <NEW_LINE> <DEDENT> def is_terminal(self): <NEW_LINE> <INDENT> return self._is_terminal <NEW_LINE> <DEDE...
Class for Grid World States
62598fa8a8370b77170f0301
class ConferencePageMainRegistrationLinks(Orderable, AbstractButton): <NEW_LINE> <INDENT> page = ParentalKey('conferences.ConferencePage', related_name='main_registration') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> verbose_name = 'Main Registration Link' <NEW_LINE> verbose_name_plural = 'Main Registration Links' <NEW_...
Creates a through table for the main registration buttons on conference pages.
62598fa857b8e32f525080ae
class Broadcast(Action): <NEW_LINE> <INDENT> def __init__(self, broadcast): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.priority = 100 <NEW_LINE> self.broadcast = broadcast
Encapsulation of a broadcast message
62598fa86aa9bd52df0d4def
class DictObjectSet(set, MutableSet, SelfObjectifyMixin): <NEW_LINE> <INDENT> def __init__(self, iterable=None): <NEW_LINE> <INDENT> super(DictObjectSet, self).__init__(DictObjectSet.iterator_objectified(iterable)) <NEW_LINE> <DEDENT> def add(self, element): <NEW_LINE> <INDENT> super(DictObjectSet, self).add(DictObject...
List which wraps the builtin set, to automatically objectify any dicts/lists in this set. Examples: >>> s = {"hi", 1, True, None} >>> dict_s = DictObjectSet(s) >>> dict_s == s True >>> dict_s.update([False, 1,2,3]) >>> dict_s == {False, True, 2, 3, None, 'hi'} True
62598fa8a17c0f6771d5c15b
class DeterministicModulePolicy(nn.Module, Policy): <NEW_LINE> <INDENT> def __init__(self, pi): <NEW_LINE> <INDENT> nn.Module.__init__(self) <NEW_LINE> Policy.__init__(self) <NEW_LINE> self.pi = pi <NEW_LINE> <DEDENT> def act(self, states): <NEW_LINE> <INDENT> return self.pi(states)
Provide a Policy interface to a deterministic policy module. Output is an action vector or disc
62598fa8aad79263cf42e6fb
class PPC(Enum): <NEW_LINE> <INDENT> WC_WC = 0 <NEW_LINE> WC_HI = 1 <NEW_LINE> HI_WC = 2 <NEW_LINE> HI_HI = 3 <NEW_LINE> WC_LO = 4 <NEW_LINE> LO_WC = 5 <NEW_LINE> HI_LO = 6 <NEW_LINE> LO_HI = 7 <NEW_LINE> LO_LO = 8 <NEW_LINE> WC_AR = 9 <NEW_LINE> AR_WC = 10 <NEW_LINE> HI_AR = 11 <NEW_LINE> AR_HI = 12 <NEW_LINE> WC_EM =...
Enum for every possible port pair class (PPC). PPC is pair consisting of source and destination port classes. There are 25 total PPC for every combination of source and destination port classes.
62598fa8009cb60464d01445
class TestRecordGeneralTask(unittest.TestCase): <NEW_LINE> <INDENT> def test_record_general(self): <NEW_LINE> <INDENT> task = RecordGeneralTask() <NEW_LINE> retval = task.run(18, 'WikiApiary', 'https://wikiapiary.com/w/api.php') <NEW_LINE> if 'edit' not in retval: <NEW_LINE> <INDENT> raise Exception(retval) <NEW_LINE> ...
Test the methods that access general siteinfo.
62598fa856b00c62f0fb27d9
class LockingShiftProcedure(Packet): <NEW_LINE> <INDENT> name = "Locking Shift Procedure" <NEW_LINE> fields_desc = [ BitField("lockShift", 0x0, 1), BitField("codesetId", 0x0, 3) ]
Locking shift procedure Section 10.5.4.2
62598fa8d7e4931a7ef3bfc2
class RunFilterSet(filters.FilterSet): <NEW_LINE> <INDENT> filters = [ filters.ChoicesFilter("status", choices=model.Run.STATUS), filters.ModelFilter( "product", lookup="productversion__product", queryset=model.Product.objects.all()), filters.ModelFilter( "productversion", queryset=model.ProductVersion.objects.all().se...
FilterSet for runs.
62598fa8fff4ab517ebcd70b
class ajaxGetDrugProhibitions(BrowserView): <NEW_LINE> <INDENT> def __call__(self): <NEW_LINE> <INDENT> plone.protect.CheckAuthenticator(self.request) <NEW_LINE> searchTerm = 'searchTerm' in self.request and self.request['searchTerm'].lower() or '' <NEW_LINE> page = self.request['page'] <NEW_LINE> nr_rows = self.reques...
Drug Prohibition Explanations vocabulary source for jquery combo dropdown box
62598fa88c0ade5d55dc3624
class UpdateAllStatusesInputSet(InputSet): <NEW_LINE> <INDENT> def set_APICredentials(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'APICredentials', value) <NEW_LINE> <DEDENT> def set_Message(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'Message', value)
An InputSet with methods appropriate for specifying the inputs to the UpdateAllStatuses Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
62598fa823849d37ff850fdb
class IdlCompiler(object): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> def __init__(self, output_directory, code_generator=None, interfaces_info=None, interfaces_info_filename='', only_if_changed=False): <NEW_LINE> <INDENT> self.code_generator = code_generator <NEW_LINE> if interfaces_info_filename: <NEW...
Abstract Base Class for IDL compilers. In concrete classes: * self.code_generator must be set, implementing generate_code() (returning a list of output code), and * compile_file() must be implemented (handling output filenames).
62598fa899fddb7c1ca62d7c
class SpecialMixerComponent( MixerComponent ): <NEW_LINE> <INDENT> def set_master_select_button( self, button ): <NEW_LINE> <INDENT> self.master_strip().set_select_button( button ) <NEW_LINE> <DEDENT> def set_track_select_values( self, selected, not_selected, empty ): <NEW_LINE> <INDENT> for strip in self._channel_stri...
Mixer component that uses the SpecialChannelStripComponent. Allows to set a master select button and to set values for the track select buttons.
62598fa8090684286d59366f
class DGProtection(GroupBase): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__()
Protection model for DG.
62598fa8fff4ab517ebcd70c
class SqlAlchemyConfig(Config): <NEW_LINE> <INDENT> _DRIVER = None <NEW_LINE> _ROOT = None <NEW_LINE> _PASSWORD = None <NEW_LINE> @property <NEW_LINE> def SQLALCHEMY_DATABASE_URI(self): <NEW_LINE> <INDENT> return f"{self._DB}+{self._DRIVER}://{self._ROOT}:{self._PASSWORD}@{self._DB_SERVER}:{self._DB_PORT}/{self._DB_NAM...
配置SqlAlchemy ORM
62598fa8a8ecb03325871137
class ChangeCompareValue(tk.Toplevel): <NEW_LINE> <INDENT> def __init__(self, _master): <NEW_LINE> <INDENT> tk.Toplevel.__init__(self, _master) <NEW_LINE> self.title("Change PWM timing compare value") <NEW_LINE> tk.Label(self, text="Enter value to place in timing PWM compare register").pack(side='top') <NEW_LINE> tk.La...
Allow the user to change the compare value of the PWM, for testing, sets when the ADC goes after the DAC is changes
62598fa85fdd1c0f98e5dec0
class CardLayoutParameter(CardSearchParam): <NEW_LINE> <INDENT> def __init__(self, layout: str): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.layout = layout <NEW_LINE> <DEDENT> def query(self) -> Q: <NEW_LINE> <INDENT> query = Q(card__layout=self.layout) <NEW_LINE> return ~query if self.negated else query <N...
Parameter for whether a card has any phyrexian mana symbols or not
62598fa8f7d966606f747f0c
class LogoutEvent(object): <NEW_LINE> <INDENT> pass
Answer returned when a user click on the logout button
62598fa8d268445f26639b17
class TestApp(Script): <NEW_LINE> <INDENT> def __init__(self, name="testapp"): <NEW_LINE> <INDENT> Script.__init__(self, name) <NEW_LINE> return <NEW_LINE> <DEDENT> def main(self): <NEW_LINE> <INDENT> from pylith.utils.PetscManager import PetscManager <NEW_LINE> petsc = PetscManager() <NEW_LINE> petsc.options = [("mall...
Test application.
62598fa82ae34c7f260ab009
class VersionedError(Exception): <NEW_LINE> <INDENT> pass
Base error class.
62598fa83317a56b869be4de
class meta(nodes.Special, nodes.PreBibliographic, nodes.Element): <NEW_LINE> <INDENT> pass
HTML-specific "meta" element.
62598fa824f1403a92685847
class BaseResource(Resource): <NEW_LINE> <INDENT> method_decorators = []
Base resource API handler.
62598fa89c8ee82313040104
class RobotInterface(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> vrep.simxFinish(-1) <NEW_LINE> self.clientID = vrep.simxStart("127.0.0.1", 19997, True, True, 5000, 5) <NEW_LINE> vrep.simxStopSimulation(self.clientID, vrep.simx_opmode_oneshot) <NEW_LINE> vrep.simxStartSimulation(self.clientID, vrep.s...
Esta classe facilita a interface com o simulador
62598fa8dd821e528d6d8e5d
class LabelUpdate(object): <NEW_LINE> <INDENT> openapi_types = { 'name': 'str', 'properties': 'object' } <NEW_LINE> attribute_map = { 'name': 'name', 'properties': 'properties' } <NEW_LINE> def __init__(self, name=None, properties=None): <NEW_LINE> <INDENT> self._name = None <NEW_LINE> self._properties = None <NEW_LINE...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598fa876e4537e8c3ef4d4
class Company: <NEW_LINE> <INDENT> def __init__(self, state, people, market, fixed_overhead): <NEW_LINE> <INDENT> self.state = state <NEW_LINE> self.people = people <NEW_LINE> self.market = market <NEW_LINE> self.overhead = fixed_overhead <NEW_LINE> <DEDENT> def month(self, market_fit_emphasis): <NEW_LINE> <INDENT> sel...
The company itself :param state: an initial state :param people: the people involved :param market: the market in which they operate :param fixed_overhead: monthly fixed overhead :param cost_of_sale: as a fraction
62598fa8be383301e0253720
class UnitialisedPinException(Exception): <NEW_LINE> <INDENT> pass
Exception for when you try and use an unintialised pin
62598fa860cbc95b06364274
class MouseButtonPressedEvent(MouseButtonEvent): <NEW_LINE> <INDENT> def __str__(self) -> str: <NEW_LINE> <INDENT> return "MouseButtonPressedEvent[tick=" + str(self.tick) + ", button=" + str(self.button) + ", " + "position=" + str(self.position) + ", canceled=" + str(self._canceled) + "]"
The type of MouseButtonEvent used for mouse button press event. This kind of event is fired whenever a mouse button is being pressed. Unlike the MouseDraggedEvent, this event is only issued once before the key got released. Attributes ---------- tick: int The tick at which the event got fired. button: int The...
62598fa8097d151d1a2c0f50
class WildcardType(Type): <NEW_LINE> <INDENT> pass
Unfortunately, without proper library mechanisms, when a service calls one of an endpoint's methods, we do not know the type that that method returns. To deal with this, allowing an endpoint method call to return a "WildcardType." A WildcardType can match anything, and it's up to the programmer to ensure that types m...
62598fa826068e7796d4c882
class GlobalSettings(object): <NEW_LINE> <INDENT> site_title = "哈尔滨医科大学网站管理后台" <NEW_LINE> site_footer = "哈尔滨医科大学" <NEW_LINE> menu_style = "accordion"
xadmin的全局配置
62598fa8460517430c431ff0
class Station: <NEW_LINE> <INDENT> def __init__(self, api_object): <NEW_LINE> <INDENT> self.name = api_object["locationName"] <NEW_LINE> self.crs = api_object["crs"] <NEW_LINE> self.via = api_object["via"]
Describes a station within the National Rail network
62598fa899cbb53fe6830dfe
class SingerPart(UUIDPkMixin, models.Model): <NEW_LINE> <INDENT> is_main_part = models.BooleanField(default=True) <NEW_LINE> song_part = models.ForeignKey(SongPart, related_name="singer_parts") <NEW_LINE> singer = models.ForeignKey("Singer", related_name="singer_parts") <NEW_LINE> class Meta: <NEW_LINE> <INDENT> app_la...
A given singer can sing a given song part
62598fa84f88993c371f049e
class pltfm_mgr_qsfp_threshold_t(object): <NEW_LINE> <INDENT> def __init__(self, highalarm=None, lowalarm=None, highwarning=None, lowwarning=None,): <NEW_LINE> <INDENT> self.highalarm = highalarm <NEW_LINE> self.lowalarm = lowalarm <NEW_LINE> self.highwarning = highwarning <NEW_LINE> self.lowwarning = lowwarning <NEW_L...
Attributes: - highalarm - lowalarm - highwarning - lowwarning
62598fa821bff66bcd722b8e
class Comparable(Interface): <NEW_LINE> <INDENT> __cmp_body__ = __rcmp_body__ = Interface.error <NEW_LINE> def __cmp__(iself, other): <NEW_LINE> <INDENT> __cmp_body__(iself, other) <NEW_LINE> <DEDENT> def __rcmp__(iself, other): <NEW_LINE> <INDENT> __rcmp_body__(iself, other)
Interface for instances which are less-than, equal-to or greater-than each other. Specifies the following methods: iself.__cmp__(other) - return whether `iself' is <, ==, or > `other' iself.__rcmp__(other) - return whether `other' is <, ==, or > `iself'
62598fa8f548e778e596b4cd
class ReplayBuffer: <NEW_LINE> <INDENT> def __init__(self, action_size, buffer_size, batch_size, seed): <NEW_LINE> <INDENT> self.action_size = action_size <NEW_LINE> self.memory = deque(maxlen=buffer_size) <NEW_LINE> self.batch_size = batch_size <NEW_LINE> self.experience = namedtuple("Experience", field_names=[ "state...
Fixed-size buffer to store experience tuples.
62598fa866673b3332c302f3
class AddBoxView(BoxForm): <NEW_LINE> <INDENT> plus_btn = Dropdown('Add') <NEW_LINE> @property <NEW_LINE> def is_displayed(self): <NEW_LINE> <INDENT> return ( self.in_customization and self.service_dialogs.is_opened and self.title.text == "Adding a new Dialog [Box Information]" )
AddBox View.
62598fa88e71fb1e983bb9db
class Component(component.Main): <NEW_LINE> <INDENT> def addObjects(self): <NEW_LINE> <INDENT> self.normal = self.guide.blades["blade"].z * -1 <NEW_LINE> self.binormal = self.guide.blades["blade"].x <NEW_LINE> self.length0 = vector.getDistance(self.guide.apos[0], self.guide.apos[1]) <NEW_LINE> t = transform.getTransfor...
Shifter component Class
62598fa84527f215b58e9e0b
class DistributedHashingMachine: <NEW_LINE> <INDENT> def __init__(self, args): <NEW_LINE> <INDENT> self.args = args <NEW_LINE> self.graphs = glob.glob(args.input_path + "*.json") <NEW_LINE> <DEDENT> def execute_hashing(self): <NEW_LINE> <INDENT> self.hashes = Parallel(n_jobs=self.args.workers)(delayed(hash_wrap)(g, sel...
Class for parallel nested subtree hashing.
62598fa8cc0a2c111447af39
class FilteringOperator(PlexObject): <NEW_LINE> <INDENT> TAG = 'Operator' <NEW_LINE> def _loadData(self, data): <NEW_LINE> <INDENT> self.key = data.attrib.get('key') <NEW_LINE> self.title = data.attrib.get('title')
Represents an single Operator for a :class:`~plexapi.library.FilteringFieldType`. Attributes: TAG (str): 'Operator' key (str): The URL key for the operator. title (str): The title of the operator.
62598fa8e5267d203ee6b834
class Experiment(object): <NEW_LINE> <INDENT> def __init__(self, format=None): <NEW_LINE> <INDENT> self.plates = {} <NEW_LINE> self.info = {} <NEW_LINE> <DEDENT> def add_plate(self, plate): <NEW_LINE> <INDENT> self.plates.append(read)
Information about a plate in an experiment Properties: plates A dictionary of Plate objects keyed by their unique name info Dictionary of information related to the Experiment
62598fa87047854f4633f302
class StaticTableToMapTestCase(DatabaseToMapTestCase): <NEW_LINE> <INDENT> def tearDown(self): <NEW_LINE> <INDENT> self.remove_tempfiles() <NEW_LINE> <DEDENT> def test_copy_static_table(self): <NEW_LINE> <INDENT> self.db.execute(CREATE_STMT) <NEW_LINE> for row in TABLE_DATA: <NEW_LINE> <INDENT> self.db.execute("INSERT ...
Test mapping and copying out of created tables
62598fa81f037a2d8b9e4015
class MapReduceTask(object): <NEW_LINE> <INDENT> shard_count = 3 <NEW_LINE> pipeline_class = MapperPipeline <NEW_LINE> job_name = None <NEW_LINE> queue_name = 'default' <NEW_LINE> output_writer_spec = None <NEW_LINE> mapreduce_parameters = {} <NEW_LINE> countdown = None <NEW_LINE> eta = None <NEW_LINE> model = None <NE...
MapReduceTask base class, inherit this in a statically defined class and use .start() to run a mapreduce task You must define a staticmethod 'map' which takes in an arg of the entity being mapped over. Optionally define a staticmethod 'reduce' for the reduce stage (Not Implemented). You can pass any additional args a...
62598fa8aad79263cf42e6fe
class VBox(HBox): <NEW_LINE> <INDENT> @decorate_constructor_parameter_types([]) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(VBox, self).__init__(*args, **kwargs) <NEW_LINE> self.style['flex-direction'] = 'column'
The purpose of this widget is to automatically vertically aligning the widgets that are appended to it. Does not permit children absolute positioning. In order to add children to this container, use the append(child, key) function. The key have to be numeric and determines the children order in the layout. Note: ...
62598fa8925a0f43d25e7f68
class FlockingReport(ReportUtils.Reporter): <NEW_LINE> <INDENT> def __init__(self, config_file, start, end, **kwargs): <NEW_LINE> <INDENT> report = 'Flocking' <NEW_LINE> super(FlockingReport, self).__init__(config_file=config_file, start=start, end=end, report_type=report, **kwargs) <NEW_LINE> self.title = "OSG Flockin...
Class to hold information for and to run OSG Flocking report :param str config_file: Report Configuration filename :param str start: Start time of report range :param str end: End time of report range
62598fa87d43ff2487427397
class chained_getter(object): <NEW_LINE> <INDENT> __slots__ = ('namespace', 'getter') <NEW_LINE> __fifo_cache__ = deque() <NEW_LINE> __inst_caching__ = True <NEW_LINE> __attr_comparison__ = ("namespace",) <NEW_LINE> __metaclass__ = partial(generic_equality, real_type=caching.WeakInstMeta) <NEW_LINE> def __init__(self, ...
object that will do multi part lookup, regardless of if it's in the context of an instancemethod or staticmethod. Note that developers should use :py:func:`static_attrgetter` or :py:func:`instance_attrgetter` instead of this class directly. They should do this since dependent on the python version, there may be a fas...
62598fa83617ad0b5ee0607d
class gffObject(object): <NEW_LINE> <INDENT> def __init__(self, seqid, source, type, start, end, score, strand, phase, attributes): <NEW_LINE> <INDENT> self._seqid = seqid <NEW_LINE> self._source = source <NEW_LINE> self._type = type <NEW_LINE> self._start = start <NEW_LINE> self._end = end <NEW_LINE> self._score = sco...
"seqid" (gff column 1) landmark for coordinate system "source" (gff column 2) source db/program etc "type" (gff column 3) term from the Sequence Ontology "start"(gff column 4) relative to the landmark seqid "end" (gff column 5) 1-based integer coordinates "score" (gff column 6) float "strand" (gff column 7) +/i/./? for...
62598fa824f1403a92685848
class HexValidator(wx.PyValidator): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(HexValidator, self).__init__() <NEW_LINE> self.Bind(wx.EVT_CHAR, self.OnChar) <NEW_LINE> <DEDENT> def Clone(self): <NEW_LINE> <INDENT> return HexValidator() <NEW_LINE> <DEDENT> def Validate(self, win): <NEW_LINE> <INDE...
Validate Hex strings for the color setter
62598fa8b7558d5895463559
class CSGNode(object): <NEW_LINE> <INDENT> def __init__(self, polygons=None): <NEW_LINE> <INDENT> self.plane = None <NEW_LINE> self.front = None <NEW_LINE> self.back = None <NEW_LINE> self.polygons = [] <NEW_LINE> if polygons: <NEW_LINE> <INDENT> self.build(polygons) <NEW_LINE> <DEDENT> <DEDENT> def clone(self): <NEW_L...
class CSGNode Holds a node in a BSP tree. A BSP tree is built from a collection of polygons by picking a polygon to split along. That polygon (and all other coplanar polygons) are added directly to that node and the other polygons are added to the front and/or back subtrees. This is not a leafy BSP tree since there is...
62598fa8f548e778e596b4ce
class Hidden(HtmlTagAttribute): <NEW_LINE> <INDENT> pass
Specifies that an element is not yet, or is no longer, relevant
62598fa8dd821e528d6d8e5f
class PathArray(gui_base_original.Modifier): <NEW_LINE> <INDENT> def __init__(self, use_link=False): <NEW_LINE> <INDENT> super(PathArray, self).__init__() <NEW_LINE> self.use_link = use_link <NEW_LINE> <DEDENT> def GetResources(self): <NEW_LINE> <INDENT> _menu = "Path array" <NEW_LINE> _tip = ("Creates copies of a sele...
Gui Command for the Path array tool. Parameters ---------- use_link: bool, optional It defaults to `False`. If it is `True`, the created object will be a `Link array`.
62598fa860cbc95b06364276
class PivotsException(Exception): <NEW_LINE> <INDENT> pass
This is raised when it is impossible to divide. (cannot determine `pivots`)
62598fa857b8e32f525080b0
class ActorProcess(ActorConcurrency, Process): <NEW_LINE> <INDENT> pass
Actor on a process
62598fa832920d7e50bc5f7f
class PacketCapture(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'target': {'required': True}, 'storage_location': {'required': True}, } <NEW_LINE> _attribute_map = { 'target': {'key': 'properties.target', 'type': 'str'}, 'bytes_to_capture_per_packet': {'key': 'properties.bytesToCapturePerPacket', '...
Parameters that define the create packet capture operation. All required parameters must be populated in order to send to Azure. :param target: Required. The ID of the targeted resource, only VM is currently supported. :type target: str :param bytes_to_capture_per_packet: Number of bytes captured per packet, the rema...
62598fa8baa26c4b54d4f1da
class FeatureRequestFactory(BaseFactory): <NEW_LINE> <INDENT> title = Sequence(lambda n: 'request{0}'.format(n)) <NEW_LINE> target_date = date(2018, 12, 5) <NEW_LINE> product_area = FeatureRequest.PRODUCT_AREA_BIL <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = FeatureRequest
FeatureRequest factory.
62598fa855399d3f0562644e
class UpdateReadChannelDiscussionInbox(TLObject): <NEW_LINE> <INDENT> __slots__: List[str] = ["channel_id", "top_msg_id", "read_max_id", "broadcast_id", "broadcast_post"] <NEW_LINE> ID = 0x1cc7de54 <NEW_LINE> QUALNAME = "types.UpdateReadChannelDiscussionInbox" <NEW_LINE> def __init__(self, *, channel_id: int, top_msg_i...
This object is a constructor of the base type :obj:`~pyrogram.raw.base.Update`. Details: - Layer: ``122`` - ID: ``0x1cc7de54`` Parameters: channel_id: ``int`` ``32-bit`` top_msg_id: ``int`` ``32-bit`` read_max_id: ``int`` ``32-bit`` broadcast_id (optional): ``int`` ``32-bit`` broadcast_pos...
62598fa892d797404e388afa
class Jslint(Linter): <NEW_LINE> <INDENT> syntax = ('javascript', 'html', 'javascriptnext') <NEW_LINE> cmd = 'jslint --terse' <NEW_LINE> config_file = ('--config', '.jslintrc', '~') <NEW_LINE> regex = r'^.+?:(?P<line>\d+):(?P<col>\d+): (?P<message>.+)$' <NEW_LINE> tempfile_suffix = 'js' <NEW_LINE> error_stream = util.S...
Provides an interface to jslint.
62598fa899cbb53fe6830e00
class MainWindow(ApplicationWindow): <NEW_LINE> <INDENT> def __init__(self, **traits): <NEW_LINE> <INDENT> super(MainWindow, self).__init__(**traits) <NEW_LINE> exit_action = Action(name='E&xit', on_perform=self.close) <NEW_LINE> self.menu_bar_manager = MenuBarManager( MenuManager(exit_action, name='&File') ) <NEW_LINE...
The main application window.
62598fa87b25080760ed73d6
class Driver(object): <NEW_LINE> <INDENT> def create_service(self, service_id, service_ref): <NEW_LINE> <INDENT> raise exception.NotImplemented() <NEW_LINE> <DEDENT> def list_services(self): <NEW_LINE> <INDENT> raise exception.NotImplemented() <NEW_LINE> <DEDENT> def get_service(self, service_id): <NEW_LINE> <INDENT> r...
Interface description for an Catalog driver.
62598fa84f6381625f199453
class DetachedHeadException(RepositoryException): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> RepositoryException.__init__(self, 'Not on any branch')
Exception raised when HEAD is detached (that is, there is no current branch).
62598fa8f548e778e596b4cf
class PredictionServiceStub(object): <NEW_LINE> <INDENT> def __init__(self, channel): <NEW_LINE> <INDENT> self.Predict = channel.unary_unary( '/tensorflow.serving.PredictionService/Predict', request_serializer=tensorflow__serving__client_dot_protos_dot_predict__pb2.PredictRequest.SerializeToString, response_deserialize...
PredictionService provides access to machine-learned models loaded by model_servers.
62598fa832920d7e50bc5f80
class Solution: <NEW_LINE> <INDENT> def invert_tree_recursive(self, root: TreeNode) -> TreeNode: <NEW_LINE> <INDENT> if not root: <NEW_LINE> <INDENT> return root <NEW_LINE> <DEDENT> root.left, root.right = root.right, root.left <NEW_LINE> self.invert_tree_recursive(root.left) <NEW_LINE> self.invert_tree_recursive(root....
翻转二叉树
62598fa81b99ca400228f4c5