code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class SchoolAdmin(utils.ModelAdmin): <NEW_LINE> <INDENT> list_display = ( 'id', 'title', 'school_type', 'email', ) <NEW_LINE> list_filter = ( 'school_type', ) <NEW_LINE> search_fields = ( 'id', 'title', 'email', ) <NEW_LINE> sheet_mapping = ( (_(u'ID'), ('id',)), (_(u'Title'), ('title',)), (_(u'Type'), ('get_school_typ...
Administration for school.
6259906c63b5f9789fe86983
class GetState(Object): <NEW_LINE> <INDENT> ID = 0xedd4882a <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(b: BytesIO, *args) -> "GetState": <NEW_LINE> <INDENT> return GetState() <NEW_LINE> <DEDENT> def write(self) -> bytes: <NEW_LINE> <INDENT> b = BytesIO(...
Attributes: ID: ``0xedd4882a`` No parameters required. Raises: :obj:`Error <pyrogram.Error>` Returns: :obj:`updates.State <pyrogram.api.types.updates.State>`
6259906c627d3e7fe0e086a9
class SitemapCsvColumnEnum(object): <NEW_LINE> <INDENT> INDEX = SITEMAP_PROP_NT(0, 'index') <NEW_LINE> """ The name of the Adobe Illustrator file represented by the siteMap. """ <NEW_LINE> FILENAME = SITEMAP_PROP_NT(1, 'filename') <NEW_LINE> FEDERAL_EAST = SITEMAP_PROP_NT(2, 'federal_east') <NEW_LINE> FEDERAL_NORTH = S...
A class for...
6259906c8a43f66fc4bf39b4
class TreeEmbedding_HTU_plain_leaf(TreeEmbedding_HTU): <NEW_LINE> <INDENT> def __init__(self, name, **kwargs): <NEW_LINE> <INDENT> super(TreeEmbedding_HTU_plain_leaf, self).__init__(name='HTU_' + name, **kwargs) <NEW_LINE> with tf.variable_scope(self.name) as scope: <NEW_LINE> <INDENT> self._plain_leaf_fc = fc_scoped(n...
Calculates an embedding over a (recursive) SequenceNode.
6259906c63d6d428bbee3e9a
class Trackable(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.slots = {} <NEW_LINE> <DEDENT> def signal_connect(self, name, func, *args): <NEW_LINE> <INDENT> if not self.slots.has_key(name): <NEW_LINE> <INDENT> self.slots[name] = Slot() <NEW_LINE> <DEDENT> self.slots[name].subscribe(func, *a...
Inherit from this class to add signal/event capability to a Python object.
6259906c4f88993c371f1130
class TSNEPlotter: <NEW_LINE> <INDENT> def __init__(self, X, y): <NEW_LINE> <INDENT> self.X = X <NEW_LINE> self.y = np.asarray(y) <NEW_LINE> <DEDENT> def plot(self, n=2, outliers=True, sparsity=0, **kwargs): <NEW_LINE> <INDENT> assert n == 2 or n == 3, 'n MUST be 2 or 3' <NEW_LINE> assert sparsity >= 0, 'sparsity MUST ...
Plot t-SNE components
6259906c3539df3088ecdac0
class __descript(object): <NEW_LINE> <INDENT> def __init__(self, f, checker): <NEW_LINE> <INDENT> self.f = f <NEW_LINE> self.__name__ = self.f.__name__ <NEW_LINE> self.__doc__ = self.f.__doc__ <NEW_LINE> self.__dict__.update(self.f.__dict__) <NEW_LINE> self.__checker = checker <NEW_LINE> <DEDENT> def __get__(self, inst...
This class is intended to delay the definition of the method wrapper which surrounds the user's function or user's class method. This is necessary for two reasons: 1. the Python runtime may pass lately the user's function or class method to be decorated. It happens when the decorator itself accepts arguments. In...
6259906c44b2445a339b7570
class GoExon(object): <NEW_LINE> <INDENT> self.id = 0 <NEW_LINE> self.genome_locus = None <NEW_LINE> self.gene_association = None <NEW_LINE> def __init__(self, initialData={}): <NEW_LINE> <INDENT> for k,v in initData.iteritems(): <NEW_LINE> <INDENT> setattr(self, k, v)
aibs.model.goexon (autogen)
6259906cd6c5a102081e394c
class HomogeneousTransform3D(DifferentiableMap): <NEW_LINE> <INDENT> def __init__(self, p0=np.zeros(3)): <NEW_LINE> <INDENT> assert p0.size == 3 <NEW_LINE> self._n = p0.size + 1 <NEW_LINE> self._T = np.eye(self.input_dimension()) <NEW_LINE> self._p = np.ones(self.input_dimension()) <NEW_LINE> self._p[:self.output_dimen...
Homeogeneous transformation as DifferentiableMap details: Takes an angle and rotates the point p0 by this angle f(q) = T(q) * p_0 where T defines a rotation and translation (6DoFs) q_{0,1} => translation q_{2} => rotation T = [ R(q) p(q) ] ...
6259906c2ae34c7f260ac90a
class MCVirtLockException(MCVirtException): <NEW_LINE> <INDENT> pass
A lock has already been found.
6259906c5166f23b2e244bf5
class Results(object): <NEW_LINE> <INDENT> name = None <NEW_LINE> outputs = None <NEW_LINE> def __init__(self, name): <NEW_LINE> <INDENT> self.outputs = [] <NEW_LINE> self.name = name <NEW_LINE> <DEDENT> def addOutput(self, name): <NEW_LINE> <INDENT> for o in self.outputs: <NEW_LINE> <INDENT> if o.name == name: <NEW_LI...
Represents the results for one cell
6259906cfff4ab517ebcf03d
class VentasForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Ventas <NEW_LINE> fields = ('producto', 'unidades_ventidas', 'fecha_venta')
Autor: Johan Vasquez Fecha: 29/04/2018 Descripción: Formulario para gestionar los sensores registrados en el sistema
6259906c4a966d76dd5f070c
class SkuDescription(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'resource_type': {'readonly': True}, 'name': {'readonly': True}, 'size': {'readonly': True}, 'locations': {'readonly': True}, 'location_info': {'readonly': True}, 'restrictions': {'readonly': True}, } <NEW_LINE> _attribute_map = { 're...
The Kusto SKU description of given resource type. Variables are only populated by the server, and will be ignored when sending a request. :ivar resource_type: The resource type. :vartype resource_type: str :ivar name: The name of the SKU. :vartype name: str :ivar size: The size of the SKU. :vartype size: str :ivar lo...
6259906c66673b3332c31c20
class EntryState(object): <NEW_LINE> <INDENT> def __init__(self, dn, cursor): <NEW_LINE> <INDENT> self.dn = dn <NEW_LINE> self._initial_status = None <NEW_LINE> self._to = None <NEW_LINE> self.status = STATUS_INIT <NEW_LINE> self.attributes = CaseInsensitiveWithAliasDict() <NEW_LINE> self.raw_attributes = CaseInsensiti...
Contains data on the status of the entry. Does not pollute the Entry __dict__.
6259906c2c8b7c6e89bd5008
class PayeeSchema(Schema): <NEW_LINE> <INDENT> id = fields.Int() <NEW_LINE> name = fields.Str(required=True) <NEW_LINE> role = EnumField(PayeeRole, by_value=True) <NEW_LINE> system = fields.Bool() <NEW_LINE> hidden = fields.Bool() <NEW_LINE> category_id = fields.Int() <NEW_LINE> account_id = fields.Int() <NEW_LINE> amo...
Schema for a `Payee` object
6259906cd268445f2663a76e
class ToTensor(object): <NEW_LINE> <INDENT> def __init__(self, channels, device): <NEW_LINE> <INDENT> self.channels = channels <NEW_LINE> self.device = device <NEW_LINE> <DEDENT> def __call__(self, sample): <NEW_LINE> <INDENT> image_real1, image_real2, image_fake = sample['image_real1'], sample['image_real2'], sample['...
Convert ndarrays in sample to Tensors.
6259906c4c3428357761bad6
class Movie(object) : <NEW_LINE> <INDENT> def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube) : <NEW_LINE> <INDENT> self.title = movie_title <NEW_LINE> self.storyline = movie_storyline <NEW_LINE> self.poster_image_url = poster_image <NEW_LINE> self.trailer_youtube_url = trailer_youtube <NEW_...
Class to store movie related information
6259906c45492302aabfdcfb
class TensorConfig: <NEW_LINE> <INDENT> def __init__(self, shape: [List[int]], dtype: [str]="float32", data: Optional[np.array]=None): <NEW_LINE> <INDENT> self.shape = shape <NEW_LINE> self.dtype = dtype <NEW_LINE> self.data = data
A config builder for a input or a weight. InputVar's shape can be [-1, xxx], batch_size
6259906c1b99ca4002290147
class ProfileFeedItem(models.Model): <NEW_LINE> <INDENT> user_profile = models.ForeignKey('UserProfile', on_delete = models.CASCADE) <NEW_LINE> status_text = models.CharField(max_length = 255) <NEW_LINE> created_on = models.DateTimeField(auto_now_add = True) <NEW_LINE> def ___str___(self): <NEW_LINE> <INDENT> return se...
Profile status updates
6259906c8a43f66fc4bf39b6
class ApplicationGatewayBackendHealth(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'backend_address_pools': {'key': 'backendAddressPools', 'type': '[ApplicationGatewayBackendHealthPool]'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(ApplicationGatewayBackendHealth, self...
Response for ApplicationGatewayBackendHealth API service call. :param backend_address_pools: A list of ApplicationGatewayBackendHealthPool resources. :type backend_address_pools: list[~azure.mgmt.network.v2019_07_01.models.ApplicationGatewayBackendHealthPool]
6259906cf7d966606f7494cd
class W2Tree(FuncTree) : <NEW_LINE> <INDENT> def __init__ ( self , weight , tree = None ) : <NEW_LINE> <INDENT> assert isinstance ( weight , Weight ) , 'Wrong type of weight!' <NEW_LINE> assert tree is None or isinstance ( tree , ROOT.TTree ) , 'Wrong type of tree!' <NEW_LINE> FuncTree.__init__ ( se...
Helper class to add the weight into ROOT.TTree >>> w = Weight ( ... ) ## the weighting object >>> tree = ... ## The tree >>> wf = W2Tree ( w , tree ) ## create the weighting function >>> tree.add_new_branch ( 'weight' , wf )
6259906c4f6381625f19a0b9
class Item(metaclass=ABCMeta): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def update(self): <NEW_LINE> <INDENT> pass
Clase abstracta que describe el contrato y comportamiento base de un Item.
6259906c76e4537e8c3f0da7
class LoginView(View): <NEW_LINE> <INDENT> template_name = 'gift/login.html' <NEW_LINE> port = 995 <NEW_LINE> next = '' <NEW_LINE> def get(self, request): <NEW_LINE> <INDENT> self.next = request.GET.get('next', '') <NEW_LINE> if request.user.is_authenticated() and not request.user.is_superuser: <NEW_LINE> <INDENT> retu...
7 View class for handling login functionality.
6259906c3346ee7daa338270
class ModifyLoadBalancerAttributesRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.LoadBalancerId = None <NEW_LINE> self.LoadBalancerName = None <NEW_LINE> self.InternetChargeInfo = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.LoadBalancerId =...
ModifyLoadBalancerAttributes请求参数结构体
6259906ce1aae11d1e7cf41f
@registry.register_problem <NEW_LINE> class StanfordNLIWikiLMSharedVocab(StanfordNLI): <NEW_LINE> <INDENT> @property <NEW_LINE> def vocab_filename(self): <NEW_LINE> <INDENT> return wiki_lm.LanguagemodelEnWiki32k().vocab_filename
StanfordNLI classification problems with the Wiki vocabulary
6259906c1f5feb6acb164413
class XMLParser(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._tree = None <NEW_LINE> self._data: str = "" <NEW_LINE> <DEDENT> def _parse(self, data): <NEW_LINE> <INDENT> return data <NEW_LINE> <DEDENT> def get_first_link(self, path='data/select.xml') -> str: <NEW_LINE> <INDENT> root = ET.parse(pa...
Parser for XML file
6259906c99cbb53fe683270b
class Exportchownmode(basestring): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_api_name(): <NEW_LINE> <INDENT> return "exportchownmode"
restricted|unrestricted Possible values: <ul> <li> "restricted" , <li> "unrestricted" </ul>
6259906c5fc7496912d48e7a
class KOICatalog(ExoplanetArchiveCatalog): <NEW_LINE> <INDENT> name = "q1_q17_dr24_koi" <NEW_LINE> def join_stars(self, df=None): <NEW_LINE> <INDENT> if df is None: <NEW_LINE> <INDENT> df = self.df <NEW_LINE> <DEDENT> kic = KICatalog(data_root=self.data_root) <NEW_LINE> return pd.merge(df, kic.df, on="kepid")
Kepler Kepler Objects of Interest (Q1 through Q17)
6259906c92d797404e38976d
class _ConnectionCtx(object): <NEW_LINE> <INDENT> def __enter__(self): <NEW_LINE> <INDENT> global _db_ctx <NEW_LINE> self.should_cleanup = False <NEW_LINE> if not _db_ctx.is_init(): <NEW_LINE> <INDENT> _db_ctx.init() <NEW_LINE> self.should_cleanup = True <NEW_LINE> <DEDENT> return self <NEW_LINE> <DEDENT> def __exit__(...
开启和关闭 connection,并且可以嵌套使用,只作用于当前的connection with connection(): pass with connection(): pass 定义了__enter__()和__exit__()的对象可以用于with语句,确保任何情况下__exit__()方法可以被调用。
6259906c442bda511e95d96a
@Predictor.register("textual-entailment") <NEW_LINE> class DecomposableAttentionPredictor(Predictor): <NEW_LINE> <INDENT> def predict(self, premise: str, hypothesis: str) -> JsonDict: <NEW_LINE> <INDENT> return self.predict_json({"premise": premise, "hypothesis": hypothesis}) <NEW_LINE> <DEDENT> @overrides <NEW_LINE> d...
Predictor for the [`DecomposableAttention`](../models/decomposable_attention.md) model.
6259906cfff4ab517ebcf03f
class BibliographyTransform(docutils.transforms.Transform): <NEW_LINE> <INDENT> default_priority = 10 <NEW_LINE> def apply(self): <NEW_LINE> <INDENT> env = self.document.settings.env <NEW_LINE> for bibnode in self.document.traverse(bibliography): <NEW_LINE> <INDENT> id_ = bibnode['ids'][0] <NEW_LINE> entries = [get_bib...
A docutils transform to generate footnotes for bibliography nodes.
6259906c460517430c432c68
class Issue(models.Model): <NEW_LINE> <INDENT> subject = models.CharField( ugettext_lazy('Betreff'), max_length=255, help_text=ugettext_lazy( "Beispiel: 'Newsletter der ESG Leipzig – Wintersemester " "2015/2016 – Ausgabe 12'.")) <NEW_LINE> text = models.TextField( ugettext_lazy('Text'), help_text=ugettext_lazy( 'Der Ne...
Model for newsletter issues.
6259906c4527f215b58eb5b2
class InferenceModule: <NEW_LINE> <INDENT> def __init__(self, ghostAgent): <NEW_LINE> <INDENT> self.ghostAgent = ghostAgent <NEW_LINE> self.index = ghostAgent.index <NEW_LINE> <DEDENT> def getPositionDistribution(self, gameState): <NEW_LINE> <INDENT> ghostPosition = gameState.getGhostPosition(self.index) <NEW_LINE> act...
An inference module tracks a belief distribution over a ghost's location. This is an abstract class, which you should not modify.
6259906cd486a94d0ba2d7e4
class PersonalDetails(TelegramObject): <NEW_LINE> <INDENT> def __init__( self, first_name: str, last_name: str, birth_date: str, gender: str, country_code: str, residence_country_code: str, first_name_native: str = None, last_name_native: str = None, middle_name: str = None, middle_name_native: str = None, bot: 'Bot' =...
This object represents personal details. Attributes: first_name (:obj:`str`): First Name. middle_name (:obj:`str`): Optional. First Name. last_name (:obj:`str`): Last Name. birth_date (:obj:`str`): Date of birth in DD.MM.YYYY format. gender (:obj:`str`): Gender, male or female. country_code (:o...
6259906cd268445f2663a76f
class ScheduleUpdateParameters(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'is_enabled': {'key': 'properties.isEnabled', 'type': 'bool'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LIN...
The parameters supplied to the update schedule operation. :param name: Gets or sets the name of the Schedule. :type name: str :param description: Gets or sets the description of the schedule. :type description: str :param is_enabled: Gets or sets a value indicating whether this schedule is enabled. :type is_enabled: b...
6259906cac7a0e7691f73d0c
class CredentialsFormatError(Exception): <NEW_LINE> <INDENT> def __init__(self, custom_message=None): <NEW_LINE> <INDENT> self.msg = 'Ill-formatted credentials' <NEW_LINE> self.custom_message = custom_message <NEW_LINE> if self.custom_message is not None: <NEW_LINE> <INDENT> self.msg += ': '+self.custom_message <NEW_LI...
To be raised if credentials are ill-formatted or miss essential items.
6259906c0c0af96317c57971
class CurrencyRate(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'currency_rate' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> currency = db.Column(db.String(3)) <NEW_LINE> rate = db.Column(db.Numeric) <NEW_LINE> base_currency_id = db.Column(db.Integer, db.ForeignKey('base_currency.id'), nullable=...
Currency Rate model
6259906c63b5f9789fe86987
class MedicineFormMedicines(models.Model): <NEW_LINE> <INDENT> countryform = models.ForeignKey(CountryForm) <NEW_LINE> medicine = models.ManyToManyField(Medicine) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> verbose_name_plural = "Medicine Form Medicines" <NEW_LINE> <DEDENT> def __unicode__(self): <NEW_LINE> <INDENT> ret...
Class used to allocate specific medicines to specific forms. This is useful in the case where one country has multiple medicines forms. When creating the medicines form those medicines listed in this table will be allocated to that specific form. In the implementation, if a form is not listed here, then all the medicin...
6259906c45492302aabfdcfd
class SwiftAPI(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> session = _get_swift_session() <NEW_LINE> params = { 'retries': CONF.swift.swift_max_retries, 'preauthurl': keystone.get_service_url( session, service_type='object-store'), 'preauthtoken': keystone.get_admin_auth_token(session) } <NEW_L...
API for communicating with Swift.
6259906c38b623060ffaa465
class ModifiedMixin: <NEW_LINE> <INDENT> def _init(self): <NEW_LINE> <INDENT> self.clearModifiedFlag() <NEW_LINE> self.bind('<<Modified>>', self._beenModified) <NEW_LINE> <DEDENT> def _beenModified(self, event=None): <NEW_LINE> <INDENT> if self._resetting_modified_flag: return <NEW_LINE> self.clearModifiedFlag() <NEW_L...
Class to allow a Tkinter Text widget to notice when it's modified. To use this mixin, subclass from Tkinter.Text and the mixin, then write an __init__() method for the new class that calls _init(). Then override the beenModified() method to implement the behavior that you want to happen when the Text is modified.
6259906ca219f33f346c802d
class Window(object): <NEW_LINE> <INDENT> _JAVA_MIN_LONG = -(1 << 63) <NEW_LINE> _JAVA_MAX_LONG = (1 << 63) - 1 <NEW_LINE> _PRECEDING_THRESHOLD = max(-sys.maxsize, _JAVA_MIN_LONG) <NEW_LINE> _FOLLOWING_THRESHOLD = min(sys.maxsize, _JAVA_MAX_LONG) <NEW_LINE> unboundedPreceding = _JAVA_MIN_LONG <NEW_LINE> unboundedFollow...
Utility functions for defining window in DataFrames. For example: >>> # ORDER BY date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW >>> window = Window.orderBy("date").rowsBetween(Window.unboundedPreceding, Window.currentRow) >>> # PARTITION BY country ORDER BY date RANGE BETWEEN 3 PRECEDING AND 3 FOLLOWING >>> w...
6259906c76e4537e8c3f0da8
class VisualisationData(BaseData): <NEW_LINE> <INDENT> name_attributes = [ "xl_x_value", "xl_y_value", "xl_z_value", "gyro_x_value", "gyro_y_value", "gyro_z_value", "altitude_value", "time_stamp", ] <NEW_LINE> math_mutation = [ MutationScaleData, MutationAxeGenerateData ]
Набор данных для визуализации
6259906c097d151d1a2c2895
class _RC(configparser.SafeConfigParser): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> configparser.SafeConfigParser.__init__(self) <NEW_LINE> self.reload_rc() <NEW_LINE> <DEDENT> def _clear(self): <NEW_LINE> <INDENT> self.remove_section(configparser.DEFAULTSECT) <NEW_LINE> for s in self.sections(): <NEW...
Allows reading from and writing to Sirsim RC settings. This object is a :class:`configparser.ConfigParser`, which means that values can be accessed and manipulated with ``get`` and ``set``:: oldsize = sirsim.rc.get("decoder_cache", "size") sirsim.rc.set("decoder_cache", "size", "2 GB") ``get`` and ``set`` re...
6259906c0a50d4780f7069d3
class ApplicationTypeInfo(Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'Name', 'type': 'str'}, 'version': {'key': 'Version', 'type': 'str'}, 'status': {'key': 'Status', 'type': 'str'}, 'default_parameter_list': {'key': 'DefaultParameterList', 'type': '[ApplicationParameter]'}, } <NEW_LINE> def __init_...
Information about an application type. :param name: The name of the application type. :type name: str :param version: The version of the application type. :type version: str :param status: Possible values include: 'Invalid', 'Provisioning', 'Available', 'Unprovisioning', 'Failed' :type status: str :param default_para...
6259906c16aa5153ce401cff
class Person: <NEW_LINE> <INDENT> def __init__(self, name, eyecolor, age): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.eyecolor = eyecolor <NEW_LINE> self.age = age
This describes about the Person
6259906c3317a56b869bf156
class Model_336(SerialDevice): <NEW_LINE> <INDENT> def __init__(self, settings): <NEW_LINE> <INDENT> settings = {**DEFAULTS, **settings} <NEW_LINE> self.units = settings.get("units", "K") <NEW_LINE> super().__init__(settings) <NEW_LINE> <DEDENT> units = property(operator.attrgetter('_units')) <NEW_LINE> @units.setter <...
read Lakeshore Model 336 temperature sensors
6259906caad79263cf42ffdb
class DeployHooks(SignalHandler): <NEW_LINE> <INDENT> name = 'deploy_hooks' <NEW_LINE> def run_hooks(self, event): <NEW_LINE> <INDENT> if event['clean'] and self.site.config.get('NO_HOOKS_ON_CLEAN', True): <NEW_LINE> <INDENT> self.logger.notice("No hooks run, since site was cleaned.") <NEW_LINE> return <NEW_LINE> <DEDE...
Add custom actions to be performed when new posts are deployed.
6259906c44b2445a339b7572
@ui.register_ui( button_delete=ui.Button(By.CSS_SELECTOR, 'button.btn-danger'), dropdown_menu=DropdownMenu(), link_folder=ui.Link(By.XPATH, './td//a')) <NEW_LINE> class RowObject(_ui.Row): <NEW_LINE> <INDENT> pass
Row with object.
6259906c4e4d562566373c2c
class SurfaceBaseSeries(BaseSeries): <NEW_LINE> <INDENT> is_3Dsurface = True <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(SurfaceBaseSeries, self).__init__() <NEW_LINE> self.surface_color = None <NEW_LINE> <DEDENT> def get_color_array(self): <NEW_LINE> <INDENT> c = self.surface_color <NEW_LINE> if callable(...
A base class for 3D surfaces.
6259906c99cbb53fe683270d
class AuthorizationToken: <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.response = self.generate(**kwargs) <NEW_LINE> <DEDENT> def generate(self, **kwargs): <NEW_LINE> <INDENT> return dict(code='', state='', status_code=302)
[RFC6749 - Section:] 4.1.2. Authorization Response If the resource owner grants the access request, the authorization server issues an authorization code and delivers it to the client
6259906c3539df3088ecdac5
class HTTPPreconditionFailed(HTTPError): <NEW_LINE> <INDENT> def __init__(self, title, description, **kwargs): <NEW_LINE> <INDENT> HTTPError.__init__(self, status.HTTP_412, title, description, **kwargs)
412 Precondition Failed. The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server. This response code allows the client to place preconditions on the current resource metainformation (header field data) and thus prevent the requested method from being appli...
6259906cdd821e528d6da594
class ReferralRequest(domainresource.DomainResource): <NEW_LINE> <INDENT> resource_name = "ReferralRequest" <NEW_LINE> def __init__(self, jsondict=None): <NEW_LINE> <INDENT> self.date = None <NEW_LINE> self.dateSent = None <NEW_LINE> self.description = None <NEW_LINE> self.encounter = None <NEW_LINE> self.fulfillmentTi...
A request for referral or transfer of care. Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organization.
6259906c91f36d47f2231aa2
class PatternTokenizer(Tokenizer): <NEW_LINE> <INDENT> solr_class = 'solr.PatternTokenizerFactory' <NEW_LINE> options = ['pattern', 'group']
To be subclassed further as needed, for instance: class GroupingPatternTokenizer(PatternTokenizer): pattern= "'([^']+)'" group = 1
6259906c4c3428357761bada
class CourseDetailStudentsView(CourseDetailStudentViewMixin, FormView): <NEW_LINE> <INDENT> form_class = AddStudentOnCourseForm <NEW_LINE> template_name = "learning/course/details/students.html" <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super().get_context_data(**kwargs) <NEW_LINE> ...
View students registered on a course in a HTML page.
6259906cf548e778e596cdb4
class Start: <NEW_LINE> <INDENT> def GET(self): <NEW_LINE> <INDENT> return render.start()
This class shows the homepage (refers to 'start.html').
6259906c21bff66bcd72448e
class ExpressRouteServiceProvider(Resource): <NEW_LINE> <INDENT> _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'ty...
A ExpressRouteResourceProvider object. Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :param location: Resource location. :type location: str :para...
6259906ca17c0f6771d5d7bc
class _Fax(object): <NEW_LINE> <INDENT> def __init__(self, client): <NEW_LINE> <INDENT> self._client = client <NEW_LINE> <DEDENT> def send(self, to, files=None, content_urls=None, header_text=None, batch_delay=None, batch_collision_avoidance=None, callback_url=None, cancel_timeout=None, tags_dict=None, caller_id=None, ...
class for all APIs related to faxes. Don't instantiate directly - use the Fax instance in the PhaxioApi object.
6259906ccc0a2c111447c6e4
class RequestVerifier(object): <NEW_LINE> <INDENT> def __init__(self, accept_remote, accept_ips, docker_logging): <NEW_LINE> <INDENT> self.__accept_remote = accept_remote <NEW_LINE> self.__accept_ips = accept_ips <NEW_LINE> self.__docker_logging = docker_logging <NEW_LINE> <DEDENT> def verify_request(self, client_addre...
Determines whether or not a request should be processed based on the state of various config options
6259906c4a966d76dd5f0711
class Mutator(MutatorDescribe): <NEW_LINE> <INDENT> pass
Relaxes around a residue on init and mutates. * ``.target`` mutation see Target namedtuple (resi, chain) * ``.neighbours`` list of neighbours * ``.pdbblock`` str pdb block * ``.pose`` pyrosetta.Pose * ``._pdb2pose`` points to ``self.pose.pdb_info().pdb2pose``, while target_pdb2pose accepts Target and gives back int
6259906c097d151d1a2c2897
class QuestionQuote(Quote): <NEW_LINE> <INDENT> def says(self): <NEW_LINE> <INDENT> return self.words + '?'
docstring for QuestionQuote
6259906c3346ee7daa338272
class BuildErrorException(Exception): <NEW_LINE> <INDENT> def __init__(self, message='Build Error'): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return repr(self.message)
Exception on server build
6259906c3317a56b869bf157
class Primitive_verify_sig (Primitive): <NEW_LINE> <INDENT> def __init__ (self, G, name, attributes): <NEW_LINE> <INDENT> interfaces = { 'inputs': ['msg', 'auth', 'pubkey'], 'outputs': ['result'] } <NEW_LINE> super ().setup (name, G, attributes, interfaces) <NEW_LINE> self.append_rule (Intg(self.input.pubkey)) <NEW_LIN...
The signature verification primitive Checks whether an auth value represents a valid message signature by a given public key.
6259906c67a9b606de5476b6
class TFIDF(NgramExtractor): <NEW_LINE> <INDENT> def __init__(self, n) -> None: <NEW_LINE> <INDENT> super().__init__(n)
Extracts TF-IDF
6259906ce76e3b2f99fda229
class SpectralClustering: <NEW_LINE> <INDENT> def __init__(self, n_clusters, norm_method='row', is_exact=True): <NEW_LINE> <INDENT> self.nc = n_clusters <NEW_LINE> self.is_exact = is_exact <NEW_LINE> if norm_method == None: <NEW_LINE> <INDENT> self.norm = 0 <NEW_LINE> <DEDENT> elif norm_method == 'row': <NEW_LINE> <IND...
The class SpectralClustering is initialized by specifying the number of clusters: n_cluster Other optional parameters: - norm_method: None, "row" or "deg". Default is "row." If None, spectral embedding is not normalized; If "row," spectral embedding is normalized each row (each row represent a node...
6259906c92d797404e38976f
class Author(models.Model): <NEW_LINE> <INDENT> first_name = models.CharField(max_length=100) <NEW_LINE> last_name = models.CharField(max_length=100) <NEW_LINE> date_of_birth = models.DateField(null=True, blank=True) <NEW_LINE> date_of_death = models.DateField('Died', null=True, blank=True) <NEW_LINE> def get_absolute_...
Model representing an author.
6259906c7b25080760ed88f6
class ExportarDatosView(View): <NEW_LINE> <INDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> from django.core.management import call_command <NEW_LINE> call_command('dumpdata', 'auth.group', output="datos_iniciales/roles.json") <NEW_LINE> messages.success(request, "Se ha exportado la información de l...
Autor: RADY CONSULTORES Fecha: 2 Septiembre 2016 Vista para exportar datos sobre los roles para poder reutilizarla en las diferentes instancias del proyecto en esta se utiliza el comando dumpdata para exportar el archivo roles.json
6259906c32920d7e50bc786f
class DataFrameParallelProcessor: <NEW_LINE> <INDENT> def __init__(self, processors, n_jobs=1): <NEW_LINE> <INDENT> self.processors = processors <NEW_LINE> self.n_jobs = n_jobs <NEW_LINE> <DEDENT> def process(self, dfAll, columns): <NEW_LINE> <INDENT> df_processor = DataFrameProcessor(self.processors) <NEW_LINE> p = mu...
WARNING: This class will operate on the original input dataframe itself https://stackoverflow.com/questions/26520781/multiprocessing-pool-whats-the-difference-between-map-async-and-imap
6259906cd486a94d0ba2d7e8
class ErrorRaiser: <NEW_LINE> <INDENT> def __init__(self, level = 0): <NEW_LINE> <INDENT> self._level = level <NEW_LINE> <DEDENT> def error(self, exception): <NEW_LINE> <INDENT> if self._level <= 1: <NEW_LINE> <INDENT> raise exception <NEW_LINE> <DEDENT> <DEDENT> def fatalError(self, exception): <NEW_LINE> <INDENT> if ...
A simple class that just raises the exceptions it is passed.
6259906c91f36d47f2231aa3
class SimpleDDGenerator(DDGenerator, NamedObject): <NEW_LINE> <INDENT> def __init__(self, parent, idem1, idem2, name): <NEW_LINE> <INDENT> DDGenerator.__init__(self, parent, idem1, idem2) <NEW_LINE> NamedObject.__init__(self, name) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "%s:%s,%s" % (self.nam...
Represents a generator of type DD structure, distinguished by name.
6259906c63b5f9789fe8698b
class PkgFileMissingPkgEntry(LinterCheckBase): <NEW_LINE> <INDENT> name = 'pkgfile_missing_pkgentry' <NEW_LINE> check_type = LinterCheckType.PKGFILE <NEW_LINE> header = 'built packages without a referring repo.db entry' <NEW_LINE> def check(self, pkgfile): <NEW_LINE> <INDENT> if not pkgfile.pkgentries: <NEW_LINE> <INDE...
for the list of built packages, check wether a repo.db entry exists that refers to the package. The check reports an issue for each built package that is not referred to by a repo.db entry.
6259906c63d6d428bbee3e9e
class Ship: <NEW_LINE> <INDENT> def __init__(self,ai_game): <NEW_LINE> <INDENT> self.screen=ai_game.screen <NEW_LINE> self.settings = ai_game.settings <NEW_LINE> self.screen_rect=ai_game.screen.get_rect() <NEW_LINE> self.image=pygame.image.load('images/ship.bmp') <NEW_LINE> self.rect=self.image.get_rect() <NEW_LINE> se...
Aclasstomanagetheship.
6259906ca219f33f346c8031
class TechnicalSpecificationForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = TechnicalSpecification <NEW_LINE> fields = ['name', 'value'] <NEW_LINE> widgets = {'name': forms.TextInput(attrs={"placeholder": "specification", "size": "10"}), 'value': forms.TextInput(attrs={"placeholder": ...
Form used for adding or editing technical specification It is a model form, which contains fields name and value. After initialization it sets both fields required attribute to false, since form can also be blank. This is verified in the view, used for editing or adding a device.
6259906c99fddb7c1ca639e5
class Online_SaleOrder(models.Model): <NEW_LINE> <INDENT> choices = ( (False, '保存'), (True, '删除'), ) <NEW_LINE> channel = models.CharField(max_length=30, null=False, verbose_name='销售渠道') <NEW_LINE> orderdate = models.DateField(verbose_name='订单日期', null=False) <NEW_LINE> ordertime = models.TimeField(verbose_name='下单时间',...
销售订单
6259906c091ae3566870645d
class GradientTape(object): <NEW_LINE> <INDENT> def __init__(self, persistent=False): <NEW_LINE> <INDENT> self._tape = None <NEW_LINE> self._persistent = persistent <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> self._tape = tape.push_new_tape(persistent=self._persistent) <NEW_LINE> return self <NEW_LINE>...
Records operations to use to compute gradients. Operations are recorded if: - they happen in code marked by this context manager - at least one of their inputs is being watched Outputs of recorded operations are watched. Variables are automatically watched and tensors can be manually watched by calling the watch ...
6259906c7047854f46340be0
class clear_log(ProtectedPage): <NEW_LINE> <INDENT> def GET(self): <NEW_LINE> <INDENT> qdict = web.input() <NEW_LINE> with open('./data/log.json', 'w') as f: <NEW_LINE> <INDENT> f.write('') <NEW_LINE> <DEDENT> raise web.seeother('/vl')
Delete all log records
6259906c3539df3088ecdac8
class MetaHandler(type): <NEW_LINE> <INDENT> def __init__(cls, name, bases, _dict): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> cls._msg_handlers[cls.__msgtype__] = cls <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE> <INDENT> cls._msg_handlers = {}
Metaclass for MessageHandler
6259906c3346ee7daa338273
class WalletExists(Exception): <NEW_LINE> <INDENT> pass
A wallet has already been created and requires a password to be unlocked by means of :func:`morphenepython.wallet.Wallet.unlock`.
6259906caad79263cf42ffdf
class InventoryViewSet(viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> queryset = InventoryItem.objects.all() <NEW_LINE> serializer_class = InventoryItemSerializer <NEW_LINE> filter_fields = ( 'application__name', 'application__bundleid', 'application__bundlename', 'machine__hostname', 'machine__serial', 'machine__...
list: You may also use the `search` querystring to perform text searches across the `application__name`, `application__bundleid`, `application__bundlename` fields. Example `/api/inventory/?search=Adobe` or `/api/inventory/?search=KB5000802`
6259906c4428ac0f6e659d5c
class BlogDetailView(DetailView): <NEW_LINE> <INDENT> model = Blog <NEW_LINE> template_name = "blog_detail.html" <NEW_LINE> context_object_name = "blog" <NEW_LINE> pk_url_kwarg = 'blog_id'
博客详情
6259906c99cbb53fe6832711
class Chain( object ): <NEW_LINE> <INDENT> def __init__(self, input_filenames, tree_name=None): <NEW_LINE> <INDENT> self.files = input_filenames <NEW_LINE> if isinstance(input_filenames, basestring): <NEW_LINE> <INDENT> self.files = glob.glob(input_filenames) <NEW_LINE> if len(self.files)==0: <NEW_LINE> <INDENT> raise ...
Wrapper to TChain, with a python iterable interface. from chain import Chain the_chain = Chain('../test/test_*.root', 'test_tree') event3 = the_chain[2] print event3.var1 for event in the_chain: print event.var1
6259906c67a9b606de5476b7
class Resource(object): <NEW_LINE> <INDENT> _type_ = "rdfs:Resource" <NEW_LINE> __module__ = "tralchemy.rdfs" <NEW_LINE> def __init__(self, uri): <NEW_LINE> <INDENT> self.uri = get_classname(uri) <NEW_LINE> self.triples = {} <NEW_LINE> self.cache = {} <NEW_LINE> <DEDENT> def properties(self): <NEW_LINE> <INDENT> uri = ...
Everything is a resource
6259906c5fc7496912d48e7d
class UserViewSet(viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> queryset = User.objects.all() <NEW_LINE> serializer_class = UserSerializer
This viewset automatically provide 'list' and 'detail' actions.
6259906ce5267d203ee6cfd3
class AbstractImageMobject(Mobject): <NEW_LINE> <INDENT> CONFIG = { "height": 2.0, "pixel_array_dtype": "uint8", } <NEW_LINE> def get_pixel_array(self): <NEW_LINE> <INDENT> raise Exception("Not implemented") <NEW_LINE> <DEDENT> def set_color(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def init_points(self): <NE...
Automatically filters out black pixels
6259906c23849d37ff8528e0
class FlntuXMmpCdsParserDataParticle(MmpCdsParserDataParticle): <NEW_LINE> <INDENT> _data_particle_type = DataParticleType.INSTRUMENT <NEW_LINE> def _get_mmp_cds_subclass_particle_params(self, dict_data): <NEW_LINE> <INDENT> chlorophyll = self._encode_value(FlntuXMmpCdsParserDataParticleKey.CHLAFLO, dict_data[FlntuXMmp...
Class for parsing data from the FlntuXMmpCds data set
6259906c45492302aabfdd03
class DerOctetString(DerObject): <NEW_LINE> <INDENT> def __init__(self, value=b'', implicit=None): <NEW_LINE> <INDENT> DerObject.__init__(self, 0x04, value, implicit, False)
Class to model a DER OCTET STRING. An example of encoding is: >>> from Crypto.Util.asn1 import DerOctetString >>> from binascii import hexlify, unhexlify >>> os_der = DerOctetString(b'\xaa') >>> os_der.payload += b'\xbb' >>> print hexlify(os_der.encode()) which will show ``0402aabb``, the DER encoding for the byte s...
6259906cac7a0e7691f73d12
class Assign(Updateable, Pretty, Navigatable): <NEW_LINE> <INDENT> def __init__(self, assign_to=None, tag_category=None, docker_labels=None, selections=None, appliance=None): <NEW_LINE> <INDENT> Navigatable.__init__(self, appliance=appliance) <NEW_LINE> self.assign_to = assign_to <NEW_LINE> self.tag_category = tag_cate...
Model of Chargeback Assignment page in cfme. Args: assign_to: Assign the chargeback rate to entities such as VM,Provider,datastore or the Enterprise itself. tag_category: Tag category of the entity selections: Selection of a particular entity to which the rate is to be assigned. Eg:If the c...
6259906c5fcc89381b266d6c
class Solution: <NEW_LINE> <INDENT> def searchMatrix(self, matrix, target): <NEW_LINE> <INDENT> if matrix == [] or matrix[0] == []: <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> row, column = len(matrix), len(matrix[0]) <NEW_LINE> i, j = row - 1, 0 <NEW_LINE> count = 0 <NEW_LINE> while i >= 0 and j < column: <NEW_LI...
@param matrix: An list of lists of integers @param target: An integer you want to search in matrix @return: An integer indicates the total occurrence of target in the given matrix
6259906c99fddb7c1ca639e6
class Interface(object): <NEW_LINE> <INDENT> input_spec = None <NEW_LINE> output_spec = None <NEW_LINE> _can_resume = False <NEW_LINE> _always_run = False <NEW_LINE> @property <NEW_LINE> def can_resume(self): <NEW_LINE> <INDENT> return self._can_resume <NEW_LINE> <DEDENT> @property <NEW_LINE> def always_run(self): <NEW...
This is an abstract definition for Interface objects. It provides no functionality. It defines the necessary attributes and methods all Interface objects should have.
6259906ca219f33f346c8033
class Ufl(PythonPackage): <NEW_LINE> <INDENT> homepage = "https://bitbucket.org/fenics-project/ufl" <NEW_LINE> url = "https://bitbucket.org/fenics-project/ufl/downloads/ufl-2017.2.0.tar.gz" <NEW_LINE> git='https://bitbucket.org/fenics-project/ufl' <NEW_LINE> version('2019.1.0', tag='2019.1.0') <NEW_LINE> version('...
UFL - Unified Form Language The Unified Form Language (UFL) is a domain specific language for declaration of finite element discretizations of variational forms. More precisely, it defines a flexible interface for choosing finite element spaces and defining expressions for weak forms in a notation close to mathematica...
6259906c76e4537e8c3f0dae
class FakeAssetpack(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.pack_id = 'test_assetpack_name'
The fakest assetpack around
6259906cfff4ab517ebcf046
class ApplicationHelper(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def init(cls): <NEW_LINE> <INDENT> ApplicationRegistry.game = "MTG" <NEW_LINE> sys.path.append(os.path.abspath("plugins/" + ApplicationRegistry.game)) <NEW_LINE> image_helper = __import__("ImageHelper") <NEW_LINE> ApplicationRegistry.image_hel...
Does initial setup for application wide variables.
6259906c8e7ae83300eea8bb
class ForceUTF8Response(object): <NEW_LINE> <INDENT> encoding = 'utf-8' <NEW_LINE> def process_response(self, request, response, spider): <NEW_LINE> <INDENT> new_body = response.body_as_unicode().encode(self.encoding) <NEW_LINE> return response.replace(body=new_body, encoding=self.encoding)
A downloader middleware to force UTF-8 encoding for all responses.
6259906c3539df3088ecdaca
class AnalysisProp(base.PublicBase): <NEW_LINE> <INDENT> analysisprop_id = sqlalchemy.Column(sqlalchemy.BIGINT, nullable=False, primary_key=True, autoincrement=True) <NEW_LINE> analysis_id = sqlalchemy.Column(sqlalchemy.BIGINT, sqlalchemy.ForeignKey( Analysis.analysis_id, onupdate="CASCADE", ondelete="CASCADE"), nullab...
Class for the CHADO 'analysisprop' table
6259906c3346ee7daa338274
class PlayerCreator(flow.SWFlow): <NEW_LINE> <INDENT> def __init__(self, state, spawner, name, species, background): <NEW_LINE> <INDENT> super().__init__(state, spawner, None) <NEW_LINE> self.register_entry_point(FINAL_ENTRY_POINT, self.create_player) <NEW_LINE> self.name = name <NEW_LINE> self.species = species <NEW_L...
The final flow that will create the player character.
6259906c7d43ff2487428027
class ContextEncoder(NumberEncoder): <NEW_LINE> <INDENT> def __init__(self, pronouncer = Pronouncer(), phoneme_to_digit_dict = None, max_word_length = None, context_length = 2, min_sentence_length = 5): <NEW_LINE> <INDENT> super(ContextEncoder, self).__init__(pronouncer = pronouncer, phoneme_to_digit_dict = phoneme_to_...
ContextEncoder is the base class for any encoder that uses the previously chosen words as context and somehow picks from the set of all possible words (possibly of limited word length).
6259906c4428ac0f6e659d5e
class Font(_graphics.Font): <NEW_LINE> <INDENT> def render_text(self, text): <NEW_LINE> <INDENT> image_attributes = super().render_text(text) <NEW_LINE> return Image(*image_attributes)
The Font class specifies a font used for drawing text.
6259906cbaa26c4b54d50ad4
class KDETerminal(LinuxTerminal): <NEW_LINE> <INDENT> name = "KDE" <NEW_LINE> @staticmethod <NEW_LINE> def detect(): <NEW_LINE> <INDENT> return os.environ.get('KDE_FULL_SESSION', '') == 'true' <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def get_command_line(): <NEW_LINE> <INDENT> s = subprocess.check_output( ['kreadco...
Handles terminals on KDE (e.g. Konsole).
6259906c44b2445a339b7575
class RestorePointListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'value': {'readonly': True}, 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[RestorePoint]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( sel...
A list of long term retention backups. Variables are only populated by the server, and will be ignored when sending a request. :ivar value: Array of results. :vartype value: list[~azure.mgmt.sql.models.RestorePoint] :ivar next_link: Link to retrieve next page of results. :vartype next_link: str
6259906c9c8ee82313040d9e
class locked_cached_property(werkzeug.utils.cached_property): <NEW_LINE> <INDENT> def __init__(self, fget, name=None, doc=None): <NEW_LINE> <INDENT> super().__init__(fget, name=name, doc=doc) <NEW_LINE> self.lock = RLock() <NEW_LINE> <DEDENT> def __get__(self, obj, type=None): <NEW_LINE> <INDENT> if obj is None: <NEW_L...
A :func:`property` that is only evaluated once. Like :class:`werkzeug.utils.cached_property` except access uses a lock for thread safety. .. versionchanged:: 2.0 Inherits from Werkzeug's ``cached_property`` (and ``property``).
6259906cd486a94d0ba2d7eb
class YamllintTest(SanitySingleVersion): <NEW_LINE> <INDENT> @property <NEW_LINE> def error_code(self): <NEW_LINE> <INDENT> return 'ansible-test' <NEW_LINE> <DEDENT> def filter_targets(self, targets): <NEW_LINE> <INDENT> yaml_targets = [target for target in targets if os.path.splitext(target.path)[1] in ('.yml', '.yaml...
Sanity test using yamllint.
6259906c7d847024c075dc08