code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class WxTestCase(WxTestHelperMixin, unittest.TestCase): <NEW_LINE> <INDENT> pass
A convenience TestCase for use in wxPython application unit tests.
62598f6876d4e153a661c342
class MethodCombiner(BasePermissionEx): <NEW_LINE> <INDENT> def __init__(self, dictionary): <NEW_LINE> <INDENT> self.d = dictionary <NEW_LINE> <DEDENT> def has_permission_ex(self, request, view, obj): <NEW_LINE> <INDENT> method = request.method.upper() <NEW_LINE> if method in self.d: <NEW_LINE> <INDENT> perm = self.d[m...
Call diffrent permission classes depends of request.method
62598f6850485f2cf55da698
class TextEditor(VanillaBaseObject): <NEW_LINE> <INDENT> nsScrollViewClass = NSScrollView <NEW_LINE> nsTextViewClass = NSTextView <NEW_LINE> delegateClass = VanillaTextEditorDelegate <NEW_LINE> def __init__(self, posSize, text="", callback=None, readOnly=False, checksSpelling=False): <NEW_LINE> <INDENT> self._posSize =...
Standard long text entry control.:: from vanilla import * class TextEditorDemo(object): def __init__(self): self.w = Window((200, 200)) self.w.textEditor = TextEditor((10, 10, -10, 22), callback=self.textEditorCallback) self.w.open()...
62598f68ac7a0e7691f71c3d
class NotEnoughAuthentication(Exception): <NEW_LINE> <INDENT> pass
This is thrown if the authentication is valid, but is not enough to successfully verify the user. i.e. don't retry this type of authentication, try another one.
62598f684d74a7450cd58a6d
class OpInstanceReplaceDisks(OpCode): <NEW_LINE> <INDENT> OP_DSC_FIELD = "instance_name" <NEW_LINE> OP_PARAMS = [ _PInstanceName, ("mode", ht.NoDefault, ht.TElemOf(constants.REPLACE_MODES), "Replacement mode"), ("disks", ht.EmptyList, ht.TListOf(ht.TPositiveInt), "Disk indexes"), ("remote_node", None, ht.TMaybeString, ...
Replace the disks of an instance.
62598f68711fe17d825dfe15
class Resin(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.settings = Settings() <NEW_LINE> self.logs = Logs() <NEW_LINE> self.auth = Auth() <NEW_LINE> self.models = Models() <NEW_LINE> self.twofactor_auth = TwoFactorAuth()
This class implements all functions supported by the Python SDK. Attributes: settings (Settings): configuration settings for Resin Python SDK. logs (Logs): logs from devices working on Resin. auth (Auth): authentication handling. models (Models): all models in Resin Python SDK.
62598f688a349b6b4368596a
class OrdersView(MethodView): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.helpers = Helpers() <NEW_LINE> self.success = Success() <NEW_LINE> self.error = Error() <NEW_LINE> <DEDENT> @token_required <NEW_LINE> def post(self, user_id): <NEW_LINE> <INDENT> json_data = req...
A class based view for handling orders requests
62598f680383005118f6ce36
class MODIFY_PDP_CONTEXT_REQUEST_MSTONET(Layer3): <NEW_LINE> <INDENT> constructorList = [ie for ie in Header(10, 74)] <NEW_LINE> def __init__(self, with_options=True, **kwargs): <NEW_LINE> <INDENT> Layer3.__init__(self) <NEW_LINE> self.extend([ Type3_TV('LLC_SAPI', ReprName='Requested LLC service access poin...
MS -> Net Global
62598f6821bff66bcd72238a
class Connector(base.BaseConnector): <NEW_LINE> <INDENT> _addressType = address.IPv4Address <NEW_LINE> def __init__(self, host, port, factory, timeout, bindAddress, reactor=None): <NEW_LINE> <INDENT> if isinstance(port, _portNameType): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> port = socket.getservbyname(port, 'tcp'...
A L{Connector} provides of L{twisted.internet.interfaces.IConnector} for all POSIX-style reactors. @ivar _addressType: the type returned by L{Connector.getDestination}. Either L{IPv4Address} or L{IPv6Address}, depending on the type of address. @type _addressType: C{type}
62598f685e10d32532ce3480
class DiffableHistogram(nn.Module): <NEW_LINE> <INDENT> def __init__(self, bins, min=0, max=1, sigma=25, batchwise=False): <NEW_LINE> <INDENT> super(DiffableHistogram, self).__init__() <NEW_LINE> self.bins = torch.Tensor(bins) <NEW_LINE> self.sigma = sigma <NEW_LINE> self.batchwise = batchwise <NEW_LINE> if type(bins) ...
Modified version of https://discuss.pytorch.org/t/differentiable-torch-histc/25865/2 by Tony-Y If `bins` is a sequence the histogram will be defined by the edges specified in `bins`. If it is an integer the histogram will consist of equally sized bins. `sigma` is a parameter of how strickly the differentiable histogra...
62598f68d164cc61758206a7
class SourceGetMetadataResponse(_messages.Message): <NEW_LINE> <INDENT> metadata = _messages.MessageField('SourceMetadata', 1)
The result of a SourceGetMetadataOperation. Fields: metadata: The computed metadata.
62598f6876d4e153a661c344
class Subtract(Node): <NEW_LINE> <INDENT> def __init__(self, left, right): <NEW_LINE> <INDENT> self.left = left <NEW_LINE> self.right = right <NEW_LINE> <DEDENT> def evaluate(self): <NEW_LINE> <INDENT> left = self.left.evaluate() <NEW_LINE> right = self.right.evaluate() <NEW_LINE> if not isinstance(left, int): <NEW_LIN...
A node representing subtraction.
62598f6863f4b57ef0085906
class FaustFEPts5k(Dataset): <NEW_LINE> <INDENT> def __init__(self, descriptor_dim, sampler=None, split='train', transform=DefaultTransform, build_graph=False, cls=False): <NEW_LINE> <INDENT> super(FaustFEPts5k).__init__() <NEW_LINE> self.name = 'FaustFEPts5k' <NEW_LINE> self.IDlist = np.arange(10000) <NEW_LINE> self.s...
Faust 3D points for Feature Extraction (FE). Output: dictionary with keys {points3d, correspondence} Data Format: points3d: [num_points, 3] real numbers. correspondence: [num_points] integers in range [6890].
62598f6850485f2cf55da69a
class ProyectoForm(forms.ModelForm): <NEW_LINE> <INDENT> nombre = forms.CharField(max_length=50) <NEW_LINE> presupuesto = forms.IntegerField() <NEW_LINE> observaciones = forms.CharField(max_length=200) <NEW_LINE> miembros = forms.ModelMultipleChoiceField(queryset=User.objects.all()) <NEW_LINE> class Meta: <NEW_LINE> <I...
Form para agregar proyecto
62598f681d351010ab8f326f
class ThriftArgScheme(scheme.ArgScheme): <NEW_LINE> <INDENT> _headers_rw = rw.headers( rw.number(2), rw.len_prefixed_string(rw.number(2)), rw.len_prefixed_string(rw.number(2)), ) <NEW_LINE> def __init__(self, deserialize_type): <NEW_LINE> <INDENT> self.deserialize_type = deserialize_type <NEW_LINE> <DEDENT> def type(se...
Represents the ``thrift`` arg scheme. It requires a reference to the result type for deserialized objects.
62598f6815baa723494616b3
class Batch(object): <NEW_LINE> <INDENT> def __init__(self, table, timestamp=None, batch_size=None, transaction=False): <NEW_LINE> <INDENT> if not (timestamp is None or isinstance(timestamp, Integral)): <NEW_LINE> <INDENT> raise TypeError("'timestamp' must be an integer or None") <NEW_LINE> <DEDENT> if batch_size is no...
Batch mutation class. This class cannot be instantiated directly; use :py:meth:`Table.batch` instead.
62598f68d18da76e235b6ccc
class SameEdgeCountAsObjectSelector(Selector): <NEW_LINE> <INDENT> def __init__(self, obj): <NEW_LINE> <INDENT> self.edge_count = len(obj.Edges()) <NEW_LINE> <DEDENT> def filter(self, objectList): <NEW_LINE> <INDENT> r = [] <NEW_LINE> for o in objectList: <NEW_LINE> <INDENT> if len(o.Edges()) == self.edge_count: <NEW_L...
A CQ Selector class which filter objects which have the same number of edges as a reference object
62598f68287bf620b62712ea
class InstanceProperty(object): <NEW_LINE> <INDENT> pass
Instanced version of EntityProperty
62598f68d10714528d69d5f9
class MessageSum(MessageProxy): <NEW_LINE> <INDENT> def __init__(self, msg1, msg2): <NEW_LINE> <INDENT> MessageProxy.__init__(self, (msg1, msg2)) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return ''.join([str(msg) for msg in self.message]) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> retu...
A simple class for proxying sum of two messages.
62598f686fece00bbaccb0c3
class TestSettingsFunctions(unittest.TestCase): <NEW_LINE> <INDENT> @mock.patch('oauth2_jwt_provider.settings.import_from_string') <NEW_LINE> def test_perform_import(self, mock_string_import): <NEW_LINE> <INDENT> self.assertRaises( ImproperlyConfigured, perform_import, 'not_a_setting', 'SETTING', ) <NEW_LINE> self.asse...
Units tests for Settings funtions and methods
62598f689b70327d1c57e4d7
class BackwardPusher(Tile): <NEW_LINE> <INDENT> def __init__(self, screen_x, screen_y, world_x, world_y, group, facing: int = 0, **kwargs): <NEW_LINE> <INDENT> super().__init__(screen_x, screen_y, world_x, world_y, group, image=const.get_sprite('backward_jumper', facing=facing), facing=facing, **kwargs)
Crée une tile backward jumper
62598f6873bcbd0ca4bc9982
class ILI9341(DisplaySPI): <NEW_LINE> <INDENT> _COLUMN_SET = 0x2a <NEW_LINE> _PAGE_SET = 0x2b <NEW_LINE> _RAM_WRITE = 0x2c <NEW_LINE> _RAM_READ = 0x2e <NEW_LINE> _INIT = ( (0xef, b'\x03\x80\x02'), (0xcf, b'\x00\xc1\x30'), (0xed, b'\x64\x03\x12\x81'), (0xe8, b'\x85\x00\x78'), (0xcb, b'\x39\x2c\x00\x34\x02'), (0xf7, b'\x...
A simple driver for the ILI9341/ILI9340-based displays. >>> import ili9341 >>> from machine import Pin, SPI >>> spi = SPI(mosi=Pin(13), sck=Pin(14)) >>> display = ili9341.ILI9341(spi, cs=Pin(15), dc=Pin(12), rst=Pin(16)) >>> display.fill(ili9341.color565(0xff, 0x11, 0x22)) >>> display.pixel(120, 160, 0)
62598f6850485f2cf55da69d
class ImageSingleton(Dataset): <NEW_LINE> <INDENT> def __init__(self, path: str, shape: Tuple[int, int]=(128, 128), as_grey: bool=True): <NEW_LINE> <INDENT> super(ImageSingleton, self).__init__(shape, as_grey, 1, 0) <NEW_LINE> if isfile(path): <NEW_LINE> <INDENT> ok = self.add(read(path, self._shape, self._as_grey)) <N...
Dataset with one single image, used when we need to test on one single image
62598f68711fe17d825dfe19
class LayerExporter(): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def exportVectorLayer(layer): <NEW_LINE> <INDENT> settings = QSettings() <NEW_LINE> systemEncoding = settings.value( "/UI/encoding", "System" ) <NEW_LINE> filename = os.path.basename(unicode(layer.source())) <NEW_LINE> idx = filename.rfind(".") <NEW_LI...
This class provides method to export layers so they can be used by third party applications. These method are used by the GeoAlgorithm class and allow the developer to use transparently any layer that is loaded into QGIS, without having to worry about its origin
62598f68d10714528d69d5fa
class RawVideoRecorder(object): <NEW_LINE> <INDENT> FFMPEG_BIN = 'ffmpeg' <NEW_LINE> def __init__(self, fname, screen_size): <NEW_LINE> <INDENT> self.output = open('_video_recorder.out', 'w') <NEW_LINE> mkdir_if_not_exist(os.path.dirname(fname)) <NEW_LINE> command = [ VideoRecorder.FFMPEG_BIN, '-y', '-f', 'rawvideo', '...
record a video from pygame session. requires ffmpeg.
62598f68d99f1b3c44d04de2
class Telnet(Brute): <NEW_LINE> <INDENT> def __init__(self, addr, port): <NEW_LINE> <INDENT> super(Telnet, self).__init__() <NEW_LINE> self.addr = addr <NEW_LINE> self.port = port <NEW_LINE> <DEDENT> def do(self, arg, res): <NEW_LINE> <INDENT> if len(res) > 0: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> user, pwd = ...
Telnet password brute
62598f686e29344779affd8b
class OIDCData(collections.abc.MutableMapping): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.store = dict() <NEW_LINE> self.update(dict(*args, **kwargs)) <NEW_LINE> <DEDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> return self.store[key] <NEW_LINE> <DEDENT> def __setitem__(se...
Basic OIDC data representation providing validation of required fields.
62598f689b70327d1c57e4d9
class advection(ptype): <NEW_LINE> <INDENT> def __init__(self, cparams, dtype_u, dtype_f): <NEW_LINE> <INDENT> assert 'nvars' in cparams <NEW_LINE> assert 'c' in cparams <NEW_LINE> assert 'order' in cparams <NEW_LINE> assert cparams['nvars']%2 == 0 <NEW_LINE> for k,v in cparams.items(): <NEW_LINE> <INDENT> setattr(self...
Example implementing the forced 1D heat equation with Dirichlet-0 BC in [0,1] Attributes: A: second-order FD discretization of the 1D laplace operator dx: distance between two spatial nodes
62598f6856b00c62f0fb1fe5
class XtextModePlugin(IPeppyPlugin): <NEW_LINE> <INDENT> def getMajorModes(self): <NEW_LINE> <INDENT> yield XtextMode
Plugin to register modes and user interface for Xtext
62598f688e05c05ec3f6e9de
class StandardJSONProtocol(_KeyCachingProtocol): <NEW_LINE> <INDENT> if PY2: <NEW_LINE> <INDENT> def _loads(self, value): <NEW_LINE> <INDENT> return json.loads(value) <NEW_LINE> <DEDENT> def _dumps(self, value): <NEW_LINE> <INDENT> return json.dumps(value) <NEW_LINE> <DEDENT> <DEDENT> else: <NEW_LINE> <INDENT> def _loa...
Implements :py:class:`JSONProtocol` using Python's built-in JSON library. Note that the built-in library is (appropriately) strict about the JSON standard; it won't accept dictionaries with non-string keys, sets, or (on Python 3) bytestrings.
62598f6838b623060ffa87cc
class System: <NEW_LINE> <INDENT> def __init__( self, particles: Optional[Particles] = None, evolution: Optional[Any] = None, gravity: Optional[Any] = None, converter: Optional[Any] = None, channel_attrs: Optional[list] = None, **kw, ): <NEW_LINE> <INDENT> self.particles = particles <NEW_LINE> self.evolution = evolutio...
Class for grouping AMUSE code about a single system. Parameters ---------- objects: Particles the basic component. evolution: evolution code gravity: gravity code channels Returns ------- system
62598f6815baa723494616b7
class SingleBeatDataset(pytorch_tools.data.SubsetDatasetFolder): <NEW_LINE> <INDENT> def __init__(self, root_folder, transform=None, **kwargs): <NEW_LINE> <INDENT> super().__init__(root_folder, self.load_segment, ['.npy'], transform=transform, **kwargs) <NEW_LINE> <DEDENT> def load_segment(self, path): <NEW_LINE> <INDE...
A dataset of WFDB single beats. Use the Generator class in this module to write a dataset based on WFDB records to some folder. Then, this class cal be used to load the samples from that folder.
62598f68d164cc61758206ab
class FileNameSetting(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.folder_1="file_output\\" <NEW_LINE> self.folder_2="file_temp\\" <NEW_LINE> self.folder_3="graph_output\\" <NEW_LINE> self.folder_4="graph_demo\\" <NEW_LINE> self.load_data_output=self.folder_1+"load_data.csv" <NEW_LINE> self.sampl...
1.包含数据处理过程中所有需存储的.csv文件名,分并行和串行两层级命名
62598f68a8ecb03325870936
class ScdnErrorPage(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.RedirectCode = None <NEW_LINE> self.RedirectUrl = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.RedirectCode = params.get("RedirectCode") <NEW_LINE> self.RedirectUrl = params.get("Red...
acl的错误页面
62598f68796e427e5384dec5
class MergeExpressions: <NEW_LINE> <INDENT> def __init__(self, first, second): <NEW_LINE> <INDENT> self.first = first <NEW_LINE> self.second = second <NEW_LINE> self.firstLen = len(first) <NEW_LINE> self.secondLen = len(second) <NEW_LINE> self.table = [[0] * (self.secondLen + 1) for _ in range(self.firstLen ...
Merge two words to the maximal expression that matches to both objects. The algorithm is based on the Longest Common Subsequence problem and the implementation at wikibooks.org/wiki/Algorithm_Implementation/Strings/Longest_common_subsequence
62598f681d351010ab8f3274
class SyncQueriesReport(MultiAttrReport): <NEW_LINE> <INDENT> def __init__( self, description: Optional[str] = None, meta_data: Optional[Dict[str, Any]] = None, depth: int = 0, prog_hook: Optional[ProgressHookBase[Any]] = None, ): <NEW_LINE> <INDENT> self._init_src_qr_report: Optional[MultiListReport[DicomOpReport]] = ...
Report for queries being performed during sync
62598f6826238365f5fac2a6
class Node: <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> self.left = None <NEW_LINE> self.right = None <NEW_LINE> self.data = data <NEW_LINE> <DEDENT> def insert(self, data): <NEW_LINE> <INDENT> if self.data: <NEW_LINE> <INDENT> if data < self.data: <NEW_LINE> <INDENT> if self.left is None: <NEW_LI...
LRD
62598f686aa9bd52df0d4603
class NoDefinedDynamicClass(Exception): <NEW_LINE> <INDENT> pass
Return Error when no defined class for dynamic fact
62598f68711fe17d825dfe1c
class CondaRequirement(PackageRequirement): <NEW_LINE> <INDENT> REQUIREMENTS = {ExecutableRequirement('conda'), ExecutableRequirement('grep')} <NEW_LINE> def __init__(self, package, version='', repo=''): <NEW_LINE> <INDENT> PackageRequirement.__init__(self, 'conda', package, version, repo) <NEW_LINE> <DEDENT> def insta...
This class is a subclass of ``PackageRequirement``. It specifies the proper type for ``conda`` packages automatically and provides a function to check for the requirement.
62598f6950485f2cf55da6a1
class SlidingWindowMSFS(TemporalProposalsBase): <NEW_LINE> <INDENT> def __init__(self, length, num_scales, stride, unique=False, dtype=np.float32): <NEW_LINE> <INDENT> self.length = length <NEW_LINE> self.num_scales = num_scales <NEW_LINE> self.stride = stride <NEW_LINE> self.unique = unique <NEW_LINE> self.dtype = dty...
Multi-scale (linear) sliding window with fixed stride TODO: - We are considering to deprecated this abstraction. Indeed, it's disabled from training. - documentation.
62598f69d10714528d69d5fe
class Config(AppConfig): <NEW_LINE> <INDENT> name = 'oaipmh' <NEW_LINE> verbose_name = 'OAI-PMH harvesting'
Configuration for OAI-PMH application.
62598f694d74a7450cd58a71
class CEDQuery: <NEW_LINE> <INDENT> is_connected = False <NEW_LINE> conn = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> if not self.is_connected: <NEW_LINE> <INDENT> self.server = os.getenv('CED_SERVER', default = 'localhost') <NEW_LINE> self.port = int(os.getenv('CED_PORT', default = 389)) <NEW_LINE> self.u...
CEDQuery class. Encapsulates the LDAP connect and queries to CED. Author: L. Aaron Kaplan <leon-aaron.kaplan@ext.ec.europa.eu>
62598f698c3a8732951f5c82
class ServerMessage(Message): <NEW_LINE> <INDENT> def __init__(self, sender_id: int, term: int) -> None: <NEW_LINE> <INDENT> super(ServerMessage, self).__init__(sender_id, False) <NEW_LINE> self.term = term
Base class for all messages sent between servers.
62598f69d164cc61758206ad
class DogSerializer(EntitySerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> entity = Dog
Serializer for Dog Entity
62598f69d99f1b3c44d04de6
class ECB_CutAndPaste: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> from os import urandom <NEW_LINE> self.master_k = urandom(16) <NEW_LINE> <DEDENT> def parser(self, s): <NEW_LINE> <INDENT> temp = {} <NEW_LINE> for i in s.rsplit('&'): <NEW_LINE> <INDENT> temp[i.rsplit('=')[0]]=i.rsplit('=')[1] <NEW_LINE...
challenge 13
62598f69711fe17d825dfe1d
class UserInfoHandler(BaseHandler): <NEW_LINE> <INDENT> @web.addslash <NEW_LINE> def get(self, user_id=None): <NEW_LINE> <INDENT> if user_id is not None: <NEW_LINE> <INDENT> user = model.User.get_user(int(user_id)) <NEW_LINE> if user is not None: <NEW_LINE> <INDENT> self.render('user_info.tpl', user=user) <NEW_LINE> <D...
Handler of displaying user's information.
62598f6926238365f5fac2a8
class VoteSmartOfficial(models.Model): <NEW_LINE> <INDENT> candidateId = models.CharField(max_length=15, primary_key=True) <NEW_LINE> firstName = models.CharField(max_length=255) <NEW_LINE> nickName = models.CharField(max_length=255) <NEW_LINE> middleName = models.CharField(max_length=255) <NEW_LINE> lastName = models....
http://api.votesmart.org/docs/Officials.html
62598f697b25080760ed6bcd
class SObjectCheckboxWdg(FunctionalTableElement): <NEW_LINE> <INDENT> def get_title(self): <NEW_LINE> <INDENT> return "Select" <NEW_LINE> <DEDENT> def get_display(self): <NEW_LINE> <INDENT> sobject = self.get_current_sobject() <NEW_LINE> checkbox = CheckboxWdg() <NEW_LINE> checkbox.set_name(self.name) <NEW_LINE> checkb...
a basic sobject checkbox wdg
62598f69d164cc61758206ae
class CompoundLiteral(Literal): <NEW_LINE> <INDENT> RANGE_LITERAL = 'rangeLiteral' <NEW_LINE> def __init__(self, choice, lowerBound=None, upperBound=None): <NEW_LINE> <INDENT> self.choice = choice <NEW_LINE> if choice == CompoundLiteral.RANGE_LITERAL: <NEW_LINE> <INDENT> self.lowerBound = lowerBound <NEW_LINE> self.upp...
A compound literal represents a range, a geospatial coordinate, or other useful compound structure. TODO: FIGURE OUT SYNTAX FOR OTHER TYPES. INSURE THAT THE SYNTAX FOR A RANGE DOESN'T CONFLICT/OVERLAP
62598f69ac7a0e7691f71c47
class MeasureGroupPopulation(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = Field("MeasureGroupPopulation", const=True) <NEW_LINE> code: fhirtypes.CodeableConceptType = Field( None, alias="code", title=( "initial-population | numerator | numerator-exclusion | denominator | " "denominator-exclusio...
Disclaimer: Any field name ends with ``__ext`` doesn't part of Resource StructureDefinition, instead used to enable Extensibility feature for FHIR Primitive Data Types. Population criteria. A population criteria for the measure.
62598f6950485f2cf55da6a2
@since('2.2') <NEW_LINE> @pytest.mark.resource_intensive <NEW_LINE> class TestRepairDataSystemTable(Tester): <NEW_LINE> <INDENT> @pytest.fixture(scope='function', autouse=True) <NEW_LINE> def fixture_set_cluster_settings(self, fixture_dtest_setup): <NEW_LINE> <INDENT> fixture_dtest_setup.cluster.populate(5).start(wait_...
@jira_ticket CASSANDRA-5839 Tests the `system_distributed.parent_repair_history` and `system_distributed.repair_history` tables by writing thousands of records to a cluster, then ensuring these tables are in valid states before and after running repair.
62598f698c3a8732951f5c83
class LinearScaler(RestraintScaler): <NEW_LINE> <INDENT> _scaler_key_ = "linear" <NEW_LINE> def __init__( self, alpha_min: float, alpha_max: float, strength_at_alpha_min: float = 1.0, strength_at_alpha_max: float = STRENGTH_AT_ALPHA_MAX, ): <NEW_LINE> <INDENT> self._alpha_min = alpha_min <NEW_LINE> self._alpha_max = al...
This scaler linearly interpolates from alpha_min to alpha_max.
62598f69d99f1b3c44d04de8
@python_2_unicode_compatible <NEW_LINE> class Occurrence(models.Model): <NEW_LINE> <INDENT> start_time = models.DateTimeField(_('start time')) <NEW_LINE> end_time = models.DateTimeField(_('end time')) <NEW_LINE> event = models.ForeignKey(Event, verbose_name=_('event'), editable=False) <NEW_LINE> notes = GenericRelation...
Represents the start end time for a specific occurrence of a master ``Event`` object.
62598f6991af0d3eaad3953f
class Alien(Sprite): <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.screen = screen <NEW_LINE> self.ai_settings = ai_settings <NEW_LINE> self.image = pygame.image.load('images/alien.bmp') <NEW_LINE> self.rect = self.image.get_rect() <NEW_LINE> self.re...
Класс, представляющий одного пришельца.
62598f6926238365f5fac2aa
class V1AWSElasticBlockStoreVolumeSource(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'volume_id': 'str', 'fs_type': 'str', 'partition': 'int', 'read_only': 'bool' } <NEW_LINE> self.attribute_map = { 'volume_id': 'volumeID', 'fs_type': 'fsType', 'partition': 'partition', '...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f6966673b3332c2faf1
class JobResultNotReady(KeyError): <NEW_LINE> <INDENT> def __init__(self, job_id: UUID): <NEW_LINE> <INDENT> super().__init__(f'No job by the id of {job_id} was found')
Raised by ``get_job_result()`` if the job result is not ready.
62598f69d10714528d69d601
class GTE_read_all_channels_is: <NEW_LINE> <INDENT> pass
UNDOCUMENTED: created without spec
62598f69c432627299fa270a
@TYPES.register("WindowCovering") <NEW_LINE> class WindowCovering(HomeAccessory): <NEW_LINE> <INDENT> def __init__(self, *args): <NEW_LINE> <INDENT> super().__init__(*args, category=CATEGORY_WINDOW_COVERING) <NEW_LINE> self._homekit_target = None <NEW_LINE> serv_cover = self.add_preload_service(SERV_WINDOW_COVERING) <N...
Generate a Window accessory for a cover entity. The cover entity must support: set_cover_position.
62598f6921bff66bcd722394
class CategoryColumn(Column): <NEW_LINE> <INDENT> def __init__(self, name, categories, dtype='category', null_ratio=0, null_element=None, random_state=None): <NEW_LINE> <INDENT> super().__init__(name, dtype, null_ratio=null_ratio, null_element=null_element, random_state=random_state) <NEW_LINE> self.categories = catego...
A Column with categorical data. Example ------ >>> column = CategoryColumn('MyCategory', ['A', 'B', 'C']) >>> column.generate_entries(3) 0 A 1 A 2 C dtype: category
62598f69ac7a0e7691f71c49
class User(object): <NEW_LINE> <INDENT> def __init__(self, uuid=None, openid=None): <NEW_LINE> <INDENT> if uuid: <NEW_LINE> <INDENT> self.uuid = uuid <NEW_LINE> <DEDENT> elif openid: <NEW_LINE> <INDENT> self.uuid = uuid5(NAMESPACE_URL, openid) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> raise TypeError("Either a uuid...
Represents a Marcel user / author
62598f69d10714528d69d602
class GemstoneCustomHandler(RequestHandler): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.microservice = None <NEW_LINE> super(GemstoneCustomHandler, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def initialize(self, microservice): <NEW_LINE> <INDENT> self.microservice = micro...
Base class for custom Tornado handlers that can be added to the microservice. Offers a reference to the microservice through the ``self.microservice`` attribute.
62598f694d74a7450cd58a73
class Executor(ThreadPoolExecutor): <NEW_LINE> <INDENT> _instance = None <NEW_LINE> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> if not getattr(cls, '_instance', None): <NEW_LINE> <INDENT> cls._instance = ThreadPoolExecutor(max_workers=10) <NEW_LINE> <DEDENT> return cls._instance
创建多线程的线程池,线程池的大小为10 创建多线程时使用了单例模式,如果Executor的_instance实例已经被创建,则不再创建
62598f6963f4b57ef008590b
class CategoryOnlineManager(models.Manager): <NEW_LINE> <INDENT> def get_queryset(self): <NEW_LINE> <INDENT> from blog.models import Entry <NEW_LINE> entry_status = Entry.STATUS_ONLINE <NEW_LINE> return super(CategoryOnlineManager, self).get_queryset().filter( entry__status=entry_status).distinct()
Manager that manages online ``Category`` objects.
62598f698c3a8732951f5c86
class BenchmarkRunner(VariantSearchRunner): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> numVariants = 0 <NEW_LINE> beforeCpu = time.clock() <NEW_LINE> beforeWall = time.time() <NEW_LINE> try: <NEW_LINE> <INDENT> for v in self._httpClient.searchVariants(self._request): <NEW_LINE> <INDENT> numVariants += 1 <NE...
Runner class for the client side benchmarking. This is intended to give rough figures on protocol throughput on the server side over various requests.
62598f69a8ecb0332587093c
class BufferedGzipFile(GzipFile): <NEW_LINE> <INDENT> SIZE = 2 * 2**20 <NEW_LINE> def __init__(self, filename=None, mode=None, compresslevel=9, **kwargs): <NEW_LINE> <INDENT> GzipFile.__init__(self, filename, mode, compresslevel) <NEW_LINE> self._size = kwargs.get('size', self.SIZE) <NEW_LINE> self._buffer = StringIO()...
A C{GzipFile} subclass that buffers calls to L{read()} and L{write()}. This allows faster reads and writes of data to and from gzip-compressed files at the cost of using more memory. The default buffer size is 2mb. C{BufferedGzipFile} is useful for loading large gzipped pickle objects as well as writing large encode...
62598f691f5feb6acb162370
class Compiler(six.with_metaclass(abc.ABCMeta)): <NEW_LINE> <INDENT> def __new__(cls, backend='py'): <NEW_LINE> <INDENT> if cls is Compiler: <NEW_LINE> <INDENT> currypkg = config.python_package_name() <NEW_LINE> api = importlib.import_module('%s.backends.%s.compiler.api' % (currypkg, backend)) <NEW_LINE> return api.Com...
Abstract interface for an ICurry compiler.
62598f69167d2b6e312b66b4
class GullTest(unittest.TestCase): <NEW_LINE> <INDENT> def test_init(self): <NEW_LINE> <INDENT> self.assertEqual(gull.LIBNAME, "libgull.so") <NEW_LINE> self.assertNotEqual(gull.LIBHASH, None) <NEW_LINE> <DEDENT> def test_install(self): <NEW_LINE> <INDENT> self.assertTrue(os.path.exists(gull.LIBPATH)) <NEW_LINE> <DEDENT...
Unit tests for the gull sub-package
62598f699b70327d1c57e4e1
class VehicleStatsBatteryVoltageWithDecoration(object): <NEW_LINE> <INDENT> openapi_types = { 'decorations': 'VehicleStatsDecorations', 'time': 'str', 'value': 'int' } <NEW_LINE> attribute_map = { 'decorations': 'decorations', 'time': 'time', 'value': 'value' } <NEW_LINE> def __init__(self, decorations=None, time=None,...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598f6976d4e153a661c350
class Minesweeper(): <NEW_LINE> <INDENT> def __init__(self, height=8, width=8, mines=8): <NEW_LINE> <INDENT> self.height = height <NEW_LINE> self.width = width <NEW_LINE> self.mines = set() <NEW_LINE> self.board = [] <NEW_LINE> for i in range(self.height): <NEW_LINE> <INDENT> row = [] <NEW_LINE> for j in range(self.wid...
Minesweeper game representation
62598f6921bff66bcd722396
class URLField(StringField): <NEW_LINE> <INDENT> def __init__(self, private=None, local=None, schemes=None, tlds=None, **kwargs): <NEW_LINE> <INDENT> super(URLField, self).__init__(**kwargs) <NEW_LINE> self.private = private <NEW_LINE> self.local = local <NEW_LINE> self.schemes = schemes <NEW_LINE> self.tlds = tlds <NE...
An URL field using the udata URL normalization and validation rules. The URL spaces are automatically stripped. Non-specified parameters fallback app level settings, ie. ``URLS_ALLOW_PRIVATE``, ``URLS_ALLOW_LOCAL`` ``URLS_ALLOWED_SCHEMES`` and ``URLS_ALLOWED_TLDS`` :params bool private: Allow private URLs :params bo...
62598f697c178a314d78cbda
class TestBench(object): <NEW_LINE> <INDENT> def __init__(self, test_bench, library): <NEW_LINE> <INDENT> self._test_bench = test_bench <NEW_LINE> self._library = library <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self._test_bench.name <NEW_LINE> <DEDENT> @property <NEW_LINE> de...
User interface of a test bench. A test bench consists of one or more :class:`.Test` cases. Setting options for a test bench will apply that option all test cases belonging to that test bench.
62598f6963f4b57ef008590c
class MyClass(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.correct = 1 <NEW_LINE> <DEDENT> def test(self): <NEW_LINE> <INDENT> self.correct += 2 <NEW_LINE> self.incorrect += 2 <NEW_LINE> del self.havenot <NEW_LINE> self.nonexistent1.truc() <NEW_LINE> self.nonexistent2[1] = 'hehe'
class docstring
62598f694d74a7450cd58a74
class ResamplePoly2(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, epoch_len: int = 30, fs: int = 200, target_fs: int = 100): <NEW_LINE> <INDENT> self.epoch_len = epoch_len <NEW_LINE> self.fs = fs <NEW_LINE> self.target_fs = target_fs <NEW_LINE> <DEDENT> def fit(self, x, y=None): <NEW_LINE> <I...
Resample subject using polyphase filtering
62598f6950485f2cf55da6a7
class CrossbowExpert(Feature): <NEW_LINE> <INDENT> name = 'Crossbow Expert' <NEW_LINE> source = 'Feats'
Thanks to extensive practice with the crossbow, you gain the following benefits: • You ignore the loading quality of crossbows with which you are proficient. • Being within 5 feet of a hostile creature doesn’t impose disadvantage on your ranged attack rolls. • When you use the Attack action and attack with a one-hand...
62598f69796e427e5384decd
class BuildFSDeleteBlock(Packet): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.format_str = '!II' <NEW_LINE> <DEDENT> def pack(self,data): <NEW_LINE> <INDENT> return struct.pack(self.format_str, data.oid, data.block_id) <NEW_LINE> <DEDENT> def unpack(self,reader): <NEW_LINE> <INDENT> (oid,block_id) ...
Builds an FS_DELETE_BLOCK packet
62598f6926238365f5fac2ae
class InfoAsioCommand(gdb.Command): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(InfoAsioCommand, self).__init__('info asio', gdb.COMMAND_STATUS) <NEW_LINE> <DEDENT> @errorwrap <NEW_LINE> def invoke(self, args, from_tty): <NEW_LINE> <INDENT> asio_session = TL('HPHP::AsioSession::s_current')['m_p'] ...
Metadata about the currently in-scope AsioContext
62598f69d6c5a102081e187d
class CompileBbcode(PageCompiler): <NEW_LINE> <INDENT> name = "bbcode" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> if bbcode is None: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> self.parser = bbcode.Parser() <NEW_LINE> self.parser.add_simple_formatter("note", "") <NEW_LINE> <DEDENT> def compile_html(self, sou...
Compile bbcode into HTML.
62598f69d164cc61758206b4
class RetrieveOrderView(RetrieveAPIView): <NEW_LINE> <INDENT> throttle_classes = (OrdersThrottle,) <NEW_LINE> permission_classes = (IsAuthenticated,) <NEW_LINE> serializer_class = serializers.OrderSerializer <NEW_LINE> lookup_field = 'number' <NEW_LINE> queryset = Order.objects.all() <NEW_LINE> def get_object(self): <N...
Allow the viewing of Paid Orders. Given an order number, allow the viewing of a paid order. This endpoint will only return an order if it in a PAID state, or is in a preceding state in the order workflow (COMPLETE, FULFILLMENT_ERROR, REFUNDED). This endpoint will return a 404 response status if no order is found, or i...
62598f69711fe17d825dfe24
class TestHyperLinkDeleteView(TestViewsBase): <NEW_LINE> <INDENT> def test_render(self): <NEW_LINE> <INDENT> with self.login(self.user): <NEW_LINE> <INDENT> response = self.client.get( reverse( 'filesfolders:hyperlink_delete', kwargs={'item': self.hyperlink.sodar_uuid}, ) ) <NEW_LINE> <DEDENT> self.assertEqual(response...
Tests for the HyperLink delete view
62598f6938b623060ffa87d6
class AliasPathType(Model): <NEW_LINE> <INDENT> _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, } <NEW_LINE> def __init__(self, path=None, api_versions=None): <NEW_LINE> <INDENT> super(AliasPathType, self).__init__() <NEW_LINE> self.path = path <NEW_LI...
The type of the paths for alias. . :param path: The path of an alias. :type path: str :param api_versions: The API versions. :type api_versions: list[str]
62598f69a8ecb03325870940
class WebApp(models.Model): <NEW_LINE> <INDENT> name = models.CharField(_("name"), max_length=128, validators=[validators.validate_name], help_text=_("The app will be installed in %s") % settings.WEBAPPS_BASE_DIR) <NEW_LINE> type = models.CharField(_("type"), max_length=32, choices=AppType.get_choices()) <NEW_LINE> acc...
Represents a web application
62598f690383005118f6ce46
class ObsPreprocessedReparamTanhMultivariateGaussianPolicy(ReparamTanhMultivariateGaussianPolicy): <NEW_LINE> <INDENT> def __init__(self, preprocess_model, *args, **kwargs): <NEW_LINE> <INDENT> self.save_init_params(locals()) <NEW_LINE> super().__init__(*args, **kwargs) <NEW_LINE> self.preprocess_model_list = [preproce...
This is a weird thing and I didn't know what to call. Basically I wanted this so that if you need to preprocess your inputs somehow (attention, gating, etc.) with an external module before passing to the policy you could do so. Assumption is that you do not want to update the parameters of the preprocessing module so i...
62598f691d351010ab8f327e
class TokenResponseMessage(messages.Message): <NEW_LINE> <INDENT> status = messages.StringField(1, required=True)
ProtoRPC message definition to represent FB user tokens.
62598f69167d2b6e312b66b8
class Market(Model): <NEW_LINE> <INDENT> def __init__(self, N, K): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.N = int(N) <NEW_LINE> self.K = int(K) <NEW_LINE> self.schedule = RandomActivation(self) <NEW_LINE> self.history = pd.DataFrame({ "initiator": [], "partner": [], "deal": [], "trades": [] }) <NEW_LINE...
An economy with N agents and K goods
62598f6930c21e258be97f3b
class Score(Base): <NEW_LINE> <INDENT> __tablename__ = SCORE_TABLE_NAME <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> network_id = Column(Integer, ForeignKey(f'{Network.__tablename__}.id')) <NEW_LINE> network = relationship(Network) <NEW_LINE> annotation_id = Column(Integer, ForeignKey(f'{NamespaceEntry....
Represents the score for a sub-graph in a given network.
62598f69507cdc57c63a44d8
class TokenInfo(object): <NEW_LINE> <INDENT> def __init__(self, token_dict: dict): <NEW_LINE> <INDENT> self.id = token_dict['id'] <NEW_LINE> self.form = token_dict['form'] <NEW_LINE> self.kana = token_dict['kana'] <NEW_LINE> self.lemma = token_dict['lemma'] <NEW_LINE> self.pos = token_dict['pos'] <NEW_LINE> self.featur...
tokensのtokenに関するクラス.
62598f69ff9c53063f519d91
class ReflexAgent(Agent): <NEW_LINE> <INDENT> def getAction(self, state): <NEW_LINE> <INDENT> legalActions = state.getLegalPacmanActions() <NEW_LINE> if Directions.STOP in legalActions: <NEW_LINE> <INDENT> legalActions.remove(Directions.STOP) <NEW_LINE> <DEDENT> successors = [(state.generateSuccessor(0, action).data.sc...
If one of these actions would cause a food pellet to be eaten, it should choose that action. If none of the immediate actions lead to food, it should choose randomly from the possibilities (excluding 'Stop').
62598f696aa9bd52df0d460d
class SG_DIC_PLANTSTATIONTYPE(models.Model): <NEW_LINE> <INDENT> CODE = models.IntegerField(null=False, db_index=True, unique=True, verbose_name='发电类型id') <NEW_LINE> NAME = models.CharField(max_length=64, verbose_name='发电类型名称') <NEW_LINE> EFFECT_FLAG = models.CharField(choices=(("Y", "可用"), ("N", "弃用")), max_length=1, ...
电场类型 "CODE", "NAME", "EFFECT_FLAG"
62598f6921bff66bcd72239a
class IAnswer(form.Schema, IImageScaleTraversable): <NEW_LINE> <INDENT> pass
62598f697c178a314d78cbde
class Games(commands.Cog): <NEW_LINE> <INDENT> def __init__(self, bot): <NEW_LINE> <INDENT> self.bot = bot <NEW_LINE> self.emoji = '🏓' <NEW_LINE> <DEDENT> @commands.command() <NEW_LINE> async def connect4(self, ctx, opponent: discord.Member): <NEW_LINE> <INDENT> if opponent == self.bot.user: <NEW_LINE> <INDENT> raise ...
Play simple games with your friends in Discord!
62598f6938b623060ffa87d8
class LinkList(DashboardModule): <NEW_LINE> <INDENT> title = _('Links') <NEW_LINE> template = 'grappelli/dashboard/modules/link_list.html' <NEW_LINE> def init_with_context(self, context): <NEW_LINE> <INDENT> if self._initialized: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> new_children = [] <NEW_LINE> for link in se...
A module that displays a list of links.
62598f694d74a7450cd58a76
class NonPluginModel(models.Model): <NEW_LINE> <INDENT> other_id = models.AutoField(primary_key=True) <NEW_LINE> non_plugin = models.CharField('non plugin', blank=False, default='test non plugin', max_length=32)
Non plugin base class
62598f698a349b6b4368597d
class Test_commands_parse_version(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self) -> None: <NEW_LINE> <INDENT> self.args: List[str] = [] <NEW_LINE> self.expected = argparse.Namespace() <NEW_LINE> <DEDENT> def test_nominal(self) -> None: <NEW_LINE> <INDENT> args = commands.parse_version(self.args) <NEW_LINE> sel...
Tests the commands.parse_version function with the following cases: Nominal
62598f691d351010ab8f327f
class Softmax(OnnxOpConverter): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _impl_v1(cls, inputs, attr, params): <NEW_LINE> <INDENT> axis = attr.get("axis", 1) <NEW_LINE> ndim = len(infer_shape(inputs[0])) <NEW_LINE> if axis < 0: <NEW_LINE> <INDENT> axis += ndim <NEW_LINE> <DEDENT> if axis == ndim - 1: <NEW_LINE> <...
Operator converter for Softmax.
62598f6930c21e258be97f3d
class Util(object): <NEW_LINE> <INDENT> def cleanVerStr(self, version): <NEW_LINE> <INDENT> temp=version.replace('-','.').replace('_','.') <NEW_LINE> ver=re.sub('[a-zA-Z]', '.', temp) <NEW_LINE> while ver.find('..')>=0: <NEW_LINE> <INDENT> ver=ver.replace('..','.') <NEW_LINE> <DEDENT> return ver <NEW_LINE> <DEDENT> def...
classdocs
62598f693eb6a72ae0389d7f
class BaseModelForm(forms.ModelForm, BaseFormMixin): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.setup_initial(kwargs.get('initial')) <NEW_LINE> super(BaseModelForm, self).__init__(*args, **kwargs) <NEW_LINE> self.setup() <NEW_LINE> form_inject_sections(self) <NEW_LINE> <DEDENT> de...
Cubane base form implementation that provides the capabilities of django's ModelForm but also provides the general form helpers, configuration and rendering capabilities in the same way as BaseForm provides.
62598f698e05c05ec3f6e9e4
class InvalidModelInput(GLException): <NEW_LINE> <INDENT> error_code = 16 <NEW_LINE> status_code = 406 <NEW_LINE> def __init__(self, wrong_source): <NEW_LINE> <INDENT> self.reason = "Invalid Model Input [%s]" % wrong_source <NEW_LINE> self.arguments = [wrong_source]
This error is used when a Model validation fails
62598f69ff9c53063f519d93
class BookInfoManager(models.Manager): <NEW_LINE> <INDENT> def all(self): <NEW_LINE> <INDENT> books = super().all() <NEW_LINE> books = books.filter(isDelete=False) <NEW_LINE> return books <NEW_LINE> <DEDENT> '''封装函数''' <NEW_LINE> def create_book(self, btitle, bpub_date): <NEW_LINE> <INDENT> book = self.model <NEW_LINE>...
改变查询的结果集
62598f69d164cc61758206b8
@Scheduler.register('exp-increase-scheduler') <NEW_LINE> class ExponentialIncreaseScheduler(ExponentialDecayScheduler): <NEW_LINE> <INDENT> def _calculate(self, step_value: float) -> float: <NEW_LINE> <INDENT> v = self.lower * math.exp(step_value * self.a) <NEW_LINE> return v
Starts from lower
62598f6915baa723494616c5
class GameObject( Sprite ): <NEW_LINE> <INDENT> PIXELES: int = Constantes.PIXELES.value <NEW_LINE> DIRECTION: list = ['L', 'R', 'D', 'U'] <NEW_LINE> def __init__(self, screen: Surface, coordenada: Punto, imagen: object, mapa: object, *groups): <NEW_LINE> <INDENT> super().__init__(*groups) <NEW_LINE> self.screen: Surfac...
Un clase generica que contiene los metodos de los diferentes objectos del juego.
62598f69287bf620b62712fc