code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class UserRoleAssignmentRequest(object): <NEW_LINE> <INDENT> openapi_types = { 'role_id': 'str', 'tag_id': 'str' } <NEW_LINE> attribute_map = { 'role_id': 'roleId', 'tag_id': 'tagId' } <NEW_LINE> def __init__(self, role_id=None, tag_id=None, local_vars_configuration=None): <NEW_LINE> <INDENT> if local_vars_configuratio... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62599082ec188e330fdfa3a2 |
class ApplicationGatewayBackendHealthPool(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'backend_address_pool': {'key': 'backendAddressPool', 'type': 'ApplicationGatewayBackendAddressPool'}, 'backend_http_settings_collection': {'key': 'backendHttpSettingsCollection', 'type': '[ApplicationGatewayBa... | Application gateway BackendHealth pool.
:param backend_address_pool: Reference of an ApplicationGatewayBackendAddressPool resource.
:type backend_address_pool:
~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayBackendAddressPool
:param backend_http_settings_collection: List of ApplicationGatewayBackendHealthHt... | 625990827b180e01f3e49de0 |
class Route(SubResource): <NEW_LINE> <INDENT> _validation = { 'etag': {'readonly': True}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'address_prefix': {'key': 'properties.ad... | Route resource.
Variables are only populated by the server, and will be ignored when sending a request.
:param id: Resource ID.
:type id: str
:param name: The name of the resource that is unique within a resource group. This name can be
used to access the resource.
:type name: str
:ivar etag: A unique read-only stri... | 625990824f88993c371f129e |
class TransportException(api_errors.TransportError): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.count = 1 <NEW_LINE> self.rcount = 1 <NEW_LINE> self.retryable = False <NEW_LINE> self.verbose = False <NEW_LINE> <DEDENT> def simple_cmp(self, other): <NEW_LINE> <INDENT> return self.__cmp__(other) <NE... | Base class for various exceptions thrown by code in transport
package. | 625990827cff6e4e811b7539 |
class test_Attribute(ClassChecker): <NEW_LINE> <INDENT> _cls = frontend.Attribute <NEW_LINE> def test_class(self): <NEW_LINE> <INDENT> assert self.cls.__bases__ == (plugable.Plugin,) <NEW_LINE> assert type(self.cls.obj) is property <NEW_LINE> assert type(self.cls.obj_name) is property <NEW_LINE> assert type(self.cls.at... | Test the `ipalib.frontend.Attribute` class. | 6259908260cbc95b06365ae8 |
class Inbox(): <NEW_LINE> <INDENT> def __init__(self, items={}): <NEW_LINE> <INDENT> self.items = items <NEW_LINE> <DEDENT> def add(self, text, created=None): <NEW_LINE> <INDENT> item = { 'title': text, } <NEW_LINE> quickstart.save_g_task(item, 'inbox') <NEW_LINE> <DEDENT> def print(self): <NEW_LINE> <INDENT> for _, it... | Create Inbox container object.
Stores collection of Inbox items and associated actions. Dequeue is used
as most common operation will be FIFO processing of items. | 625990827047854f46340ead |
class OldStanfordLibParser(Parser): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.parser = StanfordParser() <NEW_LINE> <DEDENT> def parse(self, line): <NEW_LINE> <INDENT> tree = list(self.parser.raw_parse(line))[0] <NEW_LINE> tree = tree[0] <NEW_LINE> return tree | For StanfordParser < 3.6.0 | 6259908263b5f9789fe86c61 |
class HTTPNonAuthoritativeInformation(HTTPOk): <NEW_LINE> <INDENT> code = 203 <NEW_LINE> title = 'Non-Authoritative Information' | subclass of :class:`~HTTPOk`
This indicates that the returned metainformation in the entity-header is
not the definitive set as available from the origin server, but is
gathered from a local or a third-party copy.
code: 203, title: Non-Authoritative Information | 6259908299fddb7c1ca63b56 |
class FileProbe(ProbeBase): <NEW_LINE> <INDENT> ConfigSchema = FileProbeSchema <NEW_LINE> def __init__(self, config, ctx, emit=None): <NEW_LINE> <INDENT> super().__init__(config, ctx, emit) <NEW_LINE> self.path = self.pluginmgr_config.get("path") <NEW_LINE> self.run_level = 0 <NEW_LINE> self.backlog = int(self.pluginmg... | Probes a file and emits everytime a new line is read
# Config
- path (`str`): path to file
- backlog (`int=0`): number of bytes to read from backlog
- max_lines (`int=1000`): maximum number of lines to read during probe
# Instanced Attributes
- path (`str`): path to file
- backlog (`int`): number of bytes to read f... | 625990823346ee7daa3383de |
class MovingObjectPotential(Potential): <NEW_LINE> <INDENT> def __init__(self,orbit,amp=1.,GM=.06,normalize=False, softening=None, softening_model='plummer',softening_length=0.01): <NEW_LINE> <INDENT> Potential.__init__(self,amp=amp) <NEW_LINE> self._gm= GM <NEW_LINE> self._orb= orbit <NEW_LINE> if softening is None: <... | Class that implements the potential coming from a moving object
GM
phi(R,z) = - ---------------------------------
distance | 62599082ec188e330fdfa3a4 |
class Compound(Mapping): <NEW_LINE> <INDENT> def __init__(self, mapping1, mapping2): <NEW_LINE> <INDENT> assert(mapping1.output_dim==mapping2.input_dim) <NEW_LINE> input_dim, output_dim = mapping1.input_dim, mapping2.output_dim <NEW_LINE> Mapping.__init__(self, input_dim=input_dim, output_dim=output_dim) <NEW_LINE> sel... | Mapping based on passing one mapping through another
.. math::
f(\mathbf{x}) = f_2(f_1(\mathbf{x}))
:param mapping1: first mapping
:type mapping1: GPy.mappings.Mapping
:param mapping2: second mapping
:type mapping2: GPy.mappings.Mapping | 6259908292d797404e3898d9 |
class ResolveDomainRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Domain = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Domain = params.get("Domain") | ResolveDomain请求参数结构体
| 625990824f6381625f19a22c |
class CCBattery(object): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.positive = [1, '+'] <NEW_LINE> self.negative = [1, '-'] <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return ' |\n | {}\n ------------- {}\n ---------\n | ... | Class to define a Battery. | 6259908276e4537e8c3f1079 |
class GoogleCloudVisionV1p4beta1ReferenceImage(_messages.Message): <NEW_LINE> <INDENT> boundingPolys = _messages.MessageField('GoogleCloudVisionV1p4beta1BoundingPoly', 1, repeated=True) <NEW_LINE> name = _messages.StringField(2) <NEW_LINE> uri = _messages.StringField(3) | A `ReferenceImage` represents a product image and its associated
metadata, such as bounding boxes.
Fields:
boundingPolys: Bounding polygons around the areas of interest in the
reference image. Optional. If this field is empty, the system will try
to detect regions of interest. At most 10 bounding polygons wi... | 6259908297e22403b383c9f9 |
class ClassAlias(ComplexModel): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def add_to_schema(cls, schema_dict): <NEW_LINE> <INDENT> if not schema_dict.has_class(cls._target): <NEW_LINE> <INDENT> cls._target.add_to_schema(schema_dict) <NEW_LINE> <DEDENT> element = etree.Element('{%s}element' % soaplib.ns_xsd) <NEW_LINE... | New type_name, same type_info.
| 62599082fff4ab517ebcf311 |
class Retire(Message): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return "Retired: %s" % (self.sender.actor_urn) | A notice that the crawler is hit by sever problems. | 6259908299fddb7c1ca63b57 |
class CommentTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.new_comment = Comment(id =1, usernames = 'nicole',comment= 'I love this post',blog_id=3,user_id= 2) <NEW_LINE> <DEDENT> def test_instance(self): <NEW_LINE> <INDENT> self.assertTrue(isinstance(self.new_comment,Comment)) | Test Class to test the behaviour of the comment class | 6259908297e22403b383c9fa |
class CumulativeRater(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._found_commands_and_results = [] <NEW_LINE> <DEDENT> def AddFoundCommand(self, command, result): <NEW_LINE> <INDENT> self._found_commands_and_results.append((command, result)) <NEW_LINE> <DEDENT> def RateAll(self): <NEW_LINE... | Rates all found commands for relevance. | 625990824f88993c371f12a0 |
class Bike(Engine): <NEW_LINE> <INDENT> def __init__(self, fuelInLitre): <NEW_LINE> <INDENT> self.fuelInLitre = fuelInLitre <NEW_LINE> <DEDENT> def mileage(self): <NEW_LINE> <INDENT> self.mileage = 50 * self.fuelInLitre <NEW_LINE> return self.mileage | assuming the bike travels 50KM per Litre of Fuel | 62599082f548e778e596d087 |
class CreateUser(Base): <NEW_LINE> <INDENT> def __init__(self, last_name, first_name, email_address, title=None, teams=None, roles=None, requires_token=None, phone=None, login_enabled=None, is_saml_user=None, custom_id=None, ): <NEW_LINE> <INDENT> super(CreateUser, self).__init__( module='admin', cls='CreateUser', fn='... | class: veracode.SDK.admin.CreateUser
params:
last_name: required
first_name: required
email_address: required
title: optional
teams: optional
roles: optional
requires_token: optional
phone: o... | 625990825fdd1c0f98e5fa7b |
class FlagList(ListView): <NEW_LINE> <INDENT> model = PostMarkType <NEW_LINE> template_name = 'admin/flag-list.html' <NEW_LINE> @method_decorator(user_passes_test(lambda u: u.is_superuser)) <NEW_LINE> def dispatch(self, *args, **kwargs): <NEW_LINE> <INDENT> return super(FlagList, self).dispatch(*args, **kwargs) <NEW_LI... | List of flagged posts. | 62599082656771135c48adae |
class GatewayRouteListResult(Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[GatewayRoute]'}, } <NEW_LINE> def __init__(self, *, value=None, **kwargs) -> None: <NEW_LINE> <INDENT> super(GatewayRouteListResult, self).__init__(**kwargs) <NEW_LINE> self.value = value | List of virtual network gateway routes.
:param value: List of gateway routes
:type value: list[~azure.mgmt.network.v2018_08_01.models.GatewayRoute] | 625990827c178a314d78e968 |
class Singleton(object): <NEW_LINE> <INDENT> def __init__(self, klass): <NEW_LINE> <INDENT> self.klass = klass <NEW_LINE> self.instance = None <NEW_LINE> <DEDENT> def __call__(self, *args, **kwds): <NEW_LINE> <INDENT> if self.instance is None: <NEW_LINE> <INDENT> self.instance = self.klass(*args, **kwds) <NEW_LINE> <DE... | Singleton class so we dont have to keep specifing host and port | 6259908266673b3332c31efb |
class AccelerandoSpanner(TempoChangeSpanner): <NEW_LINE> <INDENT> pass | Spanner representing a speeding up. | 62599082fff4ab517ebcf313 |
class RawFeedIndicator(dict): <NEW_LINE> <INDENT> swagger_types = { } <NEW_LINE> attribute_map = { } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.discriminator = None <NEW_LINE> <DEDENT> def to_dict(self): <NEW_LINE> <INDENT> result = {} <NEW_LINE> for attr, _ in six.iteritems(self.swagger_types): <NEW_LINE>... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259908250812a4eaa621943 |
class Reservation(models.Model): <NEW_LINE> <INDENT> spot = models.ForeignKey(Spot, on_delete=models.CASCADE) <NEW_LINE> price = models.IntegerField() <NEW_LINE> buyer = models.ForeignKey(User, related_name="buyer_user") <NEW_LINE> seller = models.ForeignKey(User, related_name="seller_user") <NEW_LINE> start = models.D... | A reservation is created when a user books a spot.
Holds info about a certain transaction. | 62599082099cdd3c63676178 |
class SharedRoot(resource.Resource): <NEW_LINE> <INDENT> WSGI = None <NEW_LINE> def getChild(self, child, request): <NEW_LINE> <INDENT> request.prepath.pop() <NEW_LINE> request.postpath.insert(0, child) <NEW_LINE> return self.WSGI <NEW_LINE> <DEDENT> def render(self, request): <NEW_LINE> <INDENT> return self.WSGI.rende... | Root resource that combines the two sites/entry points | 62599082283ffb24f3cf539d |
class ComplexData(object): <NEW_LINE> <INDENT> def __init__(self, mimeType=None, encoding=None, schema=None, maximumMegaBytes=None): <NEW_LINE> <INDENT> self.mimeType = mimeType <NEW_LINE> self.encoding = encoding <NEW_LINE> self.schema = schema <NEW_LINE> self.maximumMegabytes = maximumMegaBytes | Class that represents a ComplexData element in a WPS document | 62599082796e427e53850277 |
class OperationListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[Operation]'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["Operation"]] = None, **kwargs ): <NEW_LINE> <INDENT> super(OperationListResult, self).__init__(**kwargs) <NEW_LINE> se... | A list of resource provider operations.
:param value: The list of resource provider operations.
:type value: list[~azure.mgmt.rdbms.postgresql.models.Operation] | 625990827d847024c075deda |
class Flow(flow.Flow): <NEW_LINE> <INDENT> def __init__(self, name, retry=None): <NEW_LINE> <INDENT> super(Flow, self).__init__(name, retry) <NEW_LINE> self._graph = gr.Graph(name=name) <NEW_LINE> <DEDENT> def add(self, *items): <NEW_LINE> <INDENT> for item in items: <NEW_LINE> <INDENT> if not self._graph.has_node(item... | Unordered flow pattern.
A unordered (potentially nested) flow of *tasks/flows* that can be
executed in any order as one unit and rolled back as one unit. | 62599082a8370b77170f1ec9 |
class DjangoAdminFullPathDefaultSettings(AdminScriptTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.write_settings('settings.py', ['django.contrib.auth', 'django.contrib.contenttypes', 'regressiontests.admin_scripts']) <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> self.remove_sett... | A series of tests for django-admin.py when using a settings.py file that
contains the test application specified using a full path. | 62599082e1aae11d1e7cf591 |
class MiniAlexNet(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(MiniAlexNet, self).__init__() <NEW_LINE> self.conv = nn.Sequential( nn.Conv2d(3, 96, kernel_size=11, stride=4), nn.ReLU(inplace=True), nn.MaxPool2d(kernel_size=3, stride=2), nn.Conv2d(96, 256, kernel_size=5, padding=2, group... | A variant of AlexNet.
The changes with respect to the original AlexNet are:
- LRN (local response normalization) layers are not included
- The Fully Connected (FC) layers (fc6 and fc7) have smaller dimensions
due to the lower resolution of mini-places images (128x128) compared
with ImageNet images (... | 62599082167d2b6e312b8314 |
class TriangleShape( Shape ): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._name = "Triangle" <NEW_LINE> super().__init__() <NEW_LINE> <DEDENT> def drow(self): <NEW_LINE> <INDENT> print( self._name, "drow." ) | 三角形 | 625990824f88993c371f12a1 |
class MemberAddressTest(SteamTestCase): <NEW_LINE> <INDENT> __interfaceName__ = "/member-service/address/memberId" <NEW_LINE> @initInputService( services = [], curser = MemberAddressService ) <NEW_LINE> def __init__(self, methodName='runTest', param=None): <NEW_LINE> <INDENT> super(MemberAddressTest,self).__init__(m... | 微信端用户进入地址管理,获取地址列表 | 62599082283ffb24f3cf539f |
class BentIdentPar(nn.Module): <NEW_LINE> <INDENT> def __init__(self, b=1.0): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.b = b <NEW_LINE> <DEDENT> def forward(self, x, a): <NEW_LINE> <INDENT> return (1.0 - a)/2.0 * (torch.sqrt(x*x + 4.0*self.b*self.b) - 2.0*self.b) + (1.0 + a)/2.0 * x | BentIdent parametric activation
| 62599082aad79263cf4302b9 |
class AverageMeter(object): <NEW_LINE> <INDENT> def __init__(self, relative=False): <NEW_LINE> <INDENT> self.relative = relative <NEW_LINE> self.reset() <NEW_LINE> <DEDENT> def reset(self): <NEW_LINE> <INDENT> self.val = 0 <NEW_LINE> self.avg = 0 <NEW_LINE> self.sum = 0 <NEW_LINE> self.count = 0 <NEW_LINE> <DEDENT> def... | Computes and stores the average and current value
Imported from https://github.com/pytorch/examples/blob/master/imagenet/main.py#L247-L262 | 625990825fcc89381b266edc |
class BatchServiceClient(ServiceClient): <NEW_LINE> <INDENT> pass | Batch Service Client
Service Client for batch / head-less processes | 62599082091ae3566870673f |
class UpdateGainForm(FlaskForm): <NEW_LINE> <INDENT> id = HiddenField('A hidden field'); <NEW_LINE> gain = FloatField('New gain:', [DataRequired(), NumberRange(0)]) <NEW_LINE> submit = SubmitField('Update gain') | The form for updateing the gain of the Arduino | 62599082656771135c48adb0 |
class ReplyKeyboardRemove(ReplyMarkup): <NEW_LINE> <INDENT> __slots__ = ('selective', 'remove_keyboard') <NEW_LINE> def __init__(self, selective: bool = False, **_kwargs: Any): <NEW_LINE> <INDENT> self.remove_keyboard = True <NEW_LINE> self.selective = bool(selective) | Upon receiving a message with this object, Telegram clients will remove the current custom
keyboard and display the default letter-keyboard. By default, custom keyboards are displayed
until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are
hidden immediately after the user presses a ... | 6259908297e22403b383c9ff |
class itkMaximumProjectionImageFilterIF3IF2(itkMaximumProjectionImageFilterIF3IF2_Superclass): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") <NEW_L... | Proxy of C++ itkMaximumProjectionImageFilterIF3IF2 class | 625990824a966d76dd5f09e6 |
class LoginView(APIView): <NEW_LINE> <INDENT> def get_serializer_class(self): <NEW_LINE> <INDENT> return LoginSerializer <NEW_LINE> <DEDENT> def get_success_url(self): <NEW_LINE> <INDENT> next_url = self.request.GET['next'] if 'next' in self.request.GET else '/' <NEW_LINE> return next_url <NEW_LINE> <DEDENT> def get(se... | По логину и пароль осуществляет аутентификацию пользователя | 6259908263b5f9789fe86c69 |
class VerticalBar(Bar): <NEW_LINE> <INDENT> def updateGraph(self): <NEW_LINE> <INDENT> barWidth = self.xscale * 0.9 <NEW_LINE> barMargin = self.xscale * (1.0 - 0.9) / 2 <NEW_LINE> self.bars = [] <NEW_LINE> i = 0 <NEW_LINE> keys = self.datas.keys() <NEW_LINE> keys.sort() <NEW_LINE> for xfield in keys: <NEW_LINE> <INDENT... | Vertical Bar Graph | 625990827d847024c075dede |
class Supplement(object): <NEW_LINE> <INDENT> def __init__(self, middleware, environ): <NEW_LINE> <INDENT> self.middleware = middleware <NEW_LINE> self.environ = environ <NEW_LINE> self.source_url = request.construct_url(environ) <NEW_LINE> <DEDENT> def extraData(self): <NEW_LINE> <INDENT> data = {} <NEW_LINE> cgi_vars... | This is a supplement used to display standard WSGI information in
the traceback. | 625990825fcc89381b266edd |
class TestX264Ref(unittest.TestCase): <NEW_LINE> <INDENT> def test_ref(self): <NEW_LINE> <INDENT> x264 = X264() <NEW_LINE> self._test_ref_normal_values(x264) <NEW_LINE> self._test_ref_abnormal_values(x264) <NEW_LINE> <DEDENT> def _test_ref_normal_values(self, x264): <NEW_LINE> <INDENT> x264.ref = 0 <NEW_LINE> self.asse... | Tests all Reference Frames option values for the x264 codec. | 625990824527f215b58eb720 |
class KidsFeed(object): <NEW_LINE> <INDENT> def __init__(self, url): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> self.feed = feedparser.parse(self.url) <NEW_LINE> self.kids_list = self.feed['items'] <NEW_LINE> self._missing_kids = [] <NEW_LINE> self._missing_kids_ids = [] <NEW_LINE> <DEDENT> @property <NEW_LINE> def ... | Takes a url and makes a list of MissingKids
:pram url: the url from missingkids.com
:type url: str
:var missing_kids:
:vartype missing_kids: list of MissingKid | 625990822c8b7c6e89bd52e7 |
class UserScore(ScoreBase): <NEW_LINE> <INDENT> __score_info = None <NEW_LINE> __db_name = "" <NEW_LINE> __score_helper = None <NEW_LINE> __channel_name = "" <NEW_LINE> __my_business_logic = None <NEW_LINE> __invoke_function_map = {} <NEW_LINE> __query_function_map = {} <NEW_LINE> def __init__(self, score_info=None): <... | Basic module of SCORE.
DO NOT CHANGE THE NAME OF THIS MODULE. | 62599082be7bc26dc9252bd6 |
class DeactivateProjectRedirectView(AccessControlMixin, ActionReloadView): <NEW_LINE> <INDENT> membership = 'owner' <NEW_LINE> def get_group_required(self): <NEW_LINE> <INDENT> self.project = Project.objects.get(slug=self.kwargs.get('slug')) <NEW_LINE> return super(DeactivateProjectRedirectView, self).get_group_require... | Sets the specified project to inactive. | 62599082aad79263cf4302bc |
class NewThreadForm(forms.Form): <NEW_LINE> <INDENT> title = StrippedCharField(min_length=5, max_length=255, label=_lazy(u'Title:'), widget=forms.TextInput(attrs={'size': 80}), error_messages={'required': MSG_TITLE_REQUIRED, 'min_length': MSG_TITLE_SHORT, 'max_length': MSG_TITLE_LONG}) <NEW_LINE> content = StrippedChar... | Form to start a new thread. | 6259908244b2445a339b76dd |
class Benchmark8(IRISHEP_ADLBenchmark): <NEW_LINE> <INDENT> def definePlots(self, tree, noSel, sample=None, sampleCfg=None): <NEW_LINE> <INDENT> from bamboo.plots import Plot, SummedPlot <NEW_LINE> from bamboo.plots import EquidistantBinning as EqBin <NEW_LINE> from bamboo import treefunctions as op <NEW_LINE> plots = ... | For events with at least three leptons and a same-flavor opposite-sign lepton pair, find the same-flavor opposite-sign lepton pair with the mass closest to 91.2 GeV and plot the transverse mass of the missing energy and the leading other lepton. | 62599082283ffb24f3cf53a2 |
class CreationOfCourse(Resource): <NEW_LINE> <INDENT> @jwt_required <NEW_LINE> def post(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> data = request.get_json() <NEW_LINE> response = create_course.creation_of_courses(data["data"]) <NEW_LINE> return get_response(data=response) <NEW_LINE> <DEDENT> except Exception a... | To create the course only admin
can create the courses | 625990827b180e01f3e49de5 |
class LLScardDevice(object): <NEW_LINE> <INDENT> def __init__(self, context, card, protocol): <NEW_LINE> <INDENT> self._context = context <NEW_LINE> self._card = card <NEW_LINE> self._protocol = protocol <NEW_LINE> <DEDENT> def send_apdu(self, cl, ins, p1, p2, data): <NEW_LINE> <INDENT> apdu = [cl, ins, p1, p2, len(dat... | Low level pyscard based backend (Windows chokes on the high level one
whenever you remove the key and re-insert it). | 625990824428ac0f6e65a030 |
class PackedVertex(base.MappedArray): <NEW_LINE> <INDENT> x: int <NEW_LINE> y: int <NEW_LINE> z: int <NEW_LINE> _mapping = [*"xyz"] <NEW_LINE> _format = "3h" | a point in 3D space | 6259908223849d37ff852bbb |
class ComplexCubical3Euclidian3(ComplexCubical): <NEW_LINE> <INDENT> def plot_slice(self, affine, ): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def as_regular(self): <NEW_LINE> <INDENT> from pycomplex.complex.regular import ComplexRegular3 <NEW_LINE> return ComplexRegular3(vertices=self.vertices, topology=self.topolo... | 3-Cubes in 3d euclidian space | 6259908292d797404e3898dd |
class Reservation(core_models.TimeStampedModel): <NEW_LINE> <INDENT> STATUS_PENDING = "pending" <NEW_LINE> STATUS_CONFIRMED = "confirmed" <NEW_LINE> STATUS_CANCELED = "canceled" <NEW_LINE> STATUS_CHOICES = ( (STATUS_PENDING, "Pending"), (STATUS_CONFIRMED, "Confirmed"), (STATUS_CANCELED, "Canceled"), ) <NEW_LINE> status... | Resrvation Model Definition | 625990827c178a314d78e96b |
class BaseMorphAction: <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> self.core = CoreScript() <NEW_LINE> self.name = "" <NEW_LINE> self.title = "" <NEW_LINE> self.description = "" <NEW_LINE> self.structure = [] <NEW_LINE> <DEDENT> @property <NEW_LINE> def settings(self) -> MorphActionModel: <NEW_L... | Morphs differ from Actions in that they normally act to reshape entire tables rather than manipulate columns.
* Morph actions are not permitted to be nested, i.e. they are stand-alone ActionScripts.
* May result in changes to column or row references that must be accounted for in other actions.
Morphs inherit from th... | 6259908276e4537e8c3f1081 |
class Explosion (pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__ (self, x, y): <NEW_LINE> <INDENT> super(Explosion, self).__init__() <NEW_LINE> self.e1 = pygame.image.load(image_paths["e1"]).convert() <NEW_LINE> self.e2 = pygame.image.load(image_paths["e2"]).convert() <NEW_LINE> self.e3 = pygame.image.load(imag... | Spawns an explosion at the given location.
Attributes:
e1 (pygame.image): Image path for frame 1/5 of the explosion.
e2 (pygame.image): Image path for frame 2/5 of the explosion.
e3 (pygame.image): Image path for frame 3/5 of the explosion.
e4 (pygame.image): Image path for frame 4/5 of the explosion.
... | 6259908297e22403b383ca01 |
class Bullet1(PlaneGame): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__("./images/bullet1.png", -6) <NEW_LINE> <DEDENT> def update(self): <NEW_LINE> <INDENT> super().update() <NEW_LINE> if self.rect.bottom < 0: <NEW_LINE> <INDENT> self.kill() | 子弹精灵类 | 6259908263b5f9789fe86c6b |
class GroupTopic(Topic): <NEW_LINE> <INDENT> parent_group = models.ForeignKey(BaseGroup, related_name="topics", verbose_name=_('parent')) <NEW_LINE> send_as_email = models.BooleanField(_('send as email'), default=False) <NEW_LINE> whiteboard = models.ForeignKey(Article, related_name="topic", verbose_name=_('whiteboard'... | a discussion topic for a BaseGroup. | 625990828a349b6b43687d60 |
class YouTube(Workload): <NEW_LINE> <INDENT> package = 'com.google.android.youtube' <NEW_LINE> action = 'android.intent.action.VIEW' <NEW_LINE> def __init__(self, test_env): <NEW_LINE> <INDENT> super(YouTube, self).__init__(test_env) <NEW_LINE> self._log = logging.getLogger('YouTube') <NEW_LINE> self._log.debug('Worklo... | Android YouTube workload | 625990823346ee7daa3383e3 |
class CropForm(forms.Form): <NEW_LINE> <INDENT> scale = forms.CharField(widget=forms.Textarea( attrs={'style': 'display:none'})) <NEW_LINE> angle = forms.CharField(widget=forms.Textarea( attrs={'style': 'display:none'})) <NEW_LINE> x = forms.CharField(widget=forms.Textarea(attrs={'style': 'display:none'})) <NEW_LINE> y... | Hide a fields to hold the coordinates chosen by the user | 625990825fcc89381b266ede |
class ShallowDiffer(Differ): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ShallowDiffer, self).__init__(u'sd') <NEW_LINE> <DEDENT> def can_diff(self, data): <NEW_LINE> <INDENT> return all(not isinstance(value, dict) for value in data.values()) <NEW_LINE> <DEDENT> def diff(self, old, new, ignore=Non... | A Differ that only works on dicts that don't have nested dicts. Assuming this allows it to use
dict.update to patch the old data dict to the new which is really quick! The ID used for this
differ is 'sd'. | 62599082be7bc26dc9252bd7 |
class BuildDatabase: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.environ = self.set_environment_from_terminal() <NEW_LINE> <DEDENT> def create_table(self, schema: str, table: str): <NEW_LINE> <INDENT> db_connection = psycopg2.connect(self.environ['dbname'], sslmode='require') <NEW_LINE> self.run_sy... | build relational database from csv file with Python and Heroku
(https://dashboard.heroku.com/apps) | 62599082aad79263cf4302be |
class RvalGetattr(object): <NEW_LINE> <INDENT> def __init__(self, info): <NEW_LINE> <INDENT> self.info = info <NEW_LINE> <DEDENT> def __call__(self, name, objs=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self.info[name] <NEW_LINE> <DEDENT> except KeyError: <NEW_LINE> <INDENT> raise InferenceError(name) | See `lmap_info` | 62599082a8370b77170f1ece |
class ValueSpecifier(BoundFunctionBase): <NEW_LINE> <INDENT> def setup_impl(self, call_info: FunctionCallInfo): <NEW_LINE> <INDENT> old_callable: BoundFunctionBase = self.bound_expression <NEW_LINE> new_callable: BoundFunctionBase = old_callable <NEW_LINE> new_callable.value = call_info.arguments[0] <NEW_LINE> new_call... | Callable value specifier (as in `this.my_func.value(1 ether)()`)
C.f. remarks for [[GasSpecifier]] | 625990827b180e01f3e49de6 |
class ToonGasMeterDeviceEntity(ToonEntity): <NEW_LINE> <INDENT> @property <NEW_LINE> def device_info(self) -> Dict[str, Any]: <NEW_LINE> <INDENT> via_hub = 'meter_adapter' <NEW_LINE> if self.toon.gas.is_smart: <NEW_LINE> <INDENT> via_hub = 'electricity' <NEW_LINE> <DEDENT> return { 'name': 'Gas Meter', 'identifiers': {... | Defines a Gas Meter device entity. | 625990825166f23b2e244ede |
class CDSResult: <NEW_LINE> <INDENT> def __init__(self, domain_hmms: List[HMMResult], motif_hmms: List[HMMResult], feature_type: str, modules: List[Module], ks_subtypes: List[str]) -> None: <NEW_LINE> <INDENT> self.domain_hmms = domain_hmms <NEW_LINE> self.motif_hmms = motif_hmms <NEW_LINE> self.type = feature_type <NE... | Stores and enables reconstruction of all results for a single CDS | 62599082ec188e330fdfa3b0 |
class PlainPythonRepr(ObjectReprABC): <NEW_LINE> <INDENT> def __call__(self, obj, p, cycle): <NEW_LINE> <INDENT> klass = _safe_getattr(obj, '__class__', None) or type(obj) <NEW_LINE> klass_repr = _safe_getattr(klass, '__repr__', None) <NEW_LINE> if klass_repr in _baseclass_reprs: <NEW_LINE> <INDENT> p.text(klass_repr(o... | The ordinary Python representation
.. automethod:: __call__ | 6259908226068e7796d4e446 |
class UserProfile(AbstractBaseUser, PermissionsMixin): <NEW_LINE> <INDENT> email = models.EmailField(max_length=255, unique=True) <NEW_LINE> name = models.CharField(max_length=255) <NEW_LINE> is_active = models.BooleanField(default=True) <NEW_LINE> is_staff = models.BooleanField(default=False) <NEW_LINE> objects = User... | Database model for users in the system | 625990823617ad0b5ee07c54 |
class ThugCtrl(object): <NEW_LINE> <INDENT> def __init__(self, configfile, extensive = False, threshold = 0, referer = None, proxy = None, timeout = None): <NEW_LINE> <INDENT> self.host = "localhost" <NEW_LINE> self.queue = "thugctrl" <NEW_LINE> self.username = "guest" <NEW_LINE> self.password = "guest" <NEW_LINE> self... | Thug remote control
| 625990825fc7496912d48fed |
class TeamEnergyGoalTest(TransactionTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> test_utils.set_competition_round() <NEW_LINE> group = Group.objects.create(name="Test Group") <NEW_LINE> group.save() <NEW_LINE> self.team = Team.objects.create( group=group, name="A" ) <NEW_LINE> self.user = User.ob... | Team Energy Goal Test | 625990825fdd1c0f98e5fa85 |
class Player(object): <NEW_LINE> <INDENT> def __init__(self, cards): <NEW_LINE> <INDENT> self.board_state = cards <NEW_LINE> self.hand = [generate_random_card() for i in range(14)] <NEW_LINE> for card in cards: <NEW_LINE> <INDENT> board.legal(card) <NEW_LINE> <DEDENT> <DEDENT> def play(self): <NEW_LINE> <INDENT> return... | 'cards' is a list of three valid cards to be given by the dealer at the beginning of the game. | 6259908276e4537e8c3f1085 |
class Gtlink_scrmaps(Gtlink): <NEW_LINE> <INDENT> appname = 'gtscrmaps' <NEW_LINE> linkname_default = 'gtscrmaps' <NEW_LINE> usage = '%s [options]' % (appname) <NEW_LINE> description = "Link to run %s" % (appname) <NEW_LINE> default_options = dict(irfs=diffuse_defaults.gtopts['irfs'], expcube=diffuse_defaults.gtopts['e... | Small wrapper to run gtscrmaps | 62599082a8370b77170f1ed2 |
class DummyWorkspace(object): <NEW_LINE> <INDENT> zope.interface.implements(IWorkspace) <NEW_LINE> def __init__(self, id_): <NEW_LINE> <INDENT> self.id = id_ <NEW_LINE> self.storage = None <NEW_LINE> <DEDENT> def restrictedTraverse(self, path): <NEW_LINE> <INDENT> return DummyWorkspace(path) | To avoid dealing with the vocab and the rest of Plone Archetypes.
| 62599082283ffb24f3cf53a7 |
class TestResult(object): <NEW_LINE> <INDENT> def __init__(self, name, status, time, output_file_name): <NEW_LINE> <INDENT> assert status in (PASSED, FAILED, SKIPPED) <NEW_LINE> self.name = name <NEW_LINE> self._status = status <NEW_LINE> self.time = time <NEW_LINE> self._output_file_name = output_file_name <NEW_LINE> ... | Represents the result of a single test case | 62599082796e427e53850281 |
class ModerationSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Moderation <NEW_LINE> fields = ['id', 'user', 'status', 'info_result'] <NEW_LINE> <DEDENT> def save(self, **kwargs): <NEW_LINE> <INDENT> announcement = self.validated_data['announcement'] <NEW_LINE> stat... | Сериализатор для модерации | 62599082aad79263cf4302c1 |
class tree_2_lineal(object): <NEW_LINE> <INDENT> def __init__(self, phl_obj_lst): <NEW_LINE> <INDENT> self.lst_obj = [] <NEW_LINE> self.deep_in_recurs(phl_obj_lst) <NEW_LINE> <DEDENT> def __call__(self): <NEW_LINE> <INDENT> self.build_data() <NEW_LINE> return self.lst_dict <NEW_LINE> <DEDENT> def deep_in_recurs(self, p... | Recursively navigates the Phil objects in a way that the final
self.lst_obj is a lineal list without ramifications, then another list
is created with the info about parameters | 625990825fcc89381b266ee0 |
class TemplateError(Exception): <NEW_LINE> <INDENT> def __init__(self, msg, token): <NEW_LINE> <INDENT> if not isinstance(token, Token): <NEW_LINE> <INDENT> token = Token(token, 0) <NEW_LINE> <DEDENT> self.msg = msg <NEW_LINE> self.token = safe_native(token) <NEW_LINE> self.offset = getattr(token, "pos", 0) <NEW_LINE> ... | An error raised by Chameleon.
>>> from chameleon.tokenize import Token
>>> token = Token('token')
>>> message = 'message'
Make sure the exceptions can be copied:
>>> from copy import copy
>>> copy(TemplateError(message, token))
TemplateError('message', 'token')
And pickle/unpickled:
>>> from pickle import dumps, l... | 6259908297e22403b383ca05 |
class BaseCache(object): <NEW_LINE> <INDENT> def get(self, key, default=None): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def set(self, key, value, ttl=60): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def delete(self, key): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def clear(self): <NEW_LINE> <INDENT> pass | Abstract class to be used as a base class for other Cache classes. | 62599082fff4ab517ebcf31d |
class InformationAlgorithm(object): <NEW_LINE> <INDENT> INFO_PROVIDED = [] <NEW_LINE> def __init__(self, info=[], **kwargs): <NEW_LINE> <INDENT> super(InformationAlgorithm, self).__init__(**kwargs) <NEW_LINE> if not isinstance(info, (list, tuple)): <NEW_LINE> <INDENT> self.info = [info] <NEW_LINE> <DEDENT> else: <NEW_L... | Algorithms that produce information about their run.
Implementing classes should update the INFO_PROVIDED class variable with
the information provided by the algorithm. Defauls to an empty list.
ALL algorithms that inherit from InformationAlgorithm MUST add force_reset
as a decorator to the run method.
Fields
------... | 625990823317a56b869bf2c7 |
class Affix(list): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> def descend(self): <NEW_LINE> <INDENT> return self.append("") <NEW_LINE> <DEDENT> def ascend(self): <NEW_LINE> <INDENT> return self.pop() <NEW_LINE> <DEDENT> def __call__(self): <NEW_LINE> <INDENT> return "".join(self) <NEW_LINE> <DEDENT> def... | The Affix is an abstract base class.
It implements the:
descend/asend methods for traversing the IFT
It is callable: Given a key, it will do what morphemes do and make
as new key per the RDF spec.
Sub classes use operator overloads to do their thing | 62599082ec188e330fdfa3b2 |
@attr.s(cmp=False, hash=True) <NEW_LINE> class MediaRange(object): <NEW_LINE> <INDENT> type = attr.ib(default=STAR) <NEW_LINE> subtype = attr.ib(default=STAR) <NEW_LINE> parameters = attr.ib(default=m()) <NEW_LINE> quality = attr.ib(default=1.0) <NEW_LINE> def __eq__(self, other): <NEW_LINE> <INDENT> if not isinstance(... | A media range.
Open ranges (e.g. ``text/*`` or ``*/*``\ ) are represented by
:attr:`type` and / or :attr:`subtype` being ``None``\ . | 62599082091ae35668706747 |
class DaosAgentManager(SubprocessManager): <NEW_LINE> <INDENT> def __init__(self, agent_command, manager="Orterun"): <NEW_LINE> <INDENT> super(DaosAgentManager, self).__init__(agent_command, manager) <NEW_LINE> env_vars = { "D_LOG_MASK": "DEBUG,RPC=ERR", "DD_MASK": "mgmt,io,md,epc,rebuild" } <NEW_LINE> self.manager.ass... | Manages the daos_agent execution on one or more hosts. | 625990828a349b6b43687d64 |
class ContactCardView(BrowserView): <NEW_LINE> <INDENT> def __call__(self, **kw): <NEW_LINE> <INDENT> self.params = {} <NEW_LINE> self.params.update(kw) <NEW_LINE> return self.render() <NEW_LINE> <DEDENT> def render(self): <NEW_LINE> <INDENT> return self.index() <NEW_LINE> <DEDENT> def has_image(self): <NEW_LINE> <INDE... | Card view for contact objects | 625990834f6381625f19a233 |
class Forall(BeginStatement): <NEW_LINE> <INDENT> end_stmt_cls = EndForall <NEW_LINE> match = re.compile(r'forall\s*\(.*\)\Z', re.I).match <NEW_LINE> name = '' <NEW_LINE> def process_item(self): <NEW_LINE> <INDENT> self.specs = self.item.get_line()[6:].lstrip()[1:-1].strip() <NEW_LINE> return BeginStatement.process_ite... | [ <forall-construct-name> : ] FORALL <forall-header>
[ <forall-body-construct> ]...
<forall-body-construct> = <forall-assignment-stmt>
| <where-stmt>
| <where-construct>
| <forall-construct>
| <forall-stmt>
<forall-header>... | 625990837c178a314d78e96e |
class FinnishLanguage: <NEW_LINE> <INDENT> def _message(self): <NEW_LINE> <INDENT> return 'Hei maailma!' | Implement english message. | 625990833346ee7daa3383e6 |
class KerasCNNBuilder(Builder): <NEW_LINE> <INDENT> def __init__(self, name, learning_rate, num_dense, units=3, seed=42): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._learning_rate = learning_rate <NEW_LINE> self._num_dense = num_dense <NEW_LINE> self._units = units <NEW_LINE> self._seed = seed <NEW_LINE> <DE... | Builds a CNN subnetwork for AdaNet. | 625990834a966d76dd5f09ee |
class ReviewDecline(CommandDescription, Review, ReviewChangeStateOptions): <NEW_LINE> <INDENT> cmd = 'decline' <NEW_LINE> args = 'api://reqid' <NEW_LINE> func = call(ReviewController.change_review_state) <NEW_LINE> func_defaults = {'method': 'decline'} | Decline a specific review.
If no message is specified $EDITOR is opened.
Example:
osc review decline api://reqid [--message MESSAGE] --user <user> | 62599083aad79263cf4302c3 |
class MonoWorker(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.pool = ThreadPoolExecutor(max_workers=1) <NEW_LINE> self.futures = deque([], 2) <NEW_LINE> <DEDENT> def submit(self, func, *args, **kwargs): <NEW_LINE> <INDENT> futures = self.futures <NEW_LINE> if len(futures) == futures.maxlen:... | Supports one running task and one waiting task.
The waiting task is the most recent submitted (others are discarded). | 625990833617ad0b5ee07c58 |
class NestedListsI32x2(object): <NEW_LINE> <INDENT> def __init__(self, integerlist=None,): <NEW_LINE> <INDENT> self.integerlist = integerlist <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec i... | Attributes:
- integerlist | 62599083091ae35668706749 |
class Comment(object): <NEW_LINE> <INDENT> def __init__(self, tid, channel_id, cid, add_datetime, publish_datetime, ip_address, location_country, location_region, location_city, author_id, author_name, content, reply_author_id, read_count, like_count, reply_count, dislike_count): <NEW_LINE> <INDENT> self.tid = tid <NEW... | classdocs | 6259908397e22403b383ca08 |
class Hetero(object): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> if type(data) != type(""): <NEW_LINE> <INDENT> raise CrystalError('Hetero data must be an alphameric string') <NEW_LINE> <DEDENT> if data.isalnum() == 0: <NEW_LINE> <INDENT> raise CrystalError('Hetero data must be an alphameric stri... | This class exists to support the PDB hetero codes.
Supports only the 3 alphameric code.
The annotation is available from http://alpha2.bmc.uu.se/hicup/ | 625990837c178a314d78e96f |
class Attachment(db.Model): <NEW_LINE> <INDENT> __tablename__ = "attachment" <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> filename_original = db.Column(db.String) <NEW_LINE> filename = db.Column(db.String) <NEW_LINE> message = db.relationship("Message", uselist=False, back_populates="attachment") ... | An attachment to an MMS. | 62599083adb09d7d5dc0c063 |
class XMLException(Exception): <NEW_LINE> <INDENT> pass | Class for all XML related errors that can occur in this module. | 625990832c8b7c6e89bd52f0 |
class RemoteMonitor(Callback): <NEW_LINE> <INDENT> def __init__(self, root='http://localhost:9000', path='/publish/epoch/end/', field='data', headers=None): <NEW_LINE> <INDENT> super(RemoteMonitor, self).__init__() <NEW_LINE> self.root = root <NEW_LINE> self.path = path <NEW_LINE> self.field = field <NEW_LINE> self.hea... | Callback used to stream events to a server.
Requires the `requests` library.
Events are sent to `root + '/publish/epoch/end/'` by default. Calls are
HTTP POST, with a `data` argument which is a
JSON-encoded dictionary of event data.
# Arguments
root: String; root url of the target server.
path: String; path r... | 625990834a966d76dd5f09f0 |
class TimeScapeParser(object): <NEW_LINE> <INDENT> def __init__(self, pdb, loc, traj_id, dcd=None, traj=None, uniqueid=False): <NEW_LINE> <INDENT> self.pdb = pdb <NEW_LINE> if dcd is None: <NEW_LINE> <INDENT> self.dcd = os.path.join(loc, traj_id + '.dcd') <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.dcd = dcd <NE... | Class to parse and manage TimeScape Output. Use of this class
assumes that the TimeScape program has already run. Ergo
the Trajectory passed in and processed is the FULL underlying
trajectory -- a frame_rate is provided to the load_basin program
to convert indexing from a pre-processed file (found in output)
to a full ... | 62599083aad79263cf4302c6 |
class CaracterizacionPoliticaView(LoginRequeridoPerAuth, TemplateView): <NEW_LINE> <INDENT> template_name = "caracterizacion.politica.html" <NEW_LINE> group_required = [u"Administradores", u"Voceros", u"Integrantes"] | !
Clase que muestra el templates de la caracterización política de la comunidad
@author Ing. Leonel P. Hernandez M. (lhernandez at cenditel.gob.ve)
@copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
@date 30-005-2017
@version 1.0.0 | 62599083d8ef3951e32c8be4 |
class TextureInfo: <NEW_LINE> <INDENT> def __init__(self, tex, f=1, sRect=None): <NEW_LINE> <INDENT> self.texture = tex <NEW_LINE> self.frames = f <NEW_LINE> self.current_frame = 0 <NEW_LINE> self.src_rect = sRect <NEW_LINE> self.frame_1 = sRect.x <NEW_LINE> self.anim_finished_event = Event() <NEW_LINE> <DEDENT> def ge... | Class Describing a Texture, it's source rectangle and animation frames. | 625990838a349b6b43687d68 |
class AWSHelper(object): <NEW_LINE> <INDENT> def __init__(self, aws_profile=None, logger=False, verbose=False): <NEW_LINE> <INDENT> self.aws_profile = aws_profile <NEW_LINE> self.print_func = lambda x: print(x, flush=True) <NEW_LINE> if logger: <NEW_LINE> <INDENT> self.print_func = logger.info <NEW_LINE> <DEDENT> self.... | Helper class for connecting to AWS. | 62599083a05bb46b3848bead |
class NetworkRuleSetListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[NetworkRuleSet]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["NetworkRuleSet"]] = None, next_link: Optional[str] = None, ... | The response of the List NetworkRuleSet operation.
:param value: Result of the List NetworkRuleSet operation.
:type value: list[~azure.mgmt.servicebus.v2021_01_01_preview.models.NetworkRuleSet]
:param next_link: Link to the next set of results. Not empty if Value contains incomplete list
of NetworkRuleSet.
:type next... | 6259908355399d3f0562801f |
class WrongDimensionError(MrFilterError): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(WrongDimensionError, self).__init__("Unexpected error: the output FITS file should contain a 2D array.") | Exception raised when trying to save a FITS with more than 3 dimensions
or less than 2 dimensions.
Attributes:
message -- explanation of the error | 6259908376e4537e8c3f108b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.