code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class Up_X(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_channels=0, out_channels=0, bilinear=True, kernel=(3, 3), padding=1): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> if bilinear: <NEW_LINE> <INDENT> self.up = nn.Upsample(scale_factor=2, mode='bilinear', align_corners=True) <NEW_LINE> <DEDENT> else: <...
Upscaling then double conv
62598ee26aa9bd52df0d34d2
@extension <NEW_LINE> class IterPost(IterPart): <NEW_LINE> <INDENT> offsetMore = int <NEW_LINE> lastCId = int
The post iterable that provides extended information on the posts collection. The offset more is constructed without the cId filtering, the idea is if you provide in your query a filter saying that you require elements that have an order greater then a certain value and also provide a cId in your filtering, you...
62598ee2379a373c97d9761e
class PSAConfig(object): <NEW_LINE> <INDENT> def __init__(self, cf, method='morris'): <NEW_LINE> <INDENT> self.method = method <NEW_LINE> self.model = ParseSEIMSConfig(cf) <NEW_LINE> if 'PSA_Settings' not in cf.sections(): <NEW_LINE> <INDENT> raise ValueError("[PSA_Settings] section MUST be existed in *.ini file.") <NE...
Parse parameters sensitivity analysis configuration of SEIMS project.
62598ee2dd821e528d6d7569
class LoreAttribError(AttribError): <NEW_LINE> <INDENT> def __init__(self, module, attrib, lore): <NEW_LINE> <INDENT> self.module = module <NEW_LINE> self.attrib = attrib <NEW_LINE> self.msg = "Invalid lore attribute for {}: {}".format( lore, self.attrib)
If the program tries to get an attribute of a lore that doesn't really exist or is unknown.
62598ee20c0af96317c549c1
class AltitudeException(Exception): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> super(AltitudeException, self).__init__() <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return repr(self.value)
Thrown when altitude is invalid, or diver acclimatized is invalid.
62598ee2a17c0f6771d5a878
class SupervisedDBNClassification(TensorFlowAbstractSupervisedDBN, ClassifierMixin): <NEW_LINE> <INDENT> def _build_model(self, weights=None): <NEW_LINE> <INDENT> super(SupervisedDBNClassification, self)._build_model(weights) <NEW_LINE> self.output = tf.nn.softmax(self.y) <NEW_LINE> self.cost_function = tf.reduce_mean(...
This class implements a Deep Belief Network for classification problems. It appends a Softmax Linear Classifier as output layer.
62598ee24f6381625f1987ce
class UnsubscribeView(FormView): <NEW_LINE> <INDENT> template_name = "newsletter/unsubscribe.html" <NEW_LINE> form_class = UnsubscriptionForm <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super().get_context_data(**kwargs) <NEW_LINE> context["obj"] = get_object_or_404(Subscriber, uuid=s...
View called when a user clik on his unsubscribe link
62598ee257b8e32f52507417
class CreateRole(show.ShowOne): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + '.CreateRole') <NEW_LINE> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(CreateRole, self).get_parser(prog_name) <NEW_LINE> parser.add_argument( 'name', metavar='<role-name>', help='New role name', ) <NEW_LINE> p...
Create new role
62598ee24f88993c371ef7f8
class LinearRegression(): <NEW_LINE> <INDENT> def __init__(self, n_iterations=3000, learning_rate=0.00005, regularization=None, gradient=True): <NEW_LINE> <INDENT> self.n_iterations = n_iterations <NEW_LINE> self.learning_rate = learning_rate <NEW_LINE> self.gradient = gradient <NEW_LINE> if regularization is None: <NE...
Parameters: ----------- n_iterations: int learning_rate: float regularization: l1_regularization or l2_regularization or None gradient: Bool if use gradient descent to get result (if use regularization, can only use gradient descent)
62598ee244b2445a339b5c79
class IApplicationSettingsProvider: <NEW_LINE> <INDENT> def GetPreviousVersion(self, context, property): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Reset(self, context): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Upgrade(self, context, properties): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __init__(s...
Defines extended capabilities for client-based application settings providers.
62598ee2a219f33f346c4e5d
class DuplicateEntityError(ModelError): <NEW_LINE> <INDENT> pass
Helper exception that can be thrown by models implementing KeyMixin
62598ee2ac7a0e7691f70b3a
class AsyncioConnecting(AsyncioRunning): <NEW_LINE> <INDENT> _transport_factory = None <NEW_LINE> _host = None <NEW_LINE> _port = None <NEW_LINE> _ssl = False <NEW_LINE> async def _connect(self): <NEW_LINE> <INDENT> args = (self._transport_factory,) <NEW_LINE> kwargs = {"host": self._host, "port": self._port, "ssl": se...
asyncio service that connects a given transport
62598ee260cbc95b06362961
class ZeroPad2d(Layer): <NEW_LINE> <INDENT> def __init__( self, prev_layer, padding, name='zeropad2d', ): <NEW_LINE> <INDENT> Layer.__init__(self, prev_layer=prev_layer, name=name) <NEW_LINE> self.inputs = prev_layer.outputs <NEW_LINE> logging.info("ZeroPad2d %s: padding:%s" % (self.name, str(padding))) <NEW_LINE> se...
The :class:`ZeroPad2d` class is a 2D padding layer for image [batch, height, width, channel]. Parameters ---------- layer : :class:`Layer` The previous layer. padding : int, or tuple of 2 ints, or tuple of 2 tuples of 2 ints. - If int, the same symmetric padding is applied to width and height. - If...
62598ee2d7e4931a7ef3a6c2
class TestTargetReportsExtended(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testTargetReportsExtended(self): <NEW_LINE> <INDENT> pass
TargetReportsExtended unit test stubs
62598ee27cff6e4e811b4012
class ProjectConfigurationDialog(QDialog): <NEW_LINE> <INDENT> def __init__(self, parent=None): <NEW_LINE> <INDENT> super(ProjectConfigurationDialog, self).__init__(parent=parent) <NEW_LINE> self.setMinimumWidth(500) <NEW_LINE> QgsGui.instance().enableAutoGeometryRestore(self) <NEW_LINE> self.setWindowTitle("QFieldSync...
Configuration dialog for QFieldSync on a particular project.
62598ee23c8af77a43b67245
class Thumbnailer(View): <NEW_LINE> <INDENT> storage = default_storage <NEW_LINE> saveThumbnail = getattr(settings,'THUMBNAIL_SAVE',False) <NEW_LINE> lifetime = getattr(settings,'THUMBNAIL_CACHE_TIME', 900 ) <NEW_LINE> def get(self, request, path): <NEW_LINE> <INDENT> filename = path <NEW_LINE> name, ext = filename.spl...
View class that generates a thumbnail from an image retrieved from storage. Desired Thumbnail dimension are extracted from url path. Generated thumbnails maybe cached and served by a 'static' webserver such as Nginx or Apache...
62598ee23617ad0b5ee04754
class PublicCachingMixin(object): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> CLIENT_CACHE_TTL_SECONDS = 60 <NEW_LINE> CDN_CACHE_TTL_SECONDS = 60 <NEW_LINE> CACHE_STATUS = frozenset(( 200, 203, 300, 301, 302, 307, 410, )) <NEW_LINE> def dispatch(self): <NEW_LINE> <INDENT> super(PublicCachingMixin, self)....
Abstract class for setting public cache_control, cache_control max_age and s_max_age.
62598ee2f7d966606f746615
class HardDriveDoesNotExistException(MCVirtException): <NEW_LINE> <INDENT> pass
The given hard drive does not exist.
62598ee2d486a94d0ba2a5fb
class Process(models.Model): <NEW_LINE> <INDENT> name = models.CharField(_('name'), max_length=100) <NEW_LINE> slug = models.SlugField( _('slug'), unique=True, max_length=100, help_text=_("Used to build the process' URL.")) <NEW_LINE> order = models.CharField( _('PMBOK ID'), max_length=10, help_text=_('Process ID from ...
Project management processes used to meet project objectives.
62598ee21f5feb6acb161277
class SaveWallPaper(TLObject): <NEW_LINE> <INDENT> __slots__ = ["wallpaper", "unsave", "settings"] <NEW_LINE> ID = 0x6c5a5b37 <NEW_LINE> QUALNAME = "functions.account.SaveWallPaper" <NEW_LINE> def __init__(self, *, wallpaper, unsave: bool, settings): <NEW_LINE> <INDENT> self.wallpaper = wallpaper <NEW_LINE> self.unsave...
Attributes: LAYER: ``112`` Attributes: ID: ``0x6c5a5b37`` Parameters: wallpaper: Either :obj:`InputWallPaper <pyrogram.api.types.InputWallPaper>`, :obj:`InputWallPaperSlug <pyrogram.api.types.InputWallPaperSlug>` or :obj:`InputWallPaperNoFile <pyrogram.api.types.InputWallPaperNoFile>` unsave: ``bool``...
62598ee2be383301e0251dfd
class PPSecondCommand(CommandHandlerPostStrategy): <NEW_LINE> <INDENT> def post_process(self, msg: Message, additional_data: Optional[Any] = None) -> None: <NEW_LINE> <INDENT> print('post_process 2')
Example second post process handler
62598ee216aa5153ce3feb22
class ConnectionRefusedException(_M_Ice.ConnectFailedException): <NEW_LINE> <INDENT> def __init__(self, error=0): <NEW_LINE> <INDENT> _M_Ice.ConnectFailedException.__init__(self, error) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return IcePy.stringifyException(self) <NEW_LINE> <DEDENT> __repr__ = __str_...
This exception indicates a connection failure for which the server host actively refuses a connection.
62598ee2462c4b4f79dba01e
class ObjectIteratorV2(_BaseIterator): <NEW_LINE> <INDENT> def __init__(self, bucket, prefix='', delimiter='', continuation_token='', start_after='', fetch_owner = False, encoding_type = 'url', max_keys=100, max_retries=None, headers=None): <NEW_LINE> <INDENT> super(ObjectIteratorV2, self).__init__(continuation_token, ...
遍历Bucket里文件的迭代器。 每次迭代返回的是 :class:`SimplifiedObjectInfo <oss2.models.SimplifiedObjectInfo>` 对象。 当 `SimplifiedObjectInfo.is_prefix()` 返回True时,表明是公共前缀(目录)。 :param str prefix: 只罗列文件名为该前缀的文件 :param str delimiter: 分隔符。可以用来模拟目录 :param str continuation_token: 分页标志。首次调用传空串,后续使用返回值的next_continuation_token :param str start_afte...
62598ee25f7d997b871f86e8
class TestGetComponentsIntegration(RACoreIntegrationTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.portal = self.layer['portal'] <NEW_LINE> setRoles(self.portal, TEST_USER_ID, ['Manager']) <NEW_LINE> login(self.portal, TEST_USER_NAME) <NEW_LINE> self.portal.invokeFactory('Article', 'article') ...
Test getComponents() method of raptus.article.core.components.
62598ee2236d856c2adc8726
@gApi.doc(response={'404':'bad channel number'}) <NEW_LINE> class SensorsView(Resource): <NEW_LINE> <INDENT> def get(self,id): <NEW_LINE> <INDENT> logging.debug('get sensor: %d'%id) <NEW_LINE> buffer = self._app.getSensor(id) <NEW_LINE> return str('return from get id=%d: %s' % (id, buffer) ) <NEW_LINE> <DEDENT> def put...
Sensor class. ** GET ** to read the sensor state ** PUT ** change the sensor type
62598ee2e5267d203ee69f2a
class IObjectRemovedEvent(IObjectEvent): <NEW_LINE> <INDENT> object = Attribute('The object being added') <NEW_LINE> parent = Attribute('The folder from which the object is removed')
Interface for removed objects
62598ee256ac1b37e6300812
class itkStandardDeviationProjectionImageFilterIUL3IUL2(itkStandardDeviationProjectionImageFilterIUL3IUL2_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 cons...
Proxy of C++ itkStandardDeviationProjectionImageFilterIUL3IUL2 class
62598ee27d847024c075a9f4
class DescribeL7RulesResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.RuleSet = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("RuleSet") is not None: <NEW_LINE> <INDENT> self.RuleSet = [] <NEW_LINE> fo...
DescribeL7Rules返回参数结构体
62598ee2bd1bec0571e143de
class LookupColumn(ForeignKeyColumn): <NEW_LINE> <INDENT> TYPE_INFO = 'LOOKUP' <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> ForeignKeyColumn.__init__(self, *args, **kwargs) <NEW_LINE> self.set_entity_relation_attr('parent_column', 'id') <NEW_LINE> self.set_entity_relation_attr('display_cols', ['n...
Enables a single value to be selected from a ValueList table.
62598ee2090684286d5929f2
class MessageWriter(BufferGame): <NEW_LINE> <INDENT> def __init__(self, boardX = 14, boardY = 13, filename="glyphs.txt", message="hack the planet", steps_second="1"): <NEW_LINE> <INDENT> super(MessageWriter,self).__init__(boardX,boardY) <NEW_LINE> self.playhead = 0 <NEW_LINE> self.currentFrame = 0 <NEW_LINE> self.messa...
Write a message then repeat
62598ee2e1aae11d1e7cdb51
class DataGathering(object): <NEW_LINE> <INDENT> def __init__(self, rood_data_dir): <NEW_LINE> <INDENT> self.f = None <NEW_LINE> self.root_data_dir = rood_data_dir <NEW_LINE> self.reset_logging() <NEW_LINE> <DEDENT> def reset_logging(self): <NEW_LINE> <INDENT> if self.f is not None: <NEW_LINE> <INDENT> self.f.close() <...
play_utils.play accepts a callback, here is excerpt from docs: callback: lambda or None Callback if a callback is provided it will be executed after every step. It takes the following input: obs_t: observation before performing action obs_tp1: observation after performing action action...
62598ee263b5f9789fe8378a
class Hand(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.cards = [] <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> if self.cards: <NEW_LINE> <INDENT> rep = "" <NEW_LINE> for card in self.cards: <NEW_LINE> <INDENT> rep += str(card) + " " <NEW_LINE> <DEDENT> <DEDENT> else: <NEW_LI...
A hand of playing cards
62598ee22c8b7c6e89bd1de5
class GCEFailedDisk(object): <NEW_LINE> <INDENT> def __init__(self, name, error, code): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.error = error <NEW_LINE> self.code = code <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '<GCEFailedDisk name="%s" error_code="%s">' % ( self.name, self.code)
Dummy Node object for disks that are not created.
62598ee2435de62698e9a3fc
class Asteroid(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, x_pos, y_pos, game_surface: pygame.Surface, radius=10): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.game_surface = game_surface <NEW_LINE> self.radius = radius <NEW_LINE> self.image = pygame.Surface([radius*2, radius*2]) <NEW_LINE> ...
Represents an initially static rock in space.
62598ee22c8b7c6e89bd1de6
@dataclass(frozen=True) <NEW_LINE> class Train(Track): <NEW_LINE> <INDENT> train: NodePath = field(compare=False) <NEW_LINE> speed: float = field(compare=False)
A Train object represents the starting position of a train
62598ee267a9b606de5445f3
class _MultiDict(MutableMapping): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._items = [] <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return len(self._items) <NEW_LINE> <DEDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> for k, v in reversed(self._items): <NEW_LINE> <INDENT> if ...
A slim version of the WebOb.MultiDict class. This only includes functionality needed for accessing POST form vars needed for for parsing a BounceNotification object. Original WebOb class: https://github.com/Pylons/webob/blob/master/src/webob/multidict.py
62598ee22ae34c7f260a970d
class ConvBn2d(_ConvBnNd, nn.Conv2d): <NEW_LINE> <INDENT> _FLOAT_MODULE = torch.nn.intrinsic.ConvBn2d <NEW_LINE> def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, padding_mode='zeros', eps=1e-05, momentum=0.1, freeze_bn=False, qconfig=None): <NEW_LINE> <INDENT> kernel...
A ConvBn2d module is a module fused from Conv2d and BatchNorm2d, attached with FakeQuantize modules for both output activation and weight, used in quantization aware training. We combined the interface of :class:`torch.nn.Conv2d` and :class:`torch.nn.BatchNorm2d`. Implementation details: https://arxiv.org/pdf/1806.08...
62598ee20c0af96317c549c3
class Sector(models.Model): <NEW_LINE> <INDENT> zone = models.ForeignKey(Zone, on_delete=models.CASCADE) <NEW_LINE> sector_name = models.CharField(max_length=50) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return "%s (%s)" %(self.sector_name, self.zone.zone_name)
Sector definitions. All sectors should be mapped to a zone
62598ee23539df3088eca8d8
class Renderer(object): <NEW_LINE> <INDENT> content_type = None <NEW_LINE> format_suffix = None <NEW_LINE> def render(self, data, context=None): <NEW_LINE> <INDENT> raise NotImplementedError()
The base renderer class.
62598ee24f6381625f1987cf
class Flavor(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=200) <NEW_LINE> description = models.CharField(max_length=2000) <NEW_LINE> in_production = models.BooleanField() <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return '#{} - {}, in production? {}'.format( self.id, self.title, sel...
Represents a flavor of the always delicious, always futuristic, soakin' specs!
62598ee2dd821e528d6d756b
class InvalidAppSecret(Error): <NEW_LINE> <INDENT> code = 14125 <NEW_LINE> description = "不正确的 AppSecret"
不正确的 AppSecret
62598ee27047854f4633d9fb
class Watershed(Simple): <NEW_LINE> <INDENT> title = 'Binary Watershed 3D' <NEW_LINE> note = ['8-bit', 'stack3d'] <NEW_LINE> para = {'tor':2, 'con':False} <NEW_LINE> view = [(int, 'tor', (0,255), 0, 'tolerance', 'value'), (bool, 'con', 'full connectivity')] <NEW_LINE> def run(self, ips, imgs, para = None): <NEW_LINE> <...
Mark class plugin with events callback functions
62598ee2cad5886f8bdc3926
class KladrStreetManager(KladrActualManager): <NEW_LINE> <INDENT> def get_queryset(self): <NEW_LINE> <INDENT> return super(KladrStreetManager, self). get_queryset(). filter(~Q(code_street=0))
Актуальные улицы
62598ee292d797404e387e8e
class Test1Plugin(MigratePlugin): <NEW_LINE> <INDENT> plugin_name = "test1" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(Test1Plugin, self).__init__() <NEW_LINE> self._config_options = [Arg("option1", plugin_name=self.plugin_name)]
docstring for ClusterPlugin.
62598ee27d847024c075a9f5
class BlockchainTest(SDRTTestFramework): <NEW_LINE> <INDENT> def setup_chain(self): <NEW_LINE> <INDENT> print("Initializing test directory " + self.options.tmpdir) <NEW_LINE> initialize_chain(self.options.tmpdir) <NEW_LINE> <DEDENT> def setup_network(self, split=False): <NEW_LINE> <INDENT> self.nodes = start_nodes(1, s...
Test blockchain-related RPC calls: - gettxoutsetinfo - verifychain
62598ee244b2445a339b5c7a
class UCBInterface(BanditInterface): <NEW_LINE> <INDENT> def __init__( self, historical_info, subtype=None, ): <NEW_LINE> <INDENT> self._historical_info = copy.deepcopy(historical_info) <NEW_LINE> self._subtype = subtype <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def get_unsampled_arm_names(arms_sampled): <NEW_LINE> ...
Implementation of the constructor of UCB (Upper Confidence Bound) and method allocate_arms. The method get_ucb_payoff is implemented in subclass. A class to encapsulate the computation of bandit UCB. The Algorithm: http://moodle.technion.ac.il/pluginfile.php/192340/mod_resource/content/0/UCB.pdf To inherit this class...
62598ee24f88993c371ef7f9
class AppController(rest.RestController): <NEW_LINE> <INDENT> def __init__(self, app_id): <NEW_LINE> <INDENT> super(AppController, self).__init__() <NEW_LINE> self._id = app_id <NEW_LINE> <DEDENT> @exception.wrap_wsme_pecan_controller_exception <NEW_LINE> @pecan.expose() <NEW_LINE> def _lookup(self, resource, *remainde...
Manages operations on a single app.
62598ee21b99ca400228e820
class CreateContacts(ResourceListCreateView): <NEW_LINE> <INDENT> schema_class = ContactsSchema <NEW_LINE> model = Contacts <NEW_LINE> message = "Contact information successfully created"
@apiDescription Create Contacts This api is responsible for creating the contact records in the system. @api {post} /api/v1/contactbook/create-contacts/ CREATE Contacts @apiName CREATE Contacts @apiGroup Contacts @apiHeader {String} Authorization: Basic Creds @apiHeader {String} Accept-L...
62598ee2851cf427c66b68f8
class ButtonModel(WidgetModel): <NEW_LINE> <INDENT> def __init__(self, text, icon=None): <NEW_LINE> <INDENT> super(ButtonModel, self).__init__() <NEW_LINE> self.text = text <NEW_LINE> self.icon = icon <NEW_LINE> self.pressed = False <NEW_LINE> self.signals['pressed'] = kaa.Signal() <NEW_LINE> self.pressed_timer = kaa.O...
Widget model representing a simple button This model emits the following signals in addition to the base Widget signals: - pressed = The button has been pressed.
62598ee223849d37ff84f6dc
class ExchangeLoader: <NEW_LINE> <INDENT> BASE_API_URL = 'https://api.exchangeratesapi.io/' <NEW_LINE> def read(self, date): <NEW_LINE> <INDENT> response = requests.request( method='GET', url="%s%s" % (self.BASE_API_URL, date.isoformat()) ) <NEW_LINE> serializer = ExchangeMessageSerializer(data=response.json()) <NEW_LI...
Reads the exchange info from the API and loads it into the database
62598ee27cff6e4e811b4014
class Profile(User): <NEW_LINE> <INDENT> last_solved = models.DateTimeField(default=now) <NEW_LINE> def _get_score(self): <NEW_LINE> <INDENT> attempts = Attempt.objects.filter(player=self).filter(correct=True) <NEW_LINE> score = attempts.aggregate(models.Sum('marks')) <NEW_LINE> print(score, 'score') <NEW_LINE> marks =...
A user profile. Stores scores and other data
62598ee2adb09d7d5dc08bed
class FixedChunker: <NEW_LINE> <INDENT> def __init__(self, fileobj): <NEW_LINE> <INDENT> self.f = fileobj <NEW_LINE> self.pos = 0 <NEW_LINE> <DEDENT> def _get_chunksize(self): <NEW_LINE> <INDENT> return 2**20 <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> while True: <NEW_LINE> <INDENT> pos = self.f.tell()...
Chunker that iterates over a file object and yields fixed size chunks. Yields (position, byteslike) for each chunk in a given file object
62598ee266673b3332c2e9cf
class ClusterHandler(JSONHandler): <NEW_LINE> <INDENT> fields = ( "id", "name", "mode", "status", "grouping", "is_customized", "net_provider", "net_segment_type", ("release", "*"), "release_id", ) <NEW_LINE> model = Cluster <NEW_LINE> validator = ClusterValidator <NEW_LINE> @classmethod <NEW_LINE> def render(cls, insta...
Cluster single handler
62598ee263d6d428bbee0df9
class GammaMoments(Moments): <NEW_LINE> <INDENT> dims = ( (), () ) <NEW_LINE> def compute_fixed_moments(self, x): <NEW_LINE> <INDENT> if np.any(x < 0): <NEW_LINE> <INDENT> raise ValueError("Values must be positive") <NEW_LINE> <DEDENT> u0 = x <NEW_LINE> u1 = np.log(x) <NEW_LINE> return [u0, u1] <NEW_LINE> <DEDENT> @cla...
Class for the moments of gamma variables.
62598ee20a50d4780f7039d1
class SessionSetupRequest(): <NEW_LINE> <INDENT> def __init__(self, tags): <NEW_LINE> <INDENT> self.StructureSize=tags.find('StructureSize').text <NEW_LINE> self.Flags=tags.find('Flags').text <NEW_LINE> self.SecurityMode=tags.find('SecurityMode').text <NEW_LINE> self.Capabilities=tags.find('Capabilities').text <NEW_LIN...
XML Parser for the SMB2 Command SessionSetupRequest
62598ee26fb2d068a7693136
class RawJavascript(str): <NEW_LINE> <INDENT> pass
Placeholder class that's the same as a string BUT is treated specially by format_js_value and not quoted.
62598ee2d58c6744b42db5ca
class AuthorizationError(UserError): <NEW_LINE> <INDENT> pass
Error indication the user attempted to take some action without authorization
62598ee2cc0a2c1114479629
class QoS(BASE, L2NetworkBase): <NEW_LINE> <INDENT> __tablename__ = 'qoss' <NEW_LINE> qos_id = Column(String(255)) <NEW_LINE> tenant_id = Column(String(255), primary_key=True) <NEW_LINE> qos_name = Column(String(255), primary_key=True) <NEW_LINE> qos_desc = Column(String(255)) <NEW_LINE> def __init__(self, tenant_id, q...
Represents QoS for a tenant
62598ee2627d3e7fe0e054af
class DynamoDbConnector: <NEW_LINE> <INDENT> def __init__( self, table_name: str, context: AwsConnectorContext ): <NEW_LINE> <INDENT> self.table_name = table_name <NEW_LINE> self.context = context <NEW_LINE> self._table = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def table(self): <NEW_LINE> <INDENT> if not self._ta...
Class represents connector for AWS DynamoDB table
62598ee2c432627299fa15de
class DecodeIO(object): <NEW_LINE> <INDENT> def __init__(self, outdir): <NEW_LINE> <INDENT> self._cnt = 0 <NEW_LINE> self._outdir = outdir <NEW_LINE> if not os.path.exists(self._outdir): <NEW_LINE> <INDENT> os.mkdir(self._outdir) <NEW_LINE> <DEDENT> self._ref_file = None <NEW_LINE> self._decode_file = None <NEW_LINE> <...
Writes the decoded and references to RKV files for Rouge score. See nlp/common/utils/internal/rkv_parser.py for detail about rkv file.
62598ee216aa5153ce3feb24
class Meta(type): <NEW_LINE> <INDENT> def __add__(self, other): <NEW_LINE> <INDENT> return other.__add__(self)
'Metaclass is a solution looking for a problem', they say. That is probably true. This is just a proof of concept to make GeometryExtension's addition work with an uninitialized geometry
62598ee255399d3f05624b58
class Audience(saml2.SamlBase): <NEW_LINE> <INDENT> _tag = 'Audience' <NEW_LINE> _namespace = SAML_NAMESPACE <NEW_LINE> _children = saml2.SamlBase._children.copy() <NEW_LINE> _attributes = saml2.SamlBase._attributes.copy()
The saml:Audience element
62598ee263d6d428bbee0dfa
class CTD_ANON_9 (pyxb.binding.basis.complexTypeDefinition): <NEW_LINE> <INDENT> _TypeDefinition = None <NEW_LINE> _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY <NEW_LINE> _Abstract = False <NEW_LINE> _ExpandedName = None <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('/tmp/pyxbdist...
Complex type [anonymous] with content type ELEMENT_ONLY
62598ee232920d7e50bc4654
class Htm(Tools): <NEW_LINE> <INDENT> def start(self): <NEW_LINE> <INDENT> if self.encodage_fichier(self.fichtm) and self.htmtocsv(): <NEW_LINE> <INDENT> print('- Fichier {} traité.\n- Fichier {} créé.'.format(self.fichtm, self.ficcsv)) <NEW_LINE> if self.csvtotxt(): <NEW_LINE> <INDENT> print('- Fichier {} créé.'.forma...
Gestion d'un fichier htm : - lecture fichier html - creation d'un fichier csv (avec application des regex) - enfin, creation d'un fichier txt
62598ee245492302aabfaad4
class ReportErrorsServiceGrpcTransport(object): <NEW_LINE> <INDENT> _OAUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",) <NEW_LINE> def __init__( self, channel=None, credentials=None, address="clouderrorreporting.googleapis.com:443", ): <NEW_LINE> <INDENT> if channel is not None and credentials is not No...
gRPC transport class providing stubs for google.devtools.clouderrorreporting.v1beta1 ReportErrorsService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced features of gRPC.
62598ee28e7ae83300ee76b6
class override_settings: <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.options = kwargs <NEW_LINE> self.wrapped = settings._wrapped <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> self.enable() <NEW_LINE> <DEDENT> def __exit__(self, exc_type, exc_value, traceback): <NEW_LINE> <...
Acts as either a decorator, or a context manager. If it's a decorator it takes a function and returns a wrapped function. If it's a contextmanager it's used with the ``with`` statement. In either event entering/exiting are called before and after, respectively, the function/block is executed.
62598ee2e1aae11d1e7cdb52
class CountryTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> trytond.tests.test_tryton.install_module('country') <NEW_LINE> <DEDENT> def test0005views(self): <NEW_LINE> <INDENT> test_view('country') <NEW_LINE> <DEDENT> def test0006depends(self): <NEW_LINE> <INDENT> test_depends()
Test Country module.
62598ee221bff66bcd721279
class PipeClient(object): <NEW_LINE> <INDENT> reader_pipe_broken = threading.Event() <NEW_LINE> reply_ready = threading.Event() <NEW_LINE> _shared_state = {} <NEW_LINE> def __new__(cls, *p, **k): <NEW_LINE> <INDENT> self = object.__new__(cls, *p, **k) <NEW_LINE> self.__dict__ = cls._shared_state <NEW_LINE> return self ...
Write / read client access to Audacity via named pipes. Normally there should be just one instance of this class. If more instances are created, they all share the same state. __init__ calls _write_thread_start() and _read_thread_start() on first instantiation. Parameters ---------- None Attributes ---------- ...
62598ee238b623060ffa76bd
class RandomChooseAug(ImageAugmentor): <NEW_LINE> <INDENT> def __init__(self, aug_lists): <NEW_LINE> <INDENT> if isinstance(aug_lists[0], (tuple, list)): <NEW_LINE> <INDENT> prob = [k[1] for k in aug_lists] <NEW_LINE> aug_lists = [k[0] for k in aug_lists] <NEW_LINE> self._init(locals()) <NEW_LINE> <DEDENT> else: <NEW_L...
Randomly choose one from a list of augmentors
62598ee230bbd72246468260
class Forcefield(object): <NEW_LINE> <INDENT> def assign(self, mol, display=True): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def create_prepped_molecule(self, mol, display=True): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def check(self, mol, display=True): <NEW_LINE> ...
Abstract class for biomolecular forcefield definitions such as amber14sb or charm22. These contain both atom typing templates AND forcefield parameters. Most of this data is not exposed through the python API (currently); internally, these are collections of references to definition files (such as amber leaprc and lib...
62598ee25166f23b2e2419fe
class VDropLinear2(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_features, out_features, bias=True, w_logvar_init=-10): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.in_features = in_features <NEW_LINE> self.out_features = out_features <NEW_LINE> self.w_logvar_min = min(w_logvar_init, -10) <NEW_LINE> s...
A self-contained VDropLinear (doesn't use the VDropCentralData)
62598ee263b5f9789fe8378c
class TestCopyrightCommand(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> sublime.settings.set(constants.SETTING_COPYRIGHT_MESSAGE, "|%y|%o|") <NEW_LINE> self.command = CopyrightCommand(None) <NEW_LINE> <DEDENT> def test_format_text_happy_path(self): <NEW_LINE> <INDENT> text = self.command...
Tests for the CopyrightCommand class.
62598ee2796e427e5384cdc0
class RecipeSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> ingredients = serializers.PrimaryKeyRelatedField( many=True, queryset=models.Ingredient.objects.all() ) <NEW_LINE> tags = serializers.PrimaryKeyRelatedField( many=True, queryset=models.Tag.objects.all() ) <NEW_LINE> class Meta: <NEW_LINE> <INDENT>...
Serializer for recipe object
62598ee22ae34c7f260a9710
class FloatContinuous(FloatVA, Continuous): <NEW_LINE> <INDENT> def __init__(self, value, range, **kwargs): <NEW_LINE> <INDENT> Continuous.__init__(self, range) <NEW_LINE> FloatVA.__init__(self, value, **kwargs) <NEW_LINE> <DEDENT> def _check(self, value): <NEW_LINE> <INDENT> Continuous._check(self, value) <NEW_LINE> F...
A simple class which is both float and continuous
62598ee221a7993f00c64594
class SwitchProfilesController(BaseController): <NEW_LINE> <INDENT> def get_organization_config_template_switch_profiles(self, options=dict()): <NEW_LINE> <INDENT> self.validate_parameters(organization_id=options.get("organization_id"), config_template_id=options.get("config_template_id")) <NEW_LINE> _url_path = '/orga...
A Controller to access Endpoints in the meraki_sdk API.
62598ee2e76e3b2f99fd7061
class MultiLineViz(NVD3Viz): <NEW_LINE> <INDENT> viz_type = "line_multi" <NEW_LINE> verbose_name = _("Time Series - Multiple Line Charts") <NEW_LINE> is_timeseries = True <NEW_LINE> def query_obj(self) -> QueryObjectDict: <NEW_LINE> <INDENT> return {} <NEW_LINE> <DEDENT> def get_data(self, df: pd.DataFrame) -> VizData:...
Pile on multiple line charts
62598ee257b8e32f52507419
class Xref(object): <NEW_LINE> <INDENT> def __init__(self, xref): <NEW_LINE> <INDENT> for attr in ['frm', 'to', 'iscode', 'user']: <NEW_LINE> <INDENT> setattr(self, attr, getattr(xref, attr)) <NEW_LINE> <DEDENT> self._type = XrefType(xref.type) <NEW_LINE> <DEDENT> @property <NEW_LINE> def type(self): <NEW_LINE> <INDENT...
Xref Object Provides easy access to xref attributes. Most interesting data (xref type) is accessible via the `.type` attribute.
62598ee27047854f4633d9fe
class IndexViewTestCase(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.factory = RequestFactory() <NEW_LINE> self.view = IndexView.as_view() <NEW_LINE> <DEDENT> def test_get(self): <NEW_LINE> <INDENT> request = self.factory.get('/') <NEW_LINE> response = self.view(request) <NEW_LINE> self.asse...
TestCase to test the Core View
62598ee27d847024c075a9f7
class BaseURLPlugin(BaseDashboardPlugin): <NEW_LINE> <INDENT> name = _("URL") <NEW_LINE> group = _("URLs") <NEW_LINE> form = URLForm <NEW_LINE> @property <NEW_LINE> def html_class(self): <NEW_LINE> <INDENT> html_class = super(BaseURLPlugin, self).html_class <NEW_LINE> if self.data.image: <NEW_LINE> <INDENT> html_class ...
Base URL plugin.
62598ee23cc13d1c6d463d95
class CreateSubAppIdResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.SubAppId = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.SubAppId = params.get("SubAppId") <NEW_LINE> self.RequestId = params.get("RequestId"...
CreateSubAppId response structure.
62598ee2ac7a0e7691f70b3e
class MachineTranslateSettingsReference(object): <NEW_LINE> <INDENT> swagger_types = { 'id': 'str', 'name': 'str', 'type': 'str' } <NEW_LINE> attribute_map = { 'id': 'id', 'name': 'name', 'type': 'type' } <NEW_LINE> def __init__(self, id=None, name=None, type=None): <NEW_LINE> <INDENT> self._id = None <NEW_LINE> self._...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ee23617ad0b5ee04758
class TextIndex(ind.TextIndex): <NEW_LINE> <INDENT> def __init__(self, attribs): <NEW_LINE> <INDENT> super(TextIndex, self).__init__() <NEW_LINE> self.textField = None <NEW_LINE> self.localTermWeights = None <NEW_LINE> self.isCaseSensitive = None <NEW_LINE> self.maxLevenshteinDistance = None <NEW_LINE> self.countHits =...
Represents a <TextIndex> tag in v4.2 and provides methods to convert to PFA.
62598ee26e29344779afec58
class Utterance(SiriObject): <NEW_LINE> <INDENT> cls = "AssistantUtteranceView" <NEW_LINE> text = "" <NEW_LINE> speakableText = None <NEW_LINE> dialogIdentifier = "Misc#ident" <NEW_LINE> listenAfterSpeaking = False <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(SiriObjects.Utterance, self).__...
The "Meat & Potatoes" of the SiriObjects, an Utterance prompts a textual and (optionally) a voice prompt. Properties: `text` Text to display on screen. `speakableText` Text to read, this will default to `text` if not provided. This field also supports various @tts{} commands. `dialo...
62598ee224f1403a92684bb9
class FormBaseNewWithMenus(fmForm.FormBaseNew, wgNMenuDisplay.HasMenus): <NEW_LINE> <INDENT> def __init__(self, *args, **keywords): <NEW_LINE> <INDENT> super(FormBaseNewWithMenus, self).__init__(*args, **keywords) <NEW_LINE> self.initialize_menus() <NEW_LINE> <DEDENT> def display_menu_advert_at(self): <NEW_LINE> <INDEN...
The FormBaseNew class, but with a handling system for menus as well. See the HasMenus class for details.
62598ee27cff6e4e811b4016
class TestServiceRegistry(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.pool = ha.create_worker_pool(0) <NEW_LINE> self.bus = ha.EventBus(self.pool) <NEW_LINE> self.services = ha.ServiceRegistry(self.bus, self.pool) <NEW_LINE> self.services.register("test_domain", "test_service", lam...
Test ServicerRegistry methods.
62598ee2adb09d7d5dc08bef
class Public: <NEW_LINE> <INDENT> def get_all_elements(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> db_object = DB(Constants.DB_PATH) <NEW_LINE> iterator = db_object.get_cursor_iterator() <NEW_LINE> cursor = iterator.cursor() <NEW_LINE> return cursor <NEW_LINE> <DEDENT> except Exception as err: <NEW_LINE> <INDEN...
Public class to be used for third parties
62598ee256b00c62f0fb0ef9
class Watt(Univariate): <NEW_LINE> <INDENT> def __init__(self, a=0.988e6, b=2.249e-6): <NEW_LINE> <INDENT> self.a = a <NEW_LINE> self.b = b <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return 2 <NEW_LINE> <DEDENT> @property <NEW_LINE> def a(self): <NEW_LINE> <INDENT> return self._a <NEW_LINE> <DEDENT> @pr...
Watt fission energy spectrum. The Watt fission energy spectrum is characterized by two parameters :math:`a` and :math:`b` and has density function :math:`p(E) dE = c e^{-E/a} \sinh \sqrt{b \, E} dE`. Parameters ---------- a : float First parameter of distribution in units of eV b : float Second parameter of d...
62598ee2aad79263cf42ce3e
class SourceTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.new_source = Source('abc-news','ABC News','Your trusted source for breaking news.','http://abcnews.go.com/','general','us') <NEW_LINE> <DEDENT> def test_instance(self): <NEW_LINE> <INDENT> self.assertTrue(isinstance(self....
Test Class to test the behaviour of the News Source Class
62598ee20a50d4780f7039d3
class figure_parser(plot_description_file_parser): <NEW_LINE> <INDENT> def validate_and_get_body(self): <NEW_LINE> <INDENT> if self.root.tag in ['time_domain_figure', 'bode_figure']: <NEW_LINE> <INDENT> body = self.root <NEW_LINE> return body <NEW_LINE> <DEDENT> elif self.root.tag == 'figure': <NEW_LINE> <INDENT> child...
Parse an XML file containing a single figure.
62598ee35f7d997b871f86ea
class StateIOContainer: <NEW_LINE> <INDENT> def __init__(self, method_name, method_results): <NEW_LINE> <INDENT> self.method_name = method_name <NEW_LINE> self.__results = list() <NEW_LINE> self.add_folds(method_results) <NEW_LINE> <DEDENT> def add_fold(self, src): <NEW_LINE> <INDENT> if isinstance(src, StateIO): <NEW_...
Class to process StateIO object. If a list of StateIO objects is given, the data stored in each StateIO object can be extracted with this class.
62598ee3cc0a2c111447962c
class MonitorMode(Mode): <NEW_LINE> <INDENT> def __init__(self, pre_func=None, post_func=None, optimizer='default', linker=None): <NEW_LINE> <INDENT> self.pre_func = pre_func <NEW_LINE> self.post_func = post_func <NEW_LINE> wrap_linker = theano.gof.WrapLinkerMany([theano.gof.OpWiseCLinker()], [self.eval]) <NEW_LINE> if...
`MonitorMode` is a debug mode to easily step through function execution. Its default behavior is to behave like the 'FAST_RUN' mode. By providing either a `pre_func` (called before a node is executed) or a `post_func` (called after a node is executed) monitoring function, the user can inspect node behavior. A typical...
62598ee3627d3e7fe0e054b1
class Base(ABC): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self._power_plant_requires = kwargs.get("powerplant_requires", None) <NEW_LINE> self._requires = kwargs.get("requires", None) <NEW_LINE> <DEDENT> @property <NEW_LINE> @abstractmethod <NEW_LINE> def power_plant_requires(self): <NEW_LI...
The base class of feedinlib models. This base class is an abstract class serving as a blueprint for classes that implement feed-in models for weather dependent renewable energy resources. It forces implementors to implement certain properties and methods.
62598ee356ac1b37e6300816
class TestLite(setuptools.Command): <NEW_LINE> <INDENT> description = 'run tests without fetching or building anything.' <NEW_LINE> user_options = [] <NEW_LINE> def initialize_options(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def finalize_options(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def run(sel...
Command to run tests without fetching or building anything.
62598ee33539df3088eca8db
class Song(models.Model): <NEW_LINE> <INDENT> album = models.ForeignKey(Album, on_delete=models.CASCADE, default=0) <NEW_LINE> title = models.CharField(max_length=50, blank=False) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.title
Arctics Monkeys's Song
62598ee32c8b7c6e89bd1de9
class cache_result(object): <NEW_LINE> <INDENT> def __init__(self, cache_time=30, force_update=None, clear_cache=None): <NEW_LINE> <INDENT> self.cache = {} <NEW_LINE> self.time = collections.defaultdict(int) <NEW_LINE> self.cache_time = cache_time <NEW_LINE> self.force_update = force_update <NEW_LINE> self.clear_cache ...
decorated to cache the result of a function for x_seconds
62598ee32c8b7c6e89bd1dea
class ListItemProperties(Request): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.timeout = 100000 <NEW_LINE> self.ensure_https = False <NEW_LINE> self.method = 'get' <NEW_LINE> self.path = "/items/properties/list/" % () <NEW_LINE> <DEDENT> def get_body_parameters(self): <NEW_LINE> <INDENT> p = dict()...
Gets the list of all the item properties in your database.
62598ee3442bda511e95aa91
class MessagesUser(serializers.HyperlinkedModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Usermessage <NEW_LINE> fields = ('title', 'time')
站内信列表serializers
62598ee376e4537e8c3edbe1
class MultipleResults(Awaitable): <NEW_LINE> <INDENT> results = None <NEW_LINE> done = False <NEW_LINE> has_async = False <NEW_LINE> concurrent = False <NEW_LINE> owner = None <NEW_LINE> def __init__(self, iterable=None, *, concurrent=False, owner=None): <NEW_LINE> <INDENT> if owner is not None: <NEW_LINE> <INDENT> sel...
An utility class containing multiple results, either *synchronous* or *asynchronous*. It accepts an iterable as main parameter that can contain actual values or *awaitables*. If any of the latter is present, it will be needed to ``await`` on the instance to obtain the complete set of values. When that is done the fina...
62598ee35fdd1c0f98e5c5d8
class itkFunctionBasePD2VD2(ITKCommonBasePython.itkObject): <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 - class is abstract") <NEW_LINE> __repr__ =...
Proxy of C++ itkFunctionBasePD2VD2 class
62598ee391f36d47f22301b8
class APIPermissionError(APIError): <NEW_LINE> <INDENT> def __init_(self, message=''): <NEW_LINE> <INDENT> super(APIPermissionError, self).__init__('permission:forbidden', 'permisson', message)
Indicate the api has no permission
62598ee3d268445f26638ea3