code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TXT(Record): <NEW_LINE> <INDENT> value: str <NEW_LINE> def __init__(self, rdata, value: str): <NEW_LINE> <INDENT> super(TXT, self).__init__(rdata=rdata) <NEW_LINE> self.value = value <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def create_from_rdata(cls, rdata): <NEW_LINE> <INDENT> return cls(rdata=rdata, value=""...
TXT record
62598eec3539df3088ecaa08
class WorkThread(QThread): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> QThread.__init__(self) <NEW_LINE> <DEDENT> def setWorker(self, Cl): <NEW_LINE> <INDENT> self.Cl = Cl <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> self.Cl.run_chat_loop()
Class for working with pyqt thread this class run 'run_chat_loop()' in class 'Client'
62598eec8e71fb1e983ba1c2
class AllCodeView(View): <NEW_LINE> <INDENT> ENTRIES_COUNT = 20 <NEW_LINE> def get(self, request): <NEW_LINE> <INDENT> template_name = 'code/allcode.html' <NEW_LINE> all_code_models = Code.objects.all() <NEW_LINE> paginator = Paginator(all_code_models, self.ENTRIES_COUNT) <NEW_LINE> page = request.GET.get('page') <NEW_...
Страница просмотра всех кодов
62598eec7c178a314d78bbea
class PipeAdaptee(INetAdaptee): <NEW_LINE> <INDENT> def has_data(self) -> bool: <NEW_LINE> <INDENT> return self.conn.poll() <NEW_LINE> <DEDENT> def send(self, data): <NEW_LINE> <INDENT> self.conn.send(data) <NEW_LINE> <DEDENT> def recv(self): <NEW_LINE> <INDENT> return self.conn.recv()
pipe adaptee
62598eecf7d966606f746749
class PerlSubInstall(PerlPackage): <NEW_LINE> <INDENT> homepage = "http://search.cpan.org/~rjbs/Sub-Install-0.928/lib/Sub/Install.pm" <NEW_LINE> url = "http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Sub-Install-0.928.tar.gz" <NEW_LINE> version('0.928', 'e1ce4f9cb6b2f6b8778b036c31afa5ab')
Install subroutines into packages easily
62598eec66673b3332c2eaff
class OrgListView(View): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get(request): <NEW_LINE> <INDENT> all_orgs = Org.objects.all() <NEW_LINE> hot_orgs = all_orgs.order_by('-click_nums')[:5] <NEW_LINE> all_citys = CityDict.objects.all() <NEW_LINE> all_types = list() <NEW_LINE> for t in org_type_choices: <NEW_LINE>...
机构列表
62598eecf548e778e5969ce1
class Tuner(object): <NEW_LINE> <INDENT> data = None <NEW_LINE> train_x, train_y = None, None <NEW_LINE> group_col = None <NEW_LINE> def __init__(self, indata, best_models=None, grid_results=None): <NEW_LINE> <INDENT> if indata.is_split == 0: <NEW_LINE> <INDENT> raise ValueError('Data is not split, cannot be tested') <...
Initiates with indata class, will tune series of models according to parameters. Outputs RandomizedGridCV results and parameterized model in dictionary
62598eecf548e778e5969ce2
class Container(AdaptiveObject): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.type = "Container" <NEW_LINE> self.items: List[AdaptiveObject] = [] <NEW_LINE> self.__dict__.update(kwargs) <NEW_LINE> <DEDENT> def _get_item_container(self) -> List[AdaptiveObject]:...
Containers group items together. https://adaptivecards.io/explorer/Container.html.
62598eecbd1bec0571e14475
class JobListResource(Resource): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(JobListResource, self).__init__() <NEW_LINE> self.str_app_container_inputdir = '/share/incoming' <NEW_LINE> self.str_app_container_outputdir = '/share/outgoing' <NEW_LINE> self.container_env = app.config.get('CONTAINER_EN...
Resource representing the list of jobs scheduled on the compute.
62598eec460517430c430bdf
class _MultilayerPerceptronParams(_JavaProbabilisticClassifierParams, HasSeed, HasMaxIter, HasTol, HasStepSize, HasSolver, HasBlockSize): <NEW_LINE> <INDENT> layers = Param(Params._dummy(), "layers", "Sizes of layers from input layer to output layer " + "E.g., Array(780, 100, 10) means 780 inputs, one hidden layer with...
Params for :py:class:`MultilayerPerceptronClassifier`. .. versionadded:: 3.0.0
62598eecadb09d7d5dc08d1f
class SoundManager(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.hit_sound = pygame.mixer.Sound(get_resource_path('sounds', 'collide.wav')) <NEW_LINE> self.goal_sound = pygame.mixer.Sound(get_resource_path('sounds', 'goal.wav')) <NEW_LINE> self.game_over = pygame.mixer.Sound(get_resource_pat...
Responsible for loading sounds.
62598eec4a966d76dd5ed632
class AttemptInlineAdmin(ShowAllInlineAdminMixin): <NEW_LINE> <INDENT> model = Attempt <NEW_LINE> fields = ('form', 'is_correct', 'is_hint', 'hints_count', 'answer', 'score', 'created', 'all') <NEW_LINE> verbose_name_plural = "Last attempts (1 month)" <NEW_LINE> readonly_fields = ('created', 'score', 'all') <NEW_LINE> ...
The attempt's inline admin interface
62598eec435de62698e9a52c
class test_sell_top_ten_wizard(TransactionCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(test_sell_top_ten_wizard, self).setUp() <NEW_LINE> warehouse_obj = self.env.ref('warehouse.wh_in_whin0') <NEW_LINE> warehouse_obj.approve_order() <NEW_LINE> self.order = self.env.ref('sell.sell_order_2') <NEW...
测试销量前十商品向导
62598eec4e4d562566370b71
class SavedGameListSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> adventure = AdventureMiniSerializer(many=False, read_only=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = SavedGame <NEW_LINE> exclude = ('data', )
This serializer presents a compact data format, without the big "data" field, for use in lists and relationships
62598eec76e4537e8c3edd0b
class DictDataset(Dataset): <NEW_LINE> <INDENT> def __init__(self, name: str, split: str, X_dict: XDict, Y_dict: YDict) -> None: <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.split = split <NEW_LINE> self.X_dict = X_dict <NEW_LINE> self.Y_dict = Y_dict <NEW_LINE> for name, label in self.Y_dict.items(): <NEW_LINE...
A dataset where both the data fields and labels are stored in as dictionaries. Parameters ---------- name The name of the dataset (e.g., this will be used to report metrics on a per-dataset basis) split The name of the split that the data in this object represents X_dict A map from field name to values...
62598eec1f5feb6acb1613a9
class SpaceView(generics.RetrieveAPIView): <NEW_LINE> <INDENT> queryset = Space.objects.all() <NEW_LINE> serializer_class = SpaceSerializer <NEW_LINE> lookup_field = 'codename'
Retrieve a space.
62598eeca8370b77170eeb3c
class TestModule: <NEW_LINE> <INDENT> def tests(self): <NEW_LINE> <INDENT> return { 'in': compatibility_in_test, }
Ansible math jinja2 tests
62598eecdc8b845886d51d1a
class MotionEyeCamera(MjpegCamera): <NEW_LINE> <INDENT> def __init__(self, motion_eye, data): <NEW_LINE> <INDENT> cid = data['id'] <NEW_LINE> self._camera_id = cid <NEW_LINE> self._unique_id = f"{motion_eye.unique_id}_{cid}" <NEW_LINE> still_url = motion_eye.url + motion_eye.sign('GET', f"/picture/{cid}/current/") <NEW...
An implementation of an IP camera that is reachable over a URL.
62598eec71ff763f4b5e5eb5
class Test_find_incomplete_video_id: <NEW_LINE> <INDENT> def get(self, nicorus: List[str], completed_video_ids: List[str], expected: Optional[str]): <NEW_LINE> <INDENT> with db_test_session() as session: <NEW_LINE> <INDENT> dao = NicoruDAO(session) <NEW_LINE> for vid in nicorus: <NEW_LINE> <INDENT> dao.nicoru(video_id=...
* We will get TR(target record) * TR are 0 or one or more video ids. * TR's video is incomplete.
62598eec97e22403b3839647
class DispatcherHooks(object): <NEW_LINE> <INDENT> DispatcherInactive = None <NEW_LINE> OperationAborted = None <NEW_LINE> OperationCompleted = None <NEW_LINE> OperationPosted = None <NEW_LINE> OperationPriorityChanged = None <NEW_LINE> OperationStarted = None
Provides additional event information about System.Windows.Threading.Dispatcher processing.
62598eec4f6381625f198867
class IS_UPLOAD_FILENAME(Validator): <NEW_LINE> <INDENT> def __init__(self, filename=None, extension=None, lastdot=True, case=1, error_message='Enter valid filename'): <NEW_LINE> <INDENT> if isinstance(filename, str): <NEW_LINE> <INDENT> filename = re.compile(filename) <NEW_LINE> <DEDENT> if isinstance(extension, str):...
For new applications, use IS_FILE(). Checks if name and extension of file uploaded through file input matches given criteria. Does *not* ensure the file type in any way. Returns validation failure if no data was uploaded. Args: filename: filename (before dot) regex extension: extension (after dot) regex ...
62598eec097d151d1a2bf775
class Cache: <NEW_LINE> <INDENT> def __init__(self, cache_path): <NEW_LINE> <INDENT> self.cache_path = cache_path <NEW_LINE> <DEDENT> def fetch(self, name, database): <NEW_LINE> <INDENT> save_path = os.path.join(self.cache_path, name) <NEW_LINE> if os.path.exists(save_path): <NEW_LINE> <INDENT> return torch.load(save_p...
At 1st call, it will store the object persistently. From 2nd call, it will return the stored object. Example: class TrainDatabase(DataBase): def get_data(self): ... return data cache = Cache("/home/persistent/") cache.fetch("train", TrainDatabase())
62598eec32920d7e50bc4784
class TestBasicRequestListModification(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 testBasicRequestListModification(self): <NEW_LINE> <INDENT> pass
BasicRequestListModification unit test stubs
62598eec67a9b606de544727
class ContainsOrFullTextSearch(FullTextSearch): <NEW_LINE> <INDENT> lookup_name = 'contains' <NEW_LINE> base_lookup_class = Contains <NEW_LINE> def as_postgresql(self, qn, connection): <NEW_LINE> <INDENT> if self.enable_full_text_search(qn) is True: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return super().as_postgre...
Query {text column} having corresponding {text column}_tsvector column OR usual LIKE if USE_FULL_TEXT_SEARCH is False Note: that {column}_tsvector should have GIN index for better performance
62598eec4428ac0f6e656ca5
class PayPalTestCase(PaymentsTestCase): <NEW_LINE> <INDENT> PAYMENT_API = 'PayPal' <NEW_LINE> PAYPAL_API_ENDPOINT = 'https://api-3t.sandbox.paypal.com/nvp' <NEW_LINE> PAYPAL_API_URL = 'https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&token=' <NEW_LINE> def loadPrivateConfig(self): <NEW_LINE> <INDENT> self.ap...
Extending this PaymentsTestCase with PayPal specific configurations
62598eec4a966d76dd5ed633
class register: <NEW_LINE> <INDENT> def __init__(self, model): <NEW_LINE> <INDENT> if not isinstance(model, rest.RestModel): <NEW_LINE> <INDENT> model = rest.RestModel(model) <NEW_LINE> <DEDENT> self.model = model <NEW_LINE> <DEDENT> def __call__(self, cls): <NEW_LINE> <INDENT> assert issubclass(cls, AdminModel) <NEW_L...
Decorator to register an admin router class with REST model. :param model: a string or a :class:`~lux.extensions.rest.RestModel`
62598eeccb5e8a47e493b525
class PlainDocstringStyler(DocstringStyler): <NEW_LINE> <INDENT> def __call__(self, ds): <NEW_LINE> <INDENT> if not isinstance(ds, str): <NEW_LINE> <INDENT> raise TypeError("Non-string docstring ({})".format(type(ds))) <NEW_LINE> <DEDENT> return ds
Style/render docstring by simply echoing it.
62598eecf548e778e5969ce4
class ReplyMessageTransmissionWithDNSRNSOptionTestCase(DHCPv6Helper): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> self.logger.info("Sending an Information Request message from TN1.") <NEW_LINE> q = self.build_dhcpv6_information_request(self.node(1), reqopts=[23]) <NEW_LINE> self.node(1).send(IPv6(src=str(sel...
Reply Message Transmission With DNS RNS Option Verify that a DHCPv6 server transmits a proper Reply message. @private Source: IPv6 Ready DHCPv6 Interoperability Test Suite (Section 8.1.12)
62598eec7d43ff24874267a8
class NodeDefinition(object): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> def __init__(self, name, node_type): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.node_type = node_type <NEW_LINE> self.parents = {} <NEW_LINE> self.connections = {} <NEW_LINE> self.children = {} <NEW_LINE> self.allows_child_cr...
Represents a node within a recipe definition
62598eecfff4ab517ebcbf30
class ModuleFinder(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._found_cache = {} <NEW_LINE> self._related_cache = {} <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return 'ModuleFinder()' <NEW_LINE> <DEDENT> def add_source_override(self, fullname, path, source, is_pkg): <NEW_L...
Given the name of a loaded module, make a best-effort attempt at finding related modules likely needed by a child context requesting the original module.
62598eeccc0a2c111447975d
class Connection(object): <NEW_LINE> <INDENT> def __init__(self, conn, xtea_key): <NEW_LINE> <INDENT> self.conn = conn <NEW_LINE> self.xtea_key = xtea_key <NEW_LINE> <DEDENT> def client_send_said(self, player, pos, msg): <NEW_LINE> <INDENT> sendmsg = NetworkMessage() <NEW_LINE> sendmsg.addByte(0xAA) <NEW_LINE> sendmsg....
Exposes an interface that allows the plugins to perform protocol operations
62598eec2eb69b55b15a0737
class CommentLevelView(ListAPIView): <NEW_LINE> <INDENT> serializer_class = CommentsSerializer <NEW_LINE> pagination_class = CommentsPagination <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> entity_id = self.kwargs.get("entity_id") <NEW_LINE> entity_type = self.kwargs.get("entity_type") <NEW_LINE> return Commen...
Get comment by Entity-Type / Entity-ID with pagination
62598eec26068e7796d4b0b5
class RHESSIMap(GenericMap): <NEW_LINE> <INDENT> def __init__(self, data, header, **kwargs): <NEW_LINE> <INDENT> GenericMap.__init__(self, data, header, **kwargs) <NEW_LINE> self._nickname = self.detector <NEW_LINE> if self.meta['ctype1'] == 'arcsec': <NEW_LINE> <INDENT> self.meta['cunit1'] = 'arcsec' <NEW_LINE> self.m...
RHESSI Image Map. The RHESSI mission consists of a single spin-stabilized spacecraft in a low-altitude orbit inclined 38 degrees to the Earth's equator. The only instrument on board is an Germaniun imaging spectrometer with the ability to obtain high fidelity solar images in X rays (down to 3 keV) to gamma rays (1 MeV...
62598eec4a966d76dd5ed634
class Colormaps(collections.MutableMapping): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.maps = {} <NEW_LINE> <DEDENT> def load_maps(self): <NEW_LINE> <INDENT> global cm <NEW_LINE> if not cm: <NEW_LINE> <INDENT> from matplotlib import cm <NEW_LINE> <DEDENT> if not self.maps: <NEW_LINE> <INDENT> for...
A dict-like collection of lazily-loaded matplotlib color maps. For a list of map names, evaluate:: sage: sorted(colormaps) ['Accent', 'Accent_r', 'Blues', 'Blues_r', ...]
62598eec76e4537e8c3edd0d
class ClusterState(BASE): <NEW_LINE> <INDENT> __tablename__ = 'cluster_state' <NEW_LINE> id = sa.Column(sa.Integer, primary_key=True, autoincrement=False) <NEW_LINE> deployment_tags = sa.Column(ARRAY(sa.String(64))) <NEW_LINE> release_version = sa.Column(sa.String(64))
Represents clusters currently present in the system. Holds info about deployment type which is using in redeployment process. Is linked with TestSetToCluster entity that implements many-to-many relationship with TestSet.
62598eec090684286d592a8e
class ConfigurationManager(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.config = RawConfigParser() <NEW_LINE> self.config.read(CONFIG_PATH) <NEW_LINE> <DEDENT> def get(self, section, name): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return os.environ['OVH_'+name.upper()] <NEW_LINE> <DEDEN...
Application wide configuration manager
62598eec167d2b6e312b56f2
class TrackedContainer: <NEW_LINE> <INDENT> def __init__( self, docker_client: docker.DockerClient, image_name: str, **kwargs: Any, ): <NEW_LINE> <INDENT> self.container: Optional[Container] = None <NEW_LINE> self.docker_client: docker.DockerClient = docker_client <NEW_LINE> self.image_name: str = image_name <NEW_LINE>...
Wrapper that collects docker container configuration and delays container creation/execution. Parameters ---------- docker_client: docker.DockerClient Docker client instance image_name: str Name of the docker image to launch **kwargs: dict, optional Default keyword arguments to pass to docker.DockerClient....
62598eec5fcc89381b2654d3
class AddPipelineNodeDialog(wx.Dialog): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> caption = kwargs.pop('caption', 'Choose Node Type') <NEW_LINE> pn_choices = kwargs.pop('choices', []) <NEW_LINE> style=kwargs.setdefault('style', wx.CAPTION|wx.CLOSE_BOX) <NEW_LINE> kwargs.setdefault('ti...
Dialog used for 'Add Pipeline Node' operation.
62598eecaad79263cf42cf65
class EncryptedBackend: <NEW_LINE> <INDENT> def authenticate(self, public_key=None, plaintext_challenge=None, decrypted_response=None): <NEW_LINE> <INDENT> if public_key and plaintext_challenge and decrypted_response and plaintext_challenge in decrypted_response: <NEW_LINE> <INDENT> return public_key.user <NEW_LINE> <D...
Django auth backend for encryption-based authentication.
62598eec379a373c97d97750
class ClientTestBase(base.ClientTestBase): <NEW_LINE> <INDENT> def _get_clients(self): <NEW_LINE> <INDENT> self.creds = credentials() <NEW_LINE> cli_dir = os.environ.get( 'OS_NEUTRONCLIENT_EXEC_DIR', os.path.join(os.path.abspath('.'), '.tox/functional/bin')) <NEW_LINE> return base.CLIClient( username=self.creds['userna...
This is a first pass at a simple read only python-neutronclient test. This only exercises client commands that are read only. This should test commands: * as a regular user * as an admin user * with and without optional parameters * initially just check return codes, and later test command outputs
62598eecff9c53063f518dbe
class RequestInvalidMethodError(SsTFormError): <NEW_LINE> <INDENT> pass
Error raised for invalid methods for web request.
62598eece5267d203ee6a061
class Command(BaseCommand): <NEW_LINE> <INDENT> def handle(self, *args, **options): <NEW_LINE> <INDENT> update_builds()
Management command to update data for a specific experiment
62598eec8a43f66fc4bf08ce
class Role(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=50) <NEW_LINE> person = models.ForeignKey(Person, related_name='roles', on_delete=models.CASCADE) <NEW_LINE> created = models.DateTimeField(auto_now_add=True) <NEW_LINE> owner = models.ForeignKey( 'auth.User', related_name='roles', on_dele...
The role a person played on a release or a track. e.g.: - Guitarist - Vocalist - Engineer - etc.
62598eeca219f33f346c4f95
class Student: <NEW_LINE> <INDENT> college = "JSSATE" <NEW_LINE> def __init__(self,name,usn,gender): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.usn = usn <NEW_LINE> self.gender = gender <NEW_LINE> <DEDENT> def introduce(self): <NEW_LINE> <INDENT> print(f"My Name is {self.name}") <NEW_LINE> print(f"Usn : {self...
doc type of this class
62598eec23849d37ff84f812
class InvalidInput(ValueError): <NEW_LINE> <INDENT> pass
Raised for user input errors.
62598eecaad79263cf42cf66
class Tree3D: <NEW_LINE> <INDENT> def __init__(self, map3d, C, cellid): <NEW_LINE> <INDENT> self.map3d = map3d <NEW_LINE> self.flann = pyflann.FLANN() <NEW_LINE> self.params = PARAMS_DEFAULT.copy() <NEW_LINE> self.params['num_neighbors'] = 10 <NEW_LINE> self.params['checks'] = 4096 <NEW_LINE> index = os.path.join(CACHE...
Example of a 3d tree on features in a cell. Used to search through 3d space for nearest features for example to find the approximate closest points to a location. Not used in the query pipeline at all - only for tag drawing.
62598eec01c39578d7f11504
class ResetDocklet(QDockWidget): <NEW_LINE> <INDENT> def __init__(self, mainwin, **kwargs): <NEW_LINE> <INDENT> super(ResetDocklet, self).__init__(**kwargs) <NEW_LINE> self.setAllowedAreas(Qt.RightDockWidgetArea) <NEW_LINE> self.setFloating(False) <NEW_LINE> self._mw = mainwin <NEW_LINE> self.setup_ui() <NEW_LINE> <DED...
This dockwidget lets the user choose from a wide variety of config generators, by embedding a ResetWidget into a DockWidget. The ZasimMainWindow embeds this by default.
62598eec32920d7e50bc4786
class DescribeNetworkAclResponseSchema(schema.ResponseSchema): <NEW_LINE> <INDENT> fields = { "AclList": fields.List( models.AclInfoSchema(), required=True, load_from="AclList" ), }
DescribeNetworkAcl - 获取网络ACL
62598eecbd1bec0571e14477
class SatellitePassPredictor: <NEW_LINE> <INDENT> def grid_wrapper(self, satellite, grid, window_start, window_end): <NEW_LINE> <INDENT> return self.__init__() <NEW_LINE> <DEDENT> def __init__(self, satellite, location, window_start, window_end): <NEW_LINE> <INDENT> self.satellite = satellite <NEW_LINE> self.location =...
Implement the satellite pass prediction approach from <https://github.com/skyfielders/astronomy-notebooks/blob/master/Solvers/Earth-Satellite-Passes.ipynb> as accessed 2018-11-19
62598eec8e7ae83300ee77ea
class EmployeeAssignForm(FlaskForm): <NEW_LINE> <INDENT> department = QuerySelectField(query_factory=lambda: Department.query.all(), get_label="name") <NEW_LINE> role = QuerySelectField(query_factory=lambda: Role.query.all(), get_label="name") <NEW_LINE> set_admin = SelectField(u'Make Admin', choices=[('True', 'True'),...
Form for admin to assign departments and roles to employees
62598eec851cf427c66b6a23
class NumberOfRequests(Metric): <NEW_LINE> <INDENT> def computeValue(self): <NEW_LINE> <INDENT> logs = self.logSource.getLogs() <NEW_LINE> self.value = len(logs) <NEW_LINE> <DEDENT> def getValueAsString(self): <NEW_LINE> <INDENT> return "Number of requests in the last %is : %i" %( self.logSource.timeslot, self.value)
Number of requests to the website in the last period
62598eec4527f215b58e8659
class Listener (object): <NEW_LINE> <INDENT> def set_recv (self, mq): <NEW_LINE> <INDENT> self.mq = mq <NEW_LINE> while True: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> msg, type = self.mq.receive() <NEW_LINE> data = msg.split("\0") <NEW_LINE> debug("Listener received: %s", data) <NEW_LINE> if data[0] == "notify": <N...
This class handles the communication between the "listener" and the GUI. This listener starts programs as the user while the GUI runs as root. @ivar _recv: listener socket @type _recv: int @ivar _send: sender socket @type _send: int
62598eec7b25080760ed5bf5
class ContactSocialProfileFromdb2(models.Model): <NEW_LINE> <INDENT> url = models.CharField(max_length=200, blank=True, null=True) <NEW_LINE> social_id = models.CharField( unique=True, max_length=64, blank=True, null=True ) <NEW_LINE> search_result = models.TextField(blank=True, null=True) <NEW_LINE> first_name = model...
ContactSocialProfileFromdb2 model.
62598eecdd821e528d6d769f
class IPv6Address(_Observable): <NEW_LINE> <INDENT> _type = 'ipv6-addr' <NEW_LINE> _properties = OrderedDict([ ('type', TypeProperty(_type, spec_version='2.1')), ('spec_version', StringProperty(fixed='2.1')), ('id', IDProperty(_type, spec_version='2.1')), ('value', StringProperty(required=True)), ('resolves_to_refs', L...
For more detailed information on this object's properties, see `the STIX 2.1 specification <https://docs.oasis-open.org/cti/stix/v2.1/os/stix-v2.1-os.html#_oeggeryskriq>`__.
62598eeccad5886f8bdc3a5e
class ApplicationTest(ApplicationMixin, unittest.TestCase): <NEW_LINE> <INDENT> def test_basic_rrd_discovery(self): <NEW_LINE> <INDENT> test_host = 'testhost' <NEW_LINE> test_plugin = 'testplugin' <NEW_LINE> test_instance = 'testinstance' <NEW_LINE> self.create_rrd_file(test_host, test_plugin, test_instance) <NEW_LINE>...
Application setup/configuration tests.
62598eeca79ad16197768779
@PIPELINES.register_module() <NEW_LINE> class PhotoMetricDistortion: <NEW_LINE> <INDENT> def __init__(self, brightness_delta=32, contrast_range=(0.5, 1.5), saturation_range=(0.5, 1.5), hue_delta=18): <NEW_LINE> <INDENT> self.brightness_delta = brightness_delta <NEW_LINE> self.contrast_lower, self.contrast_upper = contr...
Apply photometric distortion to image sequentially, every transformation is applied with a probability of 0.5. The position of random contrast is in second or second to last. 1. random brightness 2. random contrast (mode 0) 3. convert color from BGR to HSV 4. random saturation 5. random hue 6. convert color from HSV t...
62598eeca8370b77170eeb3f
class CacheDecorator(CacheAbstract): <NEW_LINE> <INDENT> def set(self, key, value, expire=-1): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def get(self, key): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def __call__(self, key=None, expire=-1): <NEW_LINE> <INDENT> def deco...
cache 装饰器
62598eeca8370b77170eeb40
class Solution: <NEW_LINE> <INDENT> def checkInclusion(self, s1, s2): <NEW_LINE> <INDENT> if s1 == "": <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> if s2 == "" and len(s1) > 0: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> s1_counter = {} <NEW_LINE> for char in s1: <NEW_LINE> <INDENT> if char not in s1_co...
@param s1: a string @param s2: a string @return: if s2 contains the permutation of s1
62598eeca17c0f6771d5a9ae
class DocutilsDialect(csv.Dialect): <NEW_LINE> <INDENT> delimiter = ',' <NEW_LINE> quotechar = '"' <NEW_LINE> doublequote = True <NEW_LINE> skipinitialspace = True <NEW_LINE> strict = True <NEW_LINE> lineterminator = '\n' <NEW_LINE> quoting = csv.QUOTE_MINIMAL <NEW_LINE> def __init__(self, options): <NEW_LINE> <INDENT>...
CSV dialect for `csv_table` directive.
62598eec627d3e7fe0e055e5
class InstalMultiShotTestRunner(InstalTestRunner): <NEW_LINE> <INDENT> def run_test(self, query_file=None, conditions=None, fact_files=None, verbose=0, length=1, n_answersets=0, expected_answersets=0): <NEW_LINE> <INDENT> if os.environ.get('INSTAL_NOSE_API_URL',None): <NEW_LINE> <INDENT> raise InstalTestNotImplemented ...
InstalMultiShotTestRunner Implementation of InstalTestRunner for basic single shot solves of InstAL Note the additional parameters: -l (length), -n (n_answersets) Conditions at present doesn't do anything. expected_answersets asserts that the # of answersets produced is a certain value.
62598eec2ae34c7f260a9843
class ACSwingMode(enum.Enum): <NEW_LINE> <INDENT> SwingOff = "@OFF" <NEW_LINE> SwingOn = "@ON"
The swing mode for an AC/HVAC device.
62598eec5fcc89381b2654d4
class Dummy(AbstractDataSource): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.__dummy = [x for x in range(20)] <NEW_LINE> <DEDENT> def _get(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def each(self) -> Iterator[CellData]: <NEW_LINE> <INDENT> for row in self.__dummy: <NEW_LINE> <INDENT> yield...
開発用のダミーデータクラス
62598eec167d2b6e312b56f4
class DatoMaestro(models.Model): <NEW_LINE> <INDENT> id = models.AutoField(primary_key=True) <NEW_LINE> nombre = models.CharField(max_length=60) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> abstract = True <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.nombre
Clase abstracta para datos maestros con id y Nombre(60)
62598eec236d856c2adc87c3
class Amenity(BaseModel): <NEW_LINE> <INDENT> name = ""
Amenity class with name. Attributes: name (str): name of the amenities provided
62598eec009cb60464cffcaa
class Link(object): <NEW_LINE> <INDENT> __slots__ = ['url', 'text'] <NEW_LINE> def __init__(self, url, text=''): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> self.text = text <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return self.url == other.url and self.text == other.text <NEW_LINE> <DEDENT> de...
Link objects represent an extracted link by the LinkExtractor. At the moment, it contains just the url and link text.
62598eec30bbd7224646838f
class GeneratePasswordHash(pecan.commands.base.BaseCommand): <NEW_LINE> <INDENT> def run(self, args): <NEW_LINE> <INDENT> super(GeneratePasswordHash, self).run(args) <NEW_LINE> self.load_app() <NEW_LINE> salt = pecan.conf.passwords.salt <NEW_LINE> password = input("Password: ") <NEW_LINE> hashed = hashlib.sha256((passw...
Generate a password hash for your password file
62598eecd486a94d0ba2a727
class RecurringReminderViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = RecurringReminder.objects.none() <NEW_LINE> serializer_class = RecurringAlertSerializer <NEW_LINE> permission_classes = [IsAuthenticatedOrOptions] <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> user = self.request.user <NEW_LI...
retrieve: Get the specified recurring reminder (user must have access) list: Get all recurring reminders that the user has access to. create: Create a new recurring reminder destroy: Delete the specified recurring reminder update: Update the specified recurring reminder partial_update Update the specified recurring rem...
62598eecfff4ab517ebcbf33
class Create2ObservationFactory(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self._kwargs = kwargs <NEW_LINE> <DEDENT> def make_dim(self, name): <NEW_LINE> <INDENT> if name in ['light bump left signal', 'light bump front left signal', 'light bump center left signal', 'light bump center...
Main helper factory class for spawning the proper observation dimension handler.
62598eec442bda511e95abbe
class AddActivitiesForComments(UpgradeStep): <NEW_LINE> <INDENT> def __call__(self): <NEW_LINE> <INDENT> self.install_upgrade_profile() <NEW_LINE> for comment in self.objects({'portal_type': 'Discussion Item'}, type(self).__doc__): <NEW_LINE> <INDENT> discussion = aq_parent(aq_inner(comment)) <NEW_LINE> context = aq_pa...
Add activities for comments.
62598eec379a373c97d97752
class MessageUserMixin(object): <NEW_LINE> <INDENT> def report(self, message, level=messages.INFO, fail_silently=True, **kwargs): <NEW_LINE> <INDENT> namespace = self.request.resolver_match.namespace <NEW_LINE> process_url = reverse('{}:detail'.format(namespace), args=[self.activation.process.pk]) <NEW_LINE> process_li...
Notify a user using django messaging system.
62598eecff9c53063f518dc0
class InputNode(Node): <NEW_LINE> <INDENT> def __init__(self, *dims, name='node'): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.data = dummys.dummy_data(*dims) <NEW_LINE> self.outputs = [] <NEW_LINE> self.conditions = [] <NEW_LINE> self.condition_vars = [] <NEW_LINE> self.module = None <NEW_LINE> self.computed_...
Special type of node that represents the input data of the whole net (or ouput when running reverse)
62598eece5267d203ee6a063
class dataLoader(object): <NEW_LINE> <INDENT> def __init__(self, path): <NEW_LINE> <INDENT> self.path = os.getcwd() + '\\movieLens_data' <NEW_LINE> self.encoding = "iso-8859-1" <NEW_LINE> self.user_cols = ['user_id', 'movie_id', 'rating', 'timestamp'] <NEW_LINE> self.item_cols = [ "movie_id", "movie_title", "release_da...
Data Loading and Cleaning Tool for MovieLens 100k Dataset PARMS: path: Specify path top data directory init contains all column naming conventions to be used in df generation RETURNS: A single dataframe object merging source data from user_ratings / user_meta / item_meta - Drop Unnecessary tempor...
62598eec2c8b7c6e89bd1f1d
class OLI_OT_relative_script_path(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "scripts.relative_script_path" <NEW_LINE> bl_label = "Set script path relative" <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> t=bpy.data.texts[bpy.context.scene.reloader_settings.scripts] <NEW_LINE> print(f"File {t.name}...
Tooltip
62598eecd7e4931a7ef3a7fb
class rhn(sos.plugintools.PluginBase): <NEW_LINE> <INDENT> satellite = False <NEW_LINE> proxy = False <NEW_LINE> optionList = [("log", 'gathers all apache logs', 'slow', False)] <NEW_LINE> def defaultenabled(self): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> def rhn_package_check(self): <NEW_LINE> <INDENT> sel...
RHN Satellite related information
62598eeccc40096d61619586
class EpochMeter: <NEW_LINE> <INDENT> def __init__(self, tasks, name='train'): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.loss_meter = AverageMeter(name) <NEW_LINE> self.acc_meter = MultitaskAccuracyMeter(tasks) <NEW_LINE> self.reset() <NEW_LINE> <DEDENT> def reset(self): <NEW_LINE> <INDENT> self.loss = [] <N...
Track epoch loss and accuracy
62598eecbe383301e0251f36
class SegBaseModel(HybridBlock): <NEW_LINE> <INDENT> def __init__(self, nclass, aux, backbone='resnet50', **kwargs): <NEW_LINE> <INDENT> super(SegBaseModel, self).__init__() <NEW_LINE> self.aux = aux <NEW_LINE> self.nclass = nclass <NEW_LINE> with self.name_scope(): <NEW_LINE> <INDENT> if backbone == 'resnet50': <NEW_L...
Base Model for Semantic Segmentation Parameters ---------- backbone : string Pre-trained dilated backbone network type (default:'resnet50'; 'resnet50', 'resnet101' or 'resnet152'). norm_layer : Block Normalization layer used in backbone network (default: :class:`mxnet.gluon.nn.BatchNorm`; for Synchroni...
62598eec66673b3332c2eb05
class ConditionalBatchNorm2d(nn.BatchNorm2d): <NEW_LINE> <INDENT> def __init__(self, num_features, eps=1e-05, momentum=0.1, affine=False, track_running_stats=True): <NEW_LINE> <INDENT> super(ConditionalBatchNorm2d, self).__init__( num_features, eps, momentum, affine, track_running_stats ) <NEW_LINE> <DEDENT> def forwar...
Conditional Batch Normalization
62598eecf7d966606f74674e
class Stack(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._array = [] <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return len(self._array) <NEW_LINE> <DEDENT> def is_empty(self): <NEW_LINE> <INDENT> return False if self._array else True <NEW_LINE> <DEDENT> def push(self, val): ...
栈是一种LIFO的线性数据结构
62598eec32920d7e50bc4788
class BubblePoints(_BasePoints): <NEW_LINE> <INDENT> def __len__(self): <NEW_LINE> <INDENT> return min( self._ser.xVal_ptCount_val, self._ser.yVal_ptCount_val, self._ser.bubbleSize_ptCount_val, )
Sequence providing access to the individual data points in a |BubbleSeries| object.
62598eec92d797404e387f29
class UserModelTest(TestCase): <NEW_LINE> <INDENT> def test_save_with_name(self): <NEW_LINE> <INDENT> name = "My Name" <NEW_LINE> user = models.User(name=name) <NEW_LINE> with patch('users.models.User.save_base') as save_base: <NEW_LINE> <INDENT> assert user.name == name <NEW_LINE> user.save() <NEW_LINE> save_base.asse...
Tests for User model.
62598eec4e4d562566370b76
class AncestryResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None)
A ResultSet with methods tailored to the values returned by the Ancestry Choreo. The ResultSet object is used to retrieve the results of a Choreo execution.
62598eecf548e778e5969ce8
class ActivityPeriod(models.Model): <NEW_LINE> <INDENT> start_time = models.DateTimeField() <NEW_LINE> end_time = models.DateTimeField() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> managed = True <NEW_LINE> ordering = ["pk"] <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.id
Activity Period model.
62598eec01c39578d7f11507
class Linkage(domainresource.DomainResource): <NEW_LINE> <INDENT> resource_type = Field("Linkage", const=True) <NEW_LINE> active: bool = Field( None, alias="active", title="Whether this linkage assertion is active or not", description=( "Indicates whether the asserted set of linkages are considered to be " '"in effect"...
Disclaimer: Any field name ends with ``__ext`` doesn't part of Resource StructureDefinition, instead used to enable Extensibility feature for FHIR Primitive Data Types. Links records for 'same' item. Identifies two or more records (resource instances) that are referring to the same real-world "occurrence".
62598eec460517430c430be5
class GW2Config(commands.Cog): <NEW_LINE> <INDENT> def __init__(self, bot): <NEW_LINE> <INDENT> self.bot = bot <NEW_LINE> <DEDENT> async def gw2_config(self, ctx, sub_command: str): <NEW_LINE> <INDENT> err_missing_arg = "Missing required argument!!!\n" f"For more info on this command use: {ctx....
(GW2 configuration commands - Admin)
62598eec7d847024c075ab2a
class _FixedAtom1Feed(webhelpers.feedgenerator.Atom1Feed): <NEW_LINE> <INDENT> def add_item(self, *args, **kwargs): <NEW_LINE> <INDENT> if u'pubdate' in kwargs: <NEW_LINE> <INDENT> kwargs.pop(u'pubdate') <NEW_LINE> <DEDENT> defaults = {u'updated': None, u'published': None} <NEW_LINE> defaults.update(kwargs) <NEW_LINE> ...
The Atom1Feed defined in webhelpers doesn't provide all the fields we might want to publish. * In Atom1Feed, each <entry> is created with identical <updated> and <published> fields. See [1] (webhelpers 1.2) for details. So, this class fixes that by allow an item to set both an <updated> and <published> field...
62598eec76e4537e8c3edd10
class DumpBlock(InstantCommand): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__('Dump Block') <NEW_LINE> self.requires(subsystems.pistons) <NEW_LINE> self.timer = wpilib.Timer() <NEW_LINE> self.logger = logging.getLogger("robot") <NEW_LINE> <DEDENT> def initialize(self): <NEW_LINE> <INDENT...
Dumps the block
62598eec3cc13d1c6d463ece
class SpecialOrderLineBuilder(ConnectorUnit): <NEW_LINE> <INDENT> _model_name = None <NEW_LINE> def __init__(self, connector_env): <NEW_LINE> <INDENT> super(SpecialOrderLineBuilder, self).__init__(connector_env) <NEW_LINE> self.product = None <NEW_LINE> self.product_ref = None <NEW_LINE> self.price_unit = None <NEW_LIN...
Base class to build a sale order line for a sale order Used when extra order lines have to be added in a sale order but we only know some parameters (product, price, ...), for instance, a line for the shipping costs or the gift coupons. It can be subclassed to customize the way the lines are created. Usage:: bu...
62598eec1f037a2d8b9e2865
class TestModels(TestCase): <NEW_LINE> <INDENT> def setUpTestData(): <NEW_LINE> <INDENT> Category.objects.create(name="Pate à tartiner") <NEW_LINE> Product.objects.create( name="Beurre de cacahuètes", category_id=Category.objects.get(name="Pate à tartiner"), store="Carrefour", nutriscore="c", barcode="012456870000", ur...
To test the save app models
62598eec21bff66bcd7213b1
class MAVLink_manual_control_message(MAVLink_message): <NEW_LINE> <INDENT> id = MAVLINK_MSG_ID_MANUAL_CONTROL <NEW_LINE> name = 'MANUAL_CONTROL' <NEW_LINE> fieldnames = ['target', 'x', 'y', 'z', 'r', 'buttons'] <NEW_LINE> ordered_fieldnames = [ 'x', 'y', 'z', 'r', 'buttons', 'target' ] <NEW_LINE> format = '<hhhhHB' <NE...
This message provides an API for manually controlling the vehicle using standard joystick axes nomenclature, along with a joystick-like input device. Unused axes can be disabled an buttons are also transmit as boolean values of their
62598eec796e427e5384cef5
class Solution(object): <NEW_LINE> <INDENT> def lowestCommonAncestor(self, root, p, q): <NEW_LINE> <INDENT> aces = root <NEW_LINE> while True: <NEW_LINE> <INDENT> if p.val < aces.val and q.val < aces.val: <NEW_LINE> <INDENT> aces = aces.left <NEW_LINE> <DEDENT> elif p.val > aces.val and q.val > aces.val: <NEW_LINE> <IN...
首先读题,知道了是二叉搜索树,我们可知: 1、左子树的所有节点都小于根节点 2、右子树的所有节点都大于根节点 3、任意节点的左右子树都为二叉搜索树 代码是查看的letcode剖析,自己也完全不熟悉二叉搜索树
62598eec1f5feb6acb1613af
class InstructionMeta(type): <NEW_LINE> <INDENT> instruction_set = set() <NEW_LINE> def __init__(cls, name, bases, dct): <NEW_LINE> <INDENT> super().__init__(name, bases, dct) <NEW_LINE> if name == 'Instruction': <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> if __debug__: <NEW_LINE> <INDENT> logger.log(logging.NOTSET,...
This metaclass simply registers all the classes that inherit from 'Instruction' (see below).
62598eec627d3e7fe0e055e7
class ImageSinglet(object): <NEW_LINE> <INDENT> def __init__(self, hdulist): <NEW_LINE> <INDENT> self.hdulist = hdulist <NEW_LINE> self.marker = None <NEW_LINE> self._display = None <NEW_LINE> self.display_changed = Signal() <NEW_LINE> self.xy_changed = Signal() <NEW_LINE> self.focus_released = Signal() <NEW_LINE> self...
A single image on a matplotlib axes. Provides interaction and is markable.
62598eec9c8ee8231303f508
class User(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'user' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> user_id = db.Column(db.Integer) <NEW_LINE> name = db.Column(db.String) <NEW_LINE> password = db.Column(db.String) <NEW_LINE> age = db.Column(db.Integer) <NEW_LINE> sex = db.Column(db.Integ...
用户表
62598eecd486a94d0ba2a729
class FalseValidator(Validator): <NEW_LINE> <INDENT> def __call__(self, value: Any) -> bool: <NEW_LINE> <INDENT> return False
A realist validator.
62598eecaad79263cf42cf69
@register(dict) <NEW_LINE> class DictRouter(Router): <NEW_LINE> <INDENT> @property <NEW_LINE> def container_type(self): <NEW_LINE> <INDENT> return dict <NEW_LINE> <DEDENT> def get(self, key, default=None): <NEW_LINE> <INDENT> return self.container.get(key, default) <NEW_LINE> <DEDENT> def share(self, name, value): <NEW...
Config sharing router for dict configs
62598eec56ac1b37e630094a
class Singleton(type): <NEW_LINE> <INDENT> _instances = {} <NEW_LINE> def __call__(cls, *args, **kwargs): <NEW_LINE> <INDENT> if cls not in cls._instances: <NEW_LINE> <INDENT> cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) <NEW_LINE> <DEDENT> return cls._instances[cls]
see https://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
62598eec851cf427c66b6a26
@dataclass(repr=False) <NEW_LINE> class Segment(Model): <NEW_LINE> <INDENT> duration: float <NEW_LINE> loudness_start: float <NEW_LINE> loudness_max: float <NEW_LINE> pitches: List[float] <NEW_LINE> timbre: List[float] <NEW_LINE> confidence: Optional[float] = None <NEW_LINE> loudness_end: Optional[float] = None <NEW_LI...
Analysis of a track's segment. Attributes are sometimes not available.
62598eecfff4ab517ebcbf35
class Heartbeat_List: <NEW_LINE> <INDENT> def __init__(self,length=1): <NEW_LINE> <INDENT> rospy.logdebug("Calling Heartbeat_List.__init__()") <NEW_LINE> self._list = [0]*length <NEW_LINE> self.sum = 0.0 <NEW_LINE> self._oldest_index = 0 <NEW_LINE> self._max_index = length - 1 <NEW_LINE> self.num_pushed = 0 <NEW_LINE> ...
A list for tracking the frequency for the heartbeat. Pushing to this list will remove the oldest element and replace it with the pushed element. You can also ask for the current sum of all elements in the list. The list is initialized to zero with a length given when initializing, defaults to 1.
62598eec3539df3088ecaa0f
class Douglas2013TestCaseSD100Q200K040(Douglas2013TestCaseSD001Q200K005): <NEW_LINE> <INDENT> GSIM_CLASS = dst.DouglasEtAl2013StochasticSD100Q200K040 <NEW_LINE> MEAN_FILE = 'DOUG2013/DOUGLAS_2013_STOCHASTIC_MEAN_SD100Q0200K040.csv' <NEW_LINE> STD_FILE = 'DOUG2013/DOUGLAS_2013_STOCHASTIC_STD_SD100Q0200K040.csv' <NEW_LIN...
Tests the Douglas et al (2013) stochastic GMPE. SD = 100 Q = 200 K = 0.040
62598eece5267d203ee6a064
class XsdMetsValidator(XsdValidator): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def validate(cls, doc): <NEW_LINE> <INDENT> return cls.instance(XSD_METS_URL)._validate(doc)
XML Schema validator.
62598eec7047854f4633db31