code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class ConfigureAction(argparse.Action): <NEW_LINE> <INDENT> def __init__(self, option_strings, dest, **kwargs): <NEW_LINE> <INDENT> kwargs['nargs'] = 1 <NEW_LINE> kwargs['const'] = None <NEW_LINE> kwargs.setdefault('default','cauldron.cfg') <NEW_LINE> kwargs['type'] = str <NEW_LINE> kwargs['choices'] = None <NEW_LINE> ...
An action to configure Cauldron.
62598f9e6fb2d068a7693d2a
class MinSavingPercent(object): <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_LIN...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f9ea17c0f6771d5c027
class TarotUserSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Tarotuser <NEW_LINE> fields = ("username", )
JSON serializer for Tarotuser info in profile detail view
62598f9e60cbc95b06364139
class ItemView(widgetset.TableView): <NEW_LINE> <INDENT> def __init__(self, model, custom_headers=False): <NEW_LINE> <INDENT> widgetset.TableView.__init__(self, model, custom_headers=custom_headers) <NEW_LINE> self.set_fixed_height(True) <NEW_LINE> self.allow_multiple_select = True <NEW_LINE> self.create_signal('scroll...
TableView that displays a list of items.
62598f9ee5267d203ee6b6fa
class Typename: <NEW_LINE> <INDENT> namespaces_name_rule = delimitedList(IDENT, "::") <NEW_LINE> instantiation_name_rule = delimitedList(IDENT, "::") <NEW_LINE> rule = ( namespaces_name_rule("namespaces_and_name") ).setParseAction(lambda t: Typename(t)) <NEW_LINE> def __init__(self, t: ParseResults, instantiations: Seq...
Generic type which can be either a basic type or a class type, similar to C++'s `typename` aka a qualified dependent type. Contains type name with full namespace and template arguments. E.g. ``` gtsam::PinholeCamera<gtsam::Cal3S2> ``` will give the name as `PinholeCamera`, namespace as `gtsam`, and template instantia...
62598f9e67a9b606de545db6
class HPMSSectorObjectProperties(bpy.types.PropertyGroup): <NEW_LINE> <INDENT> sector: bpy.props.BoolProperty( name="Activate HPMS Sector", description="Toggle for mark this object as HPMS sector")
Group of properties representing an sector configuration.
62598f9e0a50d4780f7051c6
class Point: <NEW_LINE> <INDENT> def __init__(self, x=0, y=0): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> <DEDENT> def reset(self): <NEW_LINE> <INDENT> self.move(0,0) <NEW_LINE> <DEDENT> def move(self, x, y): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> <DEDENT> def calculate_dis...
Represents a point in 2-D geometric space
62598f9ea219f33f346c6606
class JsonRpcTypeError(JsonRpcInvalidRequest): <NEW_LINE> <INDENT> def __init__(self, msg): <NEW_LINE> <INDENT> self.msg = msg <NEW_LINE> self.name = 'TypeError'
Generic JSON-RPC error class for requests with parameters of invalid type Example: The JSON representation of this error looks like this:: {"name": "TypeError", "message": "Your error message"}
62598f9e91f36d47f2230d96
class NormalizedEqualHGBeam(NormalizedHGBeam): <NEW_LINE> <INDENT> name = 'NormalizedEqualHGBeam' <NEW_LINE> modifiable_properties = ('wavelength', 'p0', 'omega0', 'mx', 'my') <NEW_LINE> def __init__(self, name="NormalizedEqualHGBeam", **kwargs): <NEW_LINE> <INDENT> omega0 = kwargs.get('omega0', None) <NEW_LINE> kwargs...
此类描述了x、y方向等价基模束腰半径相等的归一化Herimite-Gaussian光。 在轴对称的模型结构中,x、y方向等价基模束腰半径是相等的。 此类可以通过以下属性构建: wavelength - 波长 p0 - 束腰的位置 omega0 - 等价基模的束腰半径 mx - x方向模式数 my - y方向模式数
62598f9e460517430c431f51
class ConstantKernel(StationaryKernelMixin, GenericKernelMixin, Kernel): <NEW_LINE> <INDENT> def __init__(self, constant_value=1.0, constant_value_bounds=(1e-5, 1e5)): <NEW_LINE> <INDENT> self.constant_value = constant_value <NEW_LINE> self.constant_value_bounds = constant_value_bounds <NEW_LINE> <DEDENT> @property <NE...
Constant kernel. Can be used as part of a product-kernel where it scales the magnitude of the other factor (kernel) or as part of a sum-kernel, where it modifies the mean of the Gaussian process. .. math:: k(x_1, x_2) = constant\_value \;\forall\; x_1, x_2 Adding a constant kernel is equivalent to adding a const...
62598f9e236d856c2adc9330
class Main(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.f=open('data.txt','r') <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> lists=[] <NEW_LINE> for line in self.f: <NEW_LINE> <INDENT> item=line.split('----') <NEW_LINE> lists.append(item) <NEW_LINE> <DEDENT> users=[] <NEW_LINE> for...
docstring for Main
62598f9e4f6381625f1993b2
class AddressDataProperty(davcommon.SubbedProperty): <NEW_LINE> <INDENT> name = "{%s}address-data" % NAMESPACE <NEW_LINE> def supported_on(self, resource): <NEW_LINE> <INDENT> return resource.get_content_type() == "text/vcard" <NEW_LINE> <DEDENT> async def get_value_ext(self, href, resource, el, environ, requested): <N...
address-data property See https://tools.ietf.org/html/rfc6352, section 10.4 Note that this is not technically a DAV property, and it is thus not registered in the regular webdav server.
62598f9e0c0af96317c5616f
class User(BaseModel): <NEW_LINE> <INDENT> email = CharField(128, null = False, unique = True) <NEW_LINE> password = CharField(128, null = False) <NEW_LINE> first_name = CharField(128, null = False) <NEW_LINE> last_name = CharField(128, null = False) <NEW_LINE> is_admin = BooleanField(default = False) <NEW_LINE> def se...
User model definition
62598f9e10dbd63aa1c709a3
class Solution: <NEW_LINE> <INDENT> def numberOfLines(self, widths, S): <NEW_LINE> <INDENT> line = 0 <NEW_LINE> width = 100 <NEW_LINE> for s in S: <NEW_LINE> <INDENT> w = widths[ord(s)-ord('a')] <NEW_LINE> if width + w <= 100: <NEW_LINE> <INDENT> width = width + w <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> width = w...
@param widths: an array @param S: a string @return: how many lines have at least one character from S, and what is the width used by the last such line
62598f9eeab8aa0e5d30bb73
class ITopAboveNavManager(IViewletManager): <NEW_LINE> <INDENT> pass
A viewlet manager that sits at the top of the rendered table, above the batching navigation.
62598f9e85dfad0860cbf96b
class Solution: <NEW_LINE> <INDENT> def maxTree(self, nums): <NEW_LINE> <INDENT> stack = [] <NEW_LINE> for num in nums: <NEW_LINE> <INDENT> node = TreeNode(num) <NEW_LINE> if stack and num > stack[-1].val: <NEW_LINE> <INDENT> node.left = stack.pop() <NEW_LINE> <DEDENT> if stack: <NEW_LINE> <INDENT> stack[-1].right = no...
@param: A: Given an integer array with no duplicates. @return: The root of max tree.
62598f9ef7d966606f747dd5
class RatioFormat(Format): <NEW_LINE> <INDENT> def _ComputeFloat(self, cell): <NEW_LINE> <INDENT> cell.string_value = '%+1.1f%%' % ((cell.value - 1) * 100) <NEW_LINE> cell.color = self._GetColor(cell.value, Color(255, 0, 0, 0), Color(0, 0, 0, 0), Color(0, 255, 0, 0))
Format the cell as a ratio. Example: If the cell contains a value of 1.5642, the string_value will be 1.56.
62598f9edd821e528d6d8d22
@python_2_unicode_compatible <NEW_LINE> @jsontags.register_tag <NEW_LINE> class DefaultTagger(SequentialBackoffTagger): <NEW_LINE> <INDENT> json_tag = 'nltk.tag.sequential.DefaultTagger' <NEW_LINE> def __init__(self, tag): <NEW_LINE> <INDENT> self._tag = tag <NEW_LINE> SequentialBackoffTagger.__init__(self, None) <NEW_...
A tagger that assigns the same tag to every token. >>> from nltk.tag import DefaultTagger >>> default_tagger = DefaultTagger('NN') >>> list(default_tagger.tag('This is a test'.split())) [('This', 'NN'), ('is', 'NN'), ('a', 'NN'), ('test', 'NN')] This tagger is recommended as a backoff tagger, in cases...
62598f9e8c0ade5d55dc3586
class RemoteLocationWristbandFence(messages.Message): <NEW_LINE> <INDENT> wbid = messages.StringField(1, required=True) <NEW_LINE> latitude = messages.FloatField(2, required=True) <NEW_LINE> longitude = messages.FloatField(3, required=True) <NEW_LINE> radius = messages.FloatField(4, required=True)
Message used to describe fence for wristbands
62598f9e4e4d562566372212
class Options(Builtin): <NEW_LINE> <INDENT> def apply(self, f, evaluation): <NEW_LINE> <INDENT> name = f.get_name() <NEW_LINE> if not name: <NEW_LINE> <INDENT> if isinstance(f, Image): <NEW_LINE> <INDENT> options = f.metadata <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> evaluation.message("Options", "sym", f, 1) <NEW_...
<dl> <dt>'Options[$f$]' <dd>gives a list of optional arguments to $f$ and their default values. </dl> You can assign values to 'Options' to specify options. >> Options[f] = {n -> 2} = {n -> 2} >> Options[f] = {n :> 2} >> f[x_, OptionsPattern[f]] := x ^ OptionValue[n] >> f[x] = x ^ 2 >> f[x, n -> 3] = x ^ 3...
62598f9ee5267d203ee6b6fb
class State(ABC): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self.__name = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self) -> str: <NEW_LINE> <INDENT> return self.__name <NEW_LINE> <DEDENT> @name.setter <NEW_LINE> def name(self, name: str) -> None: <NEW_LINE> <INDENT> assert isinstan...
状态抽象类
62598f9ed99f1b3c44d0549e
class Stream(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.boundary = None <NEW_LINE> self.header = bytes() <NEW_LINE> self.file_count = 0 <NEW_LINE> self.state = 0 <NEW_LINE> self.tail = bytes() <NEW_LINE> self.working_dir = None
The stream state This is used to store the state of the streaming data. Attributes: boundary (str): The request boundary. Used to determine the metadata from the content. header (bytes): The header. file_count (int): Number of files in the request. state (int): The state of the state machine used for ...
62598f9ed486a94d0ba2bdc3
class SemanticMapping: <NEW_LINE> <INDENT> map_type = None <NEW_LINE> levels = None <NEW_LINE> lookup_table = None <NEW_LINE> def __init__(self, plotter): <NEW_LINE> <INDENT> self.plotter = plotter <NEW_LINE> <DEDENT> def map(cls, plotter, *args, **kwargs): <NEW_LINE> <INDENT> method_name = "_{}_map".format(cls.__name_...
Base class for mapping data values to plot attributes.
62598f9e796e427e5384e581
class InventoryDoesNotHaveItem(WotwGameException): <NEW_LINE> <INDENT> def __init__(self, inventory, item): <NEW_LINE> <INDENT> self.inventory = inventory <NEW_LINE> self.item = item <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> err = "The inventory %s does not have any items %s"%( self.inventory, self.ite...
The inventory from which the items were being removed does not have that item
62598f9eb7558d589546341d
class propertyplugin(property): <NEW_LINE> <INDENT> def __init__(self, cls): <NEW_LINE> <INDENT> def plugin_instatiator(project): <NEW_LINE> <INDENT> if hasattr(project, 'project'): <NEW_LINE> <INDENT> project = project.project <NEW_LINE> <DEDENT> return cls(project) <NEW_LINE> <DEDENT> super(propertyplugin, self).__in...
Class decorator to create a plugin that is instantiated and returned when the project attribute is used to conveniently combine class + constructor. Like all plugins, the propertyplugin __init__ method must only accept one positional argument, i.e. the project. Usage: ------ ``` @propertyplugin class result: def ...
62598f9e76e4537e8c3ef3a4
class DispatchingConfig(object): <NEW_LINE> <INDENT> _constructor_lock = threading.Lock() <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._constructor_lock.acquire() <NEW_LINE> try: <NEW_LINE> <INDENT> self.dispatching_id = 0 <NEW_LINE> while 1: <NEW_LINE> <INDENT> self._local_key = 'paste.processconfig_%i' % s...
This is a configuration object that can be used globally, imported, have references held onto. The configuration may differ by thread (or may not). Specific configurations are registered (and deregistered) either for the process or for threads.
62598f9e60cbc95b0636413b
class MobileAuthenticationBackend(ModelBackend): <NEW_LINE> <INDENT> def authenticate(self, *args, **credentials): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> user = User.objects.get(phone=credentials["username"]) <NEW_LINE> <DEDENT> except (User.DoesNotExist, KeyError): <NEW_LINE> <INDENT> return None <NEW_LINE> <DED...
手机登录
62598f9ebaa26c4b54d4f09c
class Movie(object): <NEW_LINE> <INDENT> valid_ratings = ["G", "PG", "PG-13", "R"] <NEW_LINE> 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_LIN...
This class provides a way to store movie related information. Attributes: title: A string to store the title of the movie. storyline: A string to store the basic plot of the movie. poster_image_url: A string to store the URL of the movie poster. trailer_youtube_url: A string to store the...
62598f9e498bea3a75a5790f
class LombScargleMultibandFast(PeriodicModelerMultiband): <NEW_LINE> <INDENT> def __init__(self, optimizer=None, Nterms=1, BaseModel=LombScargle): <NEW_LINE> <INDENT> self.Nterms = Nterms <NEW_LINE> self.BaseModel = BaseModel <NEW_LINE> PeriodicModelerMultiband.__init__(self, optimizer) <NEW_LINE> <DEDENT> def _fit(sel...
Fast Multiband Periodogram Implementation This implements the specialized multi-band periodogram described in VanderPlas & Ivezic 2015 (with Nbase=0 and Nband=1) which is essentially a weighted sum of the standard periodograms for each band. Parameters ---------- optimizer : PeriodicOptimizer instance Optimizer t...
62598f9e32920d7e50bc5e45
class TeacherForm(PersonForm): <NEW_LINE> <INDENT> def __init__(self, container, master): <NEW_LINE> <INDENT> PersonForm.__init__(self, container, master) <NEW_LINE> self.titleText.set("Teacher") <NEW_LINE> <DEDENT> def windowTitle(self): <NEW_LINE> <INDENT> return "Teacher"
This TeacherForm tkinter object is a child class of PersonForm. It is used to collect data for a Teacher type record in the database.
62598f9e91f36d47f2230d97
class ShipDetails(RetrieveModelMixin, UpdateModelMixin, DestroyModelMixin, GenericAPIView): <NEW_LINE> <INDENT> queryset = Ship.objects.all() <NEW_LINE> serializer_class = ShipSerializer <NEW_LINE> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> return self.retrieve(request, *args, **kwargs) <NEW_LINE> <DE...
Class used to retrieve, update, or destroy a Ship object
62598f9e32920d7e50bc5e44
class UrlFileNotFoundError(ValueError): <NEW_LINE> <INDENT> pass
Url file not found error.
62598f9ef8510a7c17d7e06f
class FakeSecurityGroup(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def create_one_security_group(attrs=None): <NEW_LINE> <INDENT> attrs = attrs or {} <NEW_LINE> security_group_attrs = { 'id': 'security-group-id-' + uuid.uuid4().hex, 'name': 'security-group-name-' + uuid.uuid4().hex, 'description': 'security-...
Fake one or more security groups.
62598f9e3d592f4c4edbacbd
class CancelledBill(models.Model): <NEW_LINE> <INDENT> bill = models.OneToOneField('Bill', verbose_name=_('Original bill')) <NEW_LINE> created = models.DateTimeField(auto_now_add=True, verbose_name=_('Created')) <NEW_LINE> exported = models.BooleanField(default=False) <NEW_LINE> logs = property(_get_logs) <NEW_LINE> de...
List of bills that have been cancelled
62598f9e85dfad0860cbf96c
class AWSStorageService(FileStorageServiceInterface): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.path = FilePaths() <NEW_LINE> self.bucket = aconst.bucket <NEW_LINE> <DEDENT> def set_s3_file_object_path(self, path): <NEW_LINE> <INDENT> self.path.set_s3_file_object_path(path) <NEW_LINE> <DEDENT> de...
Storage Service responsible for storing the extracted csv/or any file to AWS s3 bucket Attributes ---------- path: obj instance of the filePath model bucket: str AWS s3 bucket name Methods -------- set_s3_file_object_path(path) saves s3 object url path upload_file(filename) Uploads file to a S3 bucke...
62598f9e009cb60464d01314
class PluginTest1DialogTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.dialog = PluginTest1Dialog(None) <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> self.dialog = None <NEW_LINE> <DEDENT> def test_dialog_ok(self): <NEW_LINE> <INDENT> button = self.dialog.button_box....
Test dialog works.
62598f9e9b70327d1c57eb8e
class ModerationItemSearchListView(ListAPIView): <NEW_LINE> <INDENT> permission_classes = [IsAdminUser] <NEW_LINE> queryset = ModerationItem.objects.all().filter(~Q(status="closed")) <NEW_LINE> filter_backends = (filters.SearchFilter, DjangoFilterBackend) <NEW_LINE> search_fields = ( "target__data__name__fi", "target__...
Search all closed moderation items
62598f9e24f1403a926857aa
class Fixed(Number): <NEW_LINE> <INDENT> def __init__(self, decimals=5, default=0, attribute=None, error=None, *args, **kwargs): <NEW_LINE> <INDENT> super(Fixed, self).__init__(default=default, attribute=attribute, error=error, *args, **kwargs) <NEW_LINE> self.precision = MyDecimal('0.' + '0' * (decimals - 1) + '1') <N...
A fixed-precision number as a string.
62598f9e435de62698e9bbe3
class Control(models.Model): <NEW_LINE> <INDENT> class Meta(object): <NEW_LINE> <INDENT> verbose_name= u"Control" <NEW_LINE> <DEDENT> parent_id = models.IntegerField( blank = False, default = 0, verbose_name = u"Parent ID") <NEW_LINE> name = models.CharField( max_length = 256, blank = False, verbose_name= u"Name") <NEW...
Control Model
62598f9e56ac1b37e6301fda
class TitleGenerator(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.nlp = spacy.load('en') <NEW_LINE> <DEDENT> def initialize(self, nouns_file, adjs_file, determinants=DETERMINANTS, tau=1.0): <NEW_LINE> <INDENT> self.tau = tau <NEW_LINE> self.nouns = util.load_wordlist(nouns_file) <NEW_LINE> ...
Generates the title of a poem
62598f9ecc0a2c111447adfc
class Decoder(tf.keras.layers.Layer): <NEW_LINE> <INDENT> def __init__(self, original_dim, intermediate_dim=64, name="decoder", **kwargs): <NEW_LINE> <INDENT> super(Decoder, self).__init__(**kwargs) <NEW_LINE> self.dense_proj = layers.Dense(intermediate_dim, activation=tf.nn.relu) <NEW_LINE> self.dense_output = layers....
Converts z, the encoded digit vector, back into a readable digit.
62598f9ee5267d203ee6b6fd
class UnaryLogicalOp(Constraint): <NEW_LINE> <INDENT> class Ops(NoValEnum): <NEW_LINE> <INDENT> NOT = 'Not' <NEW_LINE> <DEDENT> def __init__(self, pos: Tuple[int, int], op: 'UnaryLogicalOp.Ops', constraint: Constraint) -> None: <NEW_LINE> <INDENT> super().__init__(pos) <NEW_LINE> self.op: UnaryLogicalOp.Ops = op <NEW_L...
Unary logical operation
62598f9ed99f1b3c44d054a0
class MessageEntity(TelegramObject): <NEW_LINE> <INDENT> def __init__(self, type, offset, length, **kwargs): <NEW_LINE> <INDENT> self.type = type <NEW_LINE> self.offset = offset <NEW_LINE> self.length = length <NEW_LINE> self.url = kwargs.get('url') <NEW_LINE> self.user = kwargs.get('user') <NEW_LINE> <DEDENT> @staticm...
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc. Args: type (str): offset (int): length (int): url (Optional[str]): user (Optional[:class:`telegram.User`]):
62598f9e462c4b4f79dbb7fb
class NoneOfDistanceMeasureTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def descriptor(self): <NEW_LINE> <INDENT> return NoneOf([WordMatch('hello'), WordMatch('world')]) <NEW_LINE> <DEDENT> def test_no_response1(self): <NEW_LINE> <INDENT> assert self.descriptor().response('hello') == 0 <NEW_LINE> <DEDENT> def test_...
Tests NoneOf
62598f9e6fb2d068a7693d2c
class _ExecDictProxy(object): <NEW_LINE> <INDENT> def __init__(self, d): <NEW_LINE> <INDENT> self._d = d <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> module_type = type(IMP) <NEW_LINE> d = self._d <NEW_LINE> for k in d.keys(): <NEW_LINE> <INDENT> if type(d[k]) != module_type: <NEW_LINE> <INDENT> del d[k] ...
exec returns a Python dictionary, which contains IMP objects, other Python objects, as well as base Python modules (such as sys and __builtins__). If we just delete this dictionary, it is entirely possible that base Python modules are removed from the dictionary *before* some IMP objects. This will prevent the IMP obje...
62598f9ea17c0f6771d5c02b
class QuestionTemplate(object): <NEW_LINE> <INDENT> regex = Star(Any()) <NEW_LINE> weight = 1 <NEW_LINE> def interpret(self, match): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def get_interpretation(self, words): <NEW_LINE> <INDENT> rulename = self.__class__.__name__ <NEW_LINE> logger.debug("Tr...
Subclass from this to implement a question handler.
62598f9e851cf427c66b80b8
class ConstantDomain(Domain): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> if len(args) >= 2: <NEW_LINE> <INDENT> super(ConstantDomain, self).__init__(args[0]) <NEW_LINE> self.domain = args[1] <NEW_LINE> <DEDENT> elif len(args) == 1: <NEW_LINE> <INDENT> super(ConstantDomain, self).__init...
A singleton hyperparameter domain. Parameters ---------- name : str The name of this hyperparameter domain. domain The single value in this domain. See Also -------- `pyrameter.domains.base.Domain`
62598f9e656771135c489473
class EventSource(AWSProperty): <NEW_LINE> <INDENT> props: PropsDictType = { "Parameters": (EventParameters, False), "Type": (str, True), }
`EventSource <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventsource.html>`__
62598f9e67a9b606de545dba
class LoanType(NoSyncModel, models.Model): <NEW_LINE> <INDENT> fund = models.ForeignKey(to='lenders.Fund', related_name='+') <NEW_LINE> name = models.CharField(max_length=50, null=False, blank=False) <NEW_LINE> desc = models.CharField(max_length=100) <NEW_LINE> default_interest_rate = models.DecimalField(max_digits=7, ...
Loan-type table. 'loan_type' column is the identifier
62598f9ee5267d203ee6b6fe
class Response(CommandResponseBase): <NEW_LINE> <INDENT> def _verify_type(self): <NEW_LINE> <INDENT> assert self.get('type') == 'response' and self.has_key('command_id')
A response to a Command, or a follow up response to a Response
62598f9e7b25080760ed7297
class TADMOvershotError(HamiltonStepError): <NEW_LINE> <INDENT> pass
Overshot of limits during aspirate or dispense. Note: On aspirate this error is returned as main error 17. On dispense this error is returned as main error 4.
62598f9e7047854f4633f1d3
class PriorSchemeViewset(ModelViewSet): <NEW_LINE> <INDENT> queryset = PriorScheme.objects.filter(is_used=1) <NEW_LINE> serializer_class = PriorSchemeSerializer <NEW_LINE> filterset_class = PriorSchemeFilter <NEW_LINE> filter_backends = (OrderingFilter, filters.DjangoFilterBackend) <NEW_LINE> ordering_fields = ('update...
应急方案管理
62598f9e55399d3f05626313
class Upscale2DLayer(Layer): <NEW_LINE> <INDENT> def __init__(self, incoming, scale_factor, mode='repeat', **kwargs): <NEW_LINE> <INDENT> super(Upscale2DLayer, self).__init__(incoming, **kwargs) <NEW_LINE> self.scale_factor = as_tuple(scale_factor, 2) <NEW_LINE> if self.scale_factor[0] < 1 or self.scale_factor[1] < 1: ...
2D upscaling layer Performs 2D upscaling over the two trailing axes of a 4D input tensor. Parameters ---------- incoming : a :class:`Layer` instance or tuple The layer feeding into this layer, or the expected input shape. scale_factor : integer or iterable The scale factor in each dimension. If an integer, i...
62598f9e8e71fb1e983bb8a7
class IC_74133(Base_16pin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.pins = [None, 0, 0, 0, 0, 0, 0, 0, 0, None, 0, 0, 0, 0, 0, 0, 0] <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> output = {} <NEW_LINE> output[9] = NAND( self.pins[1], self.pins[2], self.pins[3], self.pins[4], self.pins[...
This is a 13-input NAND gate
62598f9e596a897236127a6b
class SolaredgeHa(object): <NEW_LINE> <INDENT> def __init__(self, username, password): <NEW_LINE> <INDENT> self.username = username <NEW_LINE> self.password = password <NEW_LINE> self.sites = [] <NEW_LINE> self.token = None <NEW_LINE> <DEDENT> def login(self): <NEW_LINE> <INDENT> url = urljoin(LOGINURL, "login") <NEW_L...
Object containing SolarEdge's Home Automation site API-methods.
62598f9e4527f215b58e9cd4
class ErrorController(object): <NEW_LINE> <INDENT> @expose('biorepo.templates.error') <NEW_LINE> def document(self, *args, **kwargs): <NEW_LINE> <INDENT> resp = request.environ.get('pylons.original_response') <NEW_LINE> default_message = ("<p>We're sorry but we weren't able to process " " this request.</p>") <NEW_LINE>...
Generates error documents as and when they are required. The ErrorDocuments middleware forwards to ErrorController when error related status codes are returned from the application. This behaviour can be altered by changing the parameters to the ErrorDocuments middleware in your config/middleware.py file.
62598f9ea219f33f346c660b
class LVMPhysicalVolume(DeviceFormat): <NEW_LINE> <INDENT> _type = "lvmpv" <NEW_LINE> _name = "physical volume (LVM)" <NEW_LINE> _udevTypes = ["LVM2_member"] <NEW_LINE> partedFlag = PARTITION_LVM <NEW_LINE> _formattable = True <NEW_LINE> _supported = True <NEW_LINE> _linuxNative = True <NEW_LINE> _packages = ["lvm2"] <...
An LVM physical volume.
62598f9ecc0a2c111447adfd
class CreateHeightLikelihood: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self <NEW_LINE> <DEDENT> def fit(self, *args, **kwargs): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def transform(self, df, column_name, **transform_params): <NEW_LINE> <INDENT> adult_avg_height = 177+165/2 <NEW_LINE> adu...
creates the general likelyhood of the provided height
62598f9ed7e4931a7ef3be8a
class PhysicalSitePin(): <NEW_LINE> <INDENT> def __init__(self, site, pin): <NEW_LINE> <INDENT> self.site = site <NEW_LINE> self.pin = pin <NEW_LINE> self.branches = [] <NEW_LINE> <DEDENT> def output_interchange(self, obj, string_id): <NEW_LINE> <INDENT> obj.routeSegment.init('sitePin') <NEW_LINE> obj.routeSegment.site...
Python class that represents a site pin in a physical net. site (str) - Site containing site pin pin (str) - Site pin in physical net.
62598f9e4f6381625f1993b4
class CreateTokenRequest(JDCloudRequest): <NEW_LINE> <INDENT> def __init__(self, parameters, header=None, version="v1"): <NEW_LINE> <INDENT> super(CreateTokenRequest, self).__init__( '/createToken', 'POST', header, version) <NEW_LINE> self.parameters = parameters
生成token-用户加入房间时携带token校验通过后方能加入
62598f9edd821e528d6d8d26
class PreciseRetrievalSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> pass
精准检索
62598f9ed268445f26639a7c
class _CppTypeVector(CppTypeBase): <NEW_LINE> <INDENT> def get_type_name(self): <NEW_LINE> <INDENT> return 'std::vector<std::uint8_t>' <NEW_LINE> <DEDENT> def get_storage_type(self): <NEW_LINE> <INDENT> return self.get_type_name() <NEW_LINE> <DEDENT> def get_getter_setter_type(self): <NEW_LINE> <INDENT> return 'ConstDa...
Base type for C++ Std::Vector Types information.
62598f9ed486a94d0ba2bdc7
class RStanheaders(RPackage): <NEW_LINE> <INDENT> homepage = "http://mc-stan.org/" <NEW_LINE> url = "https://cloud.r-project.org/src/contrib/StanHeaders_2.10.0-2.tar.gz" <NEW_LINE> list_url = "https://cloud.r-project.org/src/contrib/Archive/StanHeaders" <NEW_LINE> version('2.21.0-7', sha256='27546e064f0e907e031d91...
C++ Header Files for Stan The C++ header files of the Stan project are provided by this package, but it contains no R code, vignettes, or function documentation. There is a shared object containing part of the CVODES library, but it is not accessible from R. StanHeaders is only useful for developers who want to utiliz...
62598f9e004d5f362081eef6
class ExcelResponse(HttpResponse): <NEW_LINE> <INDENT> def __init__(self, origin_data, output_name='excel_data', headers=None, encoding='utf8', is_template=False, sheet_name=None): <NEW_LINE> <INDENT> valid_data = False <NEW_LINE> if is_template: <NEW_LINE> <INDENT> sheet_data = [headers] <NEW_LINE> <DEDENT> else: <NEW...
excel文件导出 支持xls和csv格式文件 支持多sheet页导出
62598f9e63d6d428bbee25a4
class Sniffer(UDisks): <NEW_LINE> <INDENT> def __init__(self, proxy=None): <NEW_LINE> <INDENT> self._proxy = proxy or self.connect_service() <NEW_LINE> self._proxy.property.DaemonVersion <NEW_LINE> <DEDENT> def paths(self): <NEW_LINE> <INDENT> return self._proxy.method.EnumerateDevices() <NEW_LINE> <DEDENT> def get(sel...
UDisks DBus service wrapper. This is a wrapper for the DBus API of the UDisks service at 'org.freedesktop.UDisks'. Access to properties and device states is completely online, meaning the properties are requested from dbus as they are accessed in the python object.
62598f9e21a7993f00c65d75
class QueryLayerSourcePropertyPage(CoClass): <NEW_LINE> <INDENT> _reg_clsid_ = GUID('{DA96B9F2-F1A7-4CC8-ABFE-68BF69EB8EED}') <NEW_LINE> _idlflags_ = [] <NEW_LINE> _typelib_path_ = typelib_path <NEW_LINE> _reg_typelib_ = ('{D92377DC-FAB1-4DFB-A4C1-61BD8C40DBEB}', 10, 2)
Property page for managing a query layer's source.
62598f9e8e7ae83300ee8e92
class DataStoreServer(oauth.Server): <NEW_LINE> <INDENT> def __init__(self, signature_methods=None, data_store=None): <NEW_LINE> <INDENT> self.data_store = data_store <NEW_LINE> super(DataStoreServer, self).__init__(signature_methods) <NEW_LINE> <DEDENT> def fetch_request_token(self, oauth_request): <NEW_LINE> <INDENT>...
Adds data storage abilities to the base OAuth Server
62598f9e7cff6e4e811b5815
class ClouduseraccountsGroupsListRequest(_messages.Message): <NEW_LINE> <INDENT> filter = _messages.StringField(1) <NEW_LINE> maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) <NEW_LINE> orderBy = _messages.StringField(3) <NEW_LINE> pageToken = _messages.StringField(4) <NEW_LINE> pro...
A ClouduseraccountsGroupsListRequest object. Fields: filter: Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only a...
62598f9e0a50d4780f7051cc
class GKJsonApiException(Exception): <NEW_LINE> <INDENT> title = 'Unknown error' <NEW_LINE> status = '500' <NEW_LINE> source = None <NEW_LINE> def __init__(self, detail, source=None, title=None, status=None, code=None, id_=None, links=None, meta=None): <NEW_LINE> <INDENT> self.detail = detail <NEW_LINE> self.source = s...
Base exception class for unknown errors
62598f9e498bea3a75a57913
class Man(object): <NEW_LINE> <INDENT> def __init__(self, name, age): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.age = age <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def says(what): <NEW_LINE> <INDENT> print ("hello, %s" % what)
this is a test
62598f9e1b99ca400228f427
class ServicemanagementServicesConfigsListRequest(_messages.Message): <NEW_LINE> <INDENT> pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32) <NEW_LINE> pageToken = _messages.StringField(2) <NEW_LINE> serviceName = _messages.StringField(3, required=True)
A ServicemanagementServicesConfigsListRequest object. Fields: pageSize: The max number of items to include in the response list. Page size is 50 if not specified. Maximum value is 100. pageToken: The token of the page to retrieve. serviceName: The name of the service. See the [overview](/service- manage...
62598f9e91f36d47f2230d99
class Or_exp(object): <NEW_LINE> <INDENT> def __init__(self, lhs, rhs): <NEW_LINE> <INDENT> self.lhs = lhs <NEW_LINE> self.rhs = rhs <NEW_LINE> <DEDENT> def value(self): <NEW_LINE> <INDENT> return (value(lhs) or value(rhs))
A disjunction: p OR q
62598f9e32920d7e50bc5e48
class GameMap(State): <NEW_LINE> <INDENT> pass
Game running screen
62598f9e32920d7e50bc5e49
class RandomPyPolicy(py_policy.Base): <NEW_LINE> <INDENT> def __init__(self, time_step_spec, action_spec, seed=None, outer_dims=None): <NEW_LINE> <INDENT> self._seed = seed <NEW_LINE> self._outer_dims = outer_dims <NEW_LINE> self._rng = np.random.RandomState(seed) <NEW_LINE> if time_step_spec is None: <NEW_LINE> <INDEN...
Returns random samples of the given action_spec.
62598f9e379a373c97d98e08
class KokuDBAccess: <NEW_LINE> <INDENT> def __init__(self, schema): <NEW_LINE> <INDENT> self.schema = schema <NEW_LINE> self._db = DB_ENGINE <NEW_LINE> self._meta = self._create_metadata() <NEW_LINE> self._session_factory = sessionmaker(bind=self._db) <NEW_LINE> self._session_registry = scoped_session(self._session_fac...
Base Class to connect to the koku database.
62598f9e3c8af77a43b67e38
class StructuralMeasureLand(StructuralMeasure): <NEW_LINE> <INDENT> Land_Water = "Land" <NEW_LINE> def __init__(self, name, layer, loc, cconstant, cvariable, pot_heights, repfactor=1.2, breachfactor=0.2, htunit="m +MSL", costunit='Million', slope=0.25, irribaren=3, core="clay", layermat="sand", layerthick=1, add_streng...
example of object class
62598f9eac7a0e7691f722fe
class ExtraFallback(object): <NEW_LINE> <INDENT> def __init__(self, name, fallback): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.fallback = fallback <NEW_LINE> <DEDENT> def __get__(self, instance, owner=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> retval = Configurable.__getattr__(instance, self.name) <...
Adds another layer of fallback to attributes - to look up a different attribute name
62598f9ef7d966606f747ddb
class ListingTestCase(ReSTExtensionTestCase): <NEW_LINE> <INDENT> sample1 = '.. listing:: nikola.py python' <NEW_LINE> sample2 = '.. code-block:: python\n\n import antigravity' <NEW_LINE> sample3 = '.. sourcecode:: python\n\n import antigravity' <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.f = StringIO("imp...
Listing test case and CodeBlock alias tests
62598f9e60cbc95b06364140
class msdcc(uh.HasUserContext, uh.StaticHandler): <NEW_LINE> <INDENT> name = "msdcc" <NEW_LINE> checksum_chars = uh.HEX_CHARS <NEW_LINE> checksum_size = 32 <NEW_LINE> @classmethod <NEW_LINE> def _norm_hash(cls, hash): <NEW_LINE> <INDENT> return hash.lower() <NEW_LINE> <DEDENT> def _calc_checksum(self, secret): <NEW_LIN...
This class implements Microsoft's Domain Cached Credentials password hash, and follows the :ref:`password-hash-api`. It has a fixed number of rounds, and uses the associated username as the salt. The :meth:`~passlib.ifc.PasswordHash.hash`, :meth:`~passlib.ifc.PasswordHash.genhash`, and :meth:`~passlib.ifc.PasswordHas...
62598f9e627d3e7fe0e06c9e
class Rectangle(): <NEW_LINE> <INDENT> def __init__(self, width=0, height=0): <NEW_LINE> <INDENT> self.width = width <NEW_LINE> self.height = height <NEW_LINE> <DEDENT> @property <NEW_LINE> def width(self): <NEW_LINE> <INDENT> return self.__width <NEW_LINE> <DEDENT> @width.setter <NEW_LINE> def width(self, value): <NEW...
define rectangle
62598f9e3eb6a72ae038a435
class Direction(enum.Enum): <NEW_LINE> <INDENT> LEFT = LVector3d(-1, 0, 0) <NEW_LINE> RIGHT = LVector3d(1, 0, 0) <NEW_LINE> FORWARD = LVector3d(0, 1, 0) <NEW_LINE> BACKWARD = LVector3d(0, -1, 0) <NEW_LINE> UP = LVector3d(0, 0, 1) <NEW_LINE> DOWN = LVector3d(0, 0, -1)
Represents a direction vector.
62598f9e435de62698e9bbe7
class UserBatteryExercise(models.Model): <NEW_LINE> <INDENT> user_battery = models.ForeignKey(UserBattery, verbose_name=_('user battery')) <NEW_LINE> exercise = models.ForeignKey(Exercise, verbose_name=_('exercise')) <NEW_LINE> position = models.PositiveSmallIntegerField(_('position')) <NEW_LINE> is_correct = models.Nu...
Intermediate table for the exercises many to many on the user battery. Adds a position field to let set a custom ordering for each user.
62598f9e3617ad0b5ee05f44
class PathParameterDetail(generics.RetrieveAPIView): <NEW_LINE> <INDENT> serializer_class = PARAMETER_SERIALIZERS['path'] <NEW_LINE> queryset = PathParameter.objects.all() <NEW_LINE> permission_classes = (permissions.IsAuthenticated, IsChrisOrReadOnly,)
A path parameter view.
62598f9e56ac1b37e6301fde
class DescribePrivateZoneResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.PrivateZone = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("PrivateZone") is not None: <NEW_LINE> <INDENT> self.PrivateZone = ...
DescribePrivateZone返回参数结构体
62598f9e24f1403a926857ac
class AuthenticationContextDeclaration(AuthnContextDeclarationBaseType_): <NEW_LINE> <INDENT> c_tag = 'AuthenticationContextDeclaration' <NEW_LINE> c_namespace = NAMESPACE <NEW_LINE> c_children = AuthnContextDeclarationBaseType_.c_children.copy() <NEW_LINE> c_attributes = AuthnContextDeclarationBaseType_.c_attributes.c...
The urn:oasis:names:tc:SAML:2.0:ac:classes:InternetProtocolPassword:AuthenticationContextDeclaration element
62598f9e4e4d562566372217
class RecordObjector(serde.CppSerde): <NEW_LINE> <INDENT> pass
A serializer/deserializer for Flume record
62598f9e796e427e5384e587
class FLCActionServer(object): <NEW_LINE> <INDENT> def __init__(self, name, rate): <NEW_LINE> <INDENT> self.rate = rospy.Rate(rate) <NEW_LINE> rospy.on_shutdown(self.hook_on_shutdown) <NEW_LINE> self._as = actionlib.SimpleActionServer( name, flc_teleoperation.msg.FLCAction, execute_cb=self.execute_cb, auto_start=False)...
Wraps FLC in an ActionServer, for easier enable/disable.
62598f9e92d797404e388a60
class TestD20Treasure(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_simple(self): <NEW_LINE> <INDENT> name="nothing useful" <NEW_LINE> description="Realy, nothing useful." <NEW_LINE> treasure = D20Treasure( value=10, sale_value=20, name=name, description=...
Unit tests for the D20Treasure class
62598f9e63d6d428bbee25a6
class PlayerSocketProtocol(WebSocketServerProtocol): <NEW_LINE> <INDENT> def onConnect(self, request): <NEW_LINE> <INDENT> self.sendMessage("Player socket established") <NEW_LINE> self.username = "anonymous" <NEW_LINE> WebSocketServerProtocol.onConnect(self, request) <NEW_LINE> <DEDENT> def onMessage(self, payload, isB...
WebSocket protocol for handling players. Handles private communication between a player and the server.
62598f9e63d6d428bbee25a5
class dropout: <NEW_LINE> <INDENT> def __init__(self, prob_dropout): <NEW_LINE> <INDENT> assert 0 <= prob_dropout < 1 <NEW_LINE> self.p_dropout = prob_dropout <NEW_LINE> <DEDENT> def __call__(self, x): <NEW_LINE> <INDENT> if not self.p_dropout: <NEW_LINE> <INDENT> return x <NEW_LINE> <DEDENT> drop_mask = np.random.bino...
A dropout layer This layer will randomly set elements of a tensor to 0, with some specified probability p. Those elements that pass through unmasked are scaled by a factor of 1 / (1 - p), such that the magnitude of the tensor, in expectation, is unaffected by the dropout layer. Examples -------- >>> import mygrad a...
62598f9e38b623060ffa8e86
class CustomTermMixin(object): <NEW_LINE> <INDENT> def __new__(cls, inputs=NotSpecified, window_length=NotSpecified, dtype=NotSpecified, missing_value=NotSpecified, **kwargs): <NEW_LINE> <INDENT> unexpected_keys = set(kwargs) - set(cls.params) <NEW_LINE> if unexpected_keys: <NEW_LINE> <INDENT> raise TypeError( "{termna...
Mixin for user-defined rolling-window Terms. Implements `_compute` in terms of a user-defined `compute` function, which is mapped over the input windows. Used by CustomFactor, CustomFilter, CustomClassifier, etc.
62598f9ed53ae8145f918282
class EntityRegistryDisabledHandler: <NEW_LINE> <INDENT> RELOAD_AFTER_UPDATE_DELAY = 30 <NEW_LINE> def __init__(self, hass: HomeAssistant) -> None: <NEW_LINE> <INDENT> self.hass = hass <NEW_LINE> self.registry: Optional[entity_registry.EntityRegistry] = None <NEW_LINE> self.changed: Set[str] = set() <NEW_LINE> self._re...
Handler to handle when entities related to config entries updating disabled_by.
62598f9e4428ac0f6e65831f
class ClearChargingProfileStatus(str, Enum): <NEW_LINE> <INDENT> accepted = "Accepted" <NEW_LINE> unknown = "Unknown"
Status returned in response to ClearChargingProfile.req.
62598f9e498bea3a75a57915
class CenterLoss(nn.Module): <NEW_LINE> <INDENT> def __init__(self, num_classes=10, feat_dim=2, use_gpu=True): <NEW_LINE> <INDENT> super(CenterLoss, self).__init__() <NEW_LINE> self.num_classes = num_classes <NEW_LINE> self.feat_dim = feat_dim <NEW_LINE> self.use_gpu = use_gpu <NEW_LINE> if self.use_gpu: <NEW_LINE> <IN...
Center loss. Reference: Wen et al. A Discriminative Feature Learning Approach for Deep Face Recognition. ECCV 2016. Args: num_classes (int): number of classes. feat_dim (int): feature dimension.
62598f9e8e71fb1e983bb8aa
class Profile(models.Model): <NEW_LINE> <INDENT> dating_gender = models.CharField(max_length=16, default='女') <NEW_LINE> dating_location = models.CharField(max_length=16, default='上海') <NEW_LINE> max_distance = models.IntegerField(default=5) <NEW_LINE> min_distance = models.IntegerField(default=1) <NEW_LINE> max_dating...
dating_gender Yes str 匹配的性别 dating_location Yes str ⽬标城市 max_distance Yes float 最⼤查找范围 min_distance Yes float 最⼩查找范围 max_dating_age Yes int 最⼤交友年龄 min_dating_age Yes int 最⼩交友年龄 vibration Yes bool 开启震动 only_match...
62598f9e55399d3f05626316
class RestRequest: <NEW_LINE> <INDENT> def __init__(self, method=None, uri=None, parameters=None, headers=None, body=None,): <NEW_LINE> <INDENT> self.method = method <NEW_LINE> self.uri = uri <NEW_LINE> self.parameters = parameters <NEW_LINE> self.headers = headers <NEW_LINE> self.body = body
Attributes: - method - uri - parameters - headers - body
62598f9e57b8e32f52508016
class UserChangeForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = MyUser <NEW_LINE> fields = ('username', 'email', 'firstname', 'lastname', 'year', 'current_location', 'major', 'current_job', 'is_active', 'is_admin') <NEW_LINE> exclude = ('password',) <NEW_LINE> <DEDENT> def save(self, ...
A form for updating users. Includes all the fields on the user, but replaces the password field with admin's password hash display field.
62598f9e460517430c431f55
class PageLink(object): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return '{0.__class__.__name__}({0.title!r})'.format(self) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return unicode(self).encode('utf8') <NEW_LINE> <DEDENT> def __unicode__(self): <NEW_LINE> <INDENT> return '{0.__class__...
A PageLink
62598f9e97e22403b383ad00
class Resource(Model): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, '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',...
Resource Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource Id :vartype id: str :ivar name: Resource name :vartype name: str :ivar type: Resource type :vartype type: str :param location: Resource location :type location: str :param tags: Resource tags :type tags...
62598f9e32920d7e50bc5e4a
class AfterOpenCallback(callback.AbstractCallback, object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def filter(cls, *args): <NEW_LINE> <INDENT> return True, args <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def register(cls, fn): <NEW_LINE> <INDENT> return OpenMaya.MSceneMessage.addCallback(OpenMaya.MSceneMessage.kA...
Callback that is called before opening a DCC scene
62598f9ec432627299fa2dce