code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ScriptView(BrowserView): <NEW_LINE> <INDENT> def __call__(self): <NEW_LINE> <INDENT> context = aq_inner(self.context) <NEW_LINE> init = "\nmetric_init('%s', '%s', '%s');\n" % (context.id, context.source, context.absolute_url()) <NEW_LINE> self.request.response.setHeader('content-type', 'application/javascript') <... | utility view to return script with proper mime-type | 62598f8b24f1403a9268566e |
class InnerProduct(CaffeOpConverter): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _impl(cls, inputs, layer, params): <NEW_LINE> <INDENT> inputs.append(relay.Constant(tvm.nd.array(params[layer.name][0]))) <NEW_LINE> inputs[0] = _op.nn.batch_flatten(inputs[0]) <NEW_LINE> units = infer_channels(inputs[1]) <NEW_LINE> o... | Operator converter for InnerProduct.
| 62598f8bd53ae8145f918011 |
class QueryClueInfoListResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.PageData = None <NEW_LINE> self.NextCursor = None <NEW_LINE> self.HasMore = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("PageDa... | QueryClueInfoList返回参数结构体
| 62598f8bfbf16365ca793c2e |
class HMMTagger(ITagger): <NEW_LINE> <INDENT> def __init__(self, words, tags, model): <NEW_LINE> <INDENT> self._words = words <NEW_LINE> self._tags = tags <NEW_LINE> self._word_index = _index_positions(words) <NEW_LINE> self._tag_index = _index_positions(tags) <NEW_LINE> self._model = model <NEW_LINE> <DEDENT> @staticm... | A POS Tagger based on the classic Hidden Markov Model approach. | 62598f8bfb3f5b602db47f71 |
class RWACell(RNNCell): <NEW_LINE> <INDENT> def __init__(self, num_units, input_size=None, activation=tanh, reuse=None): <NEW_LINE> <INDENT> super(RWACell, self).__init__() <NEW_LINE> if input_size is not None: <NEW_LINE> <INDENT> tf.logging.warn("%s: The input_size parameter is deprecated.", self) <NEW_LINE> <DEDENT> ... | Recurrent Weighted Average (cf. http://arxiv.org/abs/1703.01253). | 62598f8b7cff6e4e811b5593 |
class WorkerThread(QThread): <NEW_LINE> <INDENT> def __init__(self, run_callback, finished_callback=None): <NEW_LINE> <INDENT> super(WorkerThread, self).__init__() <NEW_LINE> self.run = run_callback <NEW_LINE> self._finished_callback = finished_callback <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> self.fini... | Convenience wrapper around QThread allowing to easily run code in a separate thread,
get notified upon completion and kill the thread synchronously. | 62598f8bbde94217f3707427 |
class IJobFailure(IObjectEvent): <NEW_LINE> <INDENT> pass | Job has failed | 62598f8b596a8972361277f6 |
class EV3HTTPServer(BaseHTTPServer.HTTPServer): <NEW_LINE> <INDENT> def __init__(self, host, requesthandler, objectproperties=[]): <NEW_LINE> <INDENT> BaseHTTPServer.HTTPServer.__init__(self, host, requesthandler) <NEW_LINE> self._rootservice = RootService() <NEW_LINE> propservice = DelegationService('properties') <NE... | HTTPServer that serves info ev3 devices
Args:
host (tuple of (str, int)): IP and port the server lives
requesthandler (BaseHTTPRequestHandler.__class__): Class to instantiate upon request
objectproperties (list of tpl of object, list of str): Objects and properties to serve info on | 62598f8b3617ad0b5ee05cc5 |
class GameOver(Scene): <NEW_LINE> <INDENT> REL_WIDTH = 200 <NEW_LINE> REL_HEIGHT = 7*9 + 8 <NEW_LINE> def __init__(self, dungeon, victory, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.victory = victory <NEW_LINE> self.dungeon = dungeon <NEW_LINE> self.width = self.REL_WIDTH * constants.MENU... | A display that is shown when the player dies. | 62598f8b63b5f9789fe84cf2 |
class HouseSelector(): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def spider_to_rds(times=10, size=50): <NEW_LINE> <INDENT> hs = HouseSelectorSPR(times, size) <NEW_LINE> hs_rds = HouseSelectorRDS() <NEW_LINE> house_infos = hs.house_id_list <NEW_LINE> for house_info in house_infos: <NEW_LINE> <INDENT> hs_rds.insert(ho... | 此处存放房源嗅探器的操作 | 62598f8b7b25080760ed702c |
class XMPPAuthenticatorTests(unittest.TestCase): <NEW_LINE> <INDENT> def testBasic(self): <NEW_LINE> <INDENT> self.client_jid = jid.JID('user@example.com/resource') <NEW_LINE> xs = client.XMPPClientFactory(self.client_jid, 'secret').buildProtocol(None) <NEW_LINE> self.assertEqual('example.com', xs.authenticator.otherHo... | Test for both XMPPAuthenticator and XMPPClientFactory. | 62598f8bd53ae8145f918012 |
class Test002(ExceptionTest): <NEW_LINE> <INDENT> def setUpCommon(self): <NEW_LINE> <INDENT> print("") <NEW_LINE> print("SETUPCOMMON_Test002") <NEW_LINE> raise AssertionError("FAIL This") <NEW_LINE> <DEDENT> def setUp_001(self): <NEW_LINE> <INDENT> print("SETUP_001") <NEW_LINE> <DEDENT> def test_001(self): <NEW_LINE> <... | FAIL SETUPCOMMON | 62598f8b91af0d3eaad39980 |
class TestFunctionTestWebPageContent(InvenioTestCase): <NEW_LINE> <INDENT> def test_twpc_username_arg(self): <NEW_LINE> <INDENT> self.assertEqual([], test_web_page_content(cfg['CFG_SITE_URL'], username="admin", expected_text="</html>")) <NEW_LINE> errmsgs = test_web_page_content(cfg['CFG_SITE_URL'], username="admin", p... | Check browser test_web_page_content() function. | 62598f8b004d5f362081edba |
class TestCase(TrialTestCase): <NEW_LINE> <INDENT> pass | Specific TestCase class to add some specific functionalities or backport
recent additions. | 62598f8bd10714528d69da4e |
class SGDRScheduler(Callback): <NEW_LINE> <INDENT> def __init__(self, epochsize, batchsize, epochs_to_restart=2, mult_factor=2, lr_fac=0.1, lr_reduction_epochs=(60, 120, 160)): <NEW_LINE> <INDENT> super(SGDRScheduler, self).__init__() <NEW_LINE> self.epoch = -1 <NEW_LINE> self.batch_since_restart = 0 <NEW_LINE> self.ne... | Schedule learning rates with restarts
A simple restart technique for stochastic gradient descent.
The learning rate decays after each batch and peridically resets to its
initial value. Optionally, the learning rate is additionally reduced by a
 fixed factor at a predifined set of epochs.

# Argumen... | 62598f8b26068e7796d4c4df |
class DBConfig(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> conf = Config() <NEW_LINE> self.kind = conf.options['database']['kind'] <NEW_LINE> if self.kind == 'mongodb': <NEW_LINE> <INDENT> self.conn = MongoClient(conf.options['database']['location']) <NEW_LINE> self.database = self.conn[conf.options[... | Database Config.
kind: type of DB server: mongodb, dynamodb or sqlite.
conn: connection to DB.
database: database object.
item_t: table/collection for items.
binder_t: table/collection for binders.
index_t: table/collection for index. | 62598f8b435de62698e9b971 |
class OperantUserBase(object): <NEW_LINE> <INDENT> def operant_id(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def operant_ds(self): <NEW_LINE> <INDENT> raise NotImplementedError() | Class containing abstract operations for users | 62598f8b442bda511e95bfdf |
class Repr(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> C = cPickle.load(open(cf._C_file, "rb")) <NEW_LINE> self.C = C["C"] <NEW_LINE> self.L_mj = C["L_majority"] <NEW_LINE> self.L_soft = C["L_soft"] <NEW_LINE> <DEDENT> def _repr(self, c, d): <NEW_LINE> <INDENT> l1 = self.L_mj.shape[1] <NEW_LINE... | A separate class implementing image representation.
| 62598f8b66656f66f7d59f79 |
class CAEDecoder(torch.nn.Module): <NEW_LINE> <INDENT> def __init__(self, encoder, width, height, channels=3, levels=2, kernel_size=3, first_feature_count=16): <NEW_LINE> <INDENT> super(CAEDecoder, self).__init__() <NEW_LINE> padding = kernel_size // 2 <NEW_LINE> self.width = width <NEW_LINE> self.height = height <NEW_... | Decoder part for the Convolutional Auto Encoder
The Decoder = P(X|z) for the Network | 62598f8b5f7d997b871f919a |
class _ClosedDict(collections.MutableMapping): <NEW_LINE> <INDENT> def closed(self, *args): <NEW_LINE> <INDENT> raise ValueError('invalid operation on closed shelf') <NEW_LINE> <DEDENT> __iter__ = __len__ = __getitem__ = __setitem__ = __delitem__ = keys = closed <NEW_LINE> def __repr__(self): <NEW_LINE> <INDENT> return... | Marker for a closed dict. Access attempts raise a ValueError. | 62598f8bfb3f5b602db47f72 |
class FormalPowerSeriesCompose(FiniteFormalPowerSeries): <NEW_LINE> <INDENT> @property <NEW_LINE> def function(self): <NEW_LINE> <INDENT> f, g, x = self.f, self.g, self.ffps.x <NEW_LINE> return f.subs(x, g) <NEW_LINE> <DEDENT> def _eval_terms(self, n): <NEW_LINE> <INDENT> ffps, gfps = self.ffps, self.gfps <NEW_LINE> te... | Represents the composed formal power series of two functions.
No computation is performed. Terms are calculated using a term by term logic,
instead of a point by point logic.
There are two differences between a `FormalPowerSeries` object and a
`FormalPowerSeriesCompose` object. The first argument contains the outer
f... | 62598f8b0a366e3fb87dc554 |
@dataclass_json(undefined=Undefined.RAISE, letter_case=LetterCase.CAMEL) <NEW_LINE> @dataclass <NEW_LINE> class Track: <NEW_LINE> <INDENT> type: str <NEW_LINE> id: int <NEW_LINE> artist: str <NEW_LINE> title: Optional[str] <NEW_LINE> track: Optional[str] <NEW_LINE> release: Optional[str] <NEW_LINE> time: Optional[str] ... | 4zzz playlist track | 62598f8bb830903b9686e233 |
class ImageAsset(BaseAsset): <NEW_LINE> <INDENT> @property <NEW_LINE> def metadata(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self._metadata <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE> <INDENT> self._metadata = { 'pages':1, 'original_resolution':0, 'original_height':0, 'original_width':0, 'ori... | Provides concrete implementation of functionality required by
BaseAsset that is common to all assets that are images of some
sort (JPG, PNG, etc.)
| 62598f8b8e71fb1e983bb633 |
class developable_minimum_commercial_sqft(Variable): <NEW_LINE> <INDENT> _return_type = "int32" <NEW_LINE> is_developable = "is_in_development_type_group_developable" <NEW_LINE> def dependencies(self): <NEW_LINE> <INDENT> return [my_attribute_label(self.is_developable)] <NEW_LINE> <DEDENT> def compute(self, dataset_poo... | The minimum number of commercial sqft that must be developed for each gridcell after applying
development constraints. Only development projects with at least this number of commercial sqft
will be placed in these gridcells. | 62598f8b656771135c4891fe |
class TemplateAPI(object): <NEW_LINE> <INDENT> macro_templates = dict( master_view=configuration['kotti.templates.master_view'], master_edit=configuration['kotti.templates.master_edit'], ) <NEW_LINE> base_css = configuration['kotti.templates.base_css'] <NEW_LINE> view_css = configuration['kotti.templates.view_css'] <NE... | This implements the 'api' object that's passed to all
templates.
Use dict-access as a shortcut to retrieve template macros from
templates. ``api['master_edit.messages']`` will return the
'messages' macro from the 'master_edit' template. | 62598f8ba4f1c619b294e16a |
class User(ndb.Model): <NEW_LINE> <INDENT> username = ndb.StringProperty(required=True, indexed=False) <NEW_LINE> email = ndb.StringProperty(required=True) <NEW_LINE> @classmethod <NEW_LINE> def new_user(cls, username, email): <NEW_LINE> <INDENT> u_key = ndb.Key(User, email) <NEW_LINE> user = User(username=username, em... | User profile object | 62598f8b7b25080760ed702e |
class Teacher(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=32) <NEW_LINE> role_choices = ((0,'讲师'),(1,'导师')) <NEW_LINE> role = models.SmallIntegerField(choices=role_choices,default=0) <NEW_LINE> title = models.CharField(max_length=64,verbose_name='职位/职称') <NEW_LINE> signature = models.CharField... | 导师/讲师表 | 62598f8b8a43f66fc4bf1d08 |
class TestMl2PortsV2WithL3(test_plugin.TestPortsV2, Ml2PluginV2TestCase): <NEW_LINE> <INDENT> def test_update_port_status_notify_port_event_after_update(self): <NEW_LINE> <INDENT> ctx = context.get_admin_context() <NEW_LINE> plugin = manager.NeutronManager.get_plugin() <NEW_LINE> notifier = rpc.AgentNotifierApi(topics.... | For testing methods that require the L3 service plugin. | 62598f8bf7d966606f747b61 |
class TestOperationFlowSkipOptionalSections(TestCase): <NEW_LINE> <INDENT> url_name = "operations_api:create-result-info" <NEW_LINE> view_class = ResultInfoViewSet <NEW_LINE> serializer_class = InfoResultadosOperacaoSerializer <NEW_LINE> expected_section = 6 <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.username... | Quando o campo 'houve_ocorrencia_operacao' for False, as seções 5 e 6
são ignoradas | 62598f8b82261d6c5272fc97 |
class TrajectoryGenerator: <NEW_LINE> <INDENT> def __init__(self, kinematics, cycle_time=0.008): <NEW_LINE> <INDENT> self._kinematics = kinematics <NEW_LINE> self._cycle_time = cycle_time <NEW_LINE> <DEDENT> def get_tool_pose(self, q): <NEW_LINE> <INDENT> return self._kinematics.get_tool_pose(q) <NEW_LINE> <DEDENT> def... | Abstract Tragectory generator | 62598f8b45492302aabfc058 |
class SignaturePolicy(Enum): <NEW_LINE> <INDENT> ALLOW_ENCRYPT_ALLOW_DECRYPT = 0 <NEW_LINE> ALLOW_ENCRYPT_FORBID_DECRYPT = 1 | Controls algorithm suites that can be used on encryption and decryption. | 62598f8b004d5f362081edbb |
class ModelMetaClass(type): <NEW_LINE> <INDENT> def __new__(cls, name, bases, attrs): <NEW_LINE> <INDENT> super_new = super(ModelMetaClass, cls).__new__ <NEW_LINE> if name == 'Model' or name == 'NewBase': <NEW_LINE> <INDENT> return super_new(cls, name, bases, attrs) <NEW_LINE> <DEDENT> module = attrs.pop('__module__') ... | Meta class for all models | 62598f8ba79ad16197769be8 |
class ToTensor(object): <NEW_LINE> <INDENT> def __call__(self, image): <NEW_LINE> <INDENT> image = torch.from_numpy(image).unsqueeze(0) <NEW_LINE> image = image.float() <NEW_LINE> return image | Convert ndarrays to Tensors.
Expands channel axis
# numpy image: H x W x Z
# torch image: C x H x W x Z | 62598f8b07d97122c421682b |
class ConnectionMonitorEndpoint(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'name': {'required': True}, } <NEW_LINE> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'address': {'key': 'address', ... | Describes the connection monitor endpoint.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the connection monitor endpoint.
:type name: str
:param type: The endpoint type. Possible values include: "AzureVM", "AzureVNet", "AzureSubnet",
"ExternalAddress", "MMAWo... | 62598f8bec188e330fdf8423 |
class ServerParameter(Parameter): <NEW_LINE> <INDENT> def __init__(self, name, value, textfile=None, binfile=None, command=None): <NEW_LINE> <INDENT> Parameter.__init__(self) <NEW_LINE> self.name = name <NEW_LINE> self.value = value <NEW_LINE> self.textfile = textfile <NEW_LINE> self.binfile = binfile <NEW_LINE> self.c... | For setting parameters on the ROS parameter server. Equals the ``<param>`` tag. | 62598f8b6aa9bd52df0d4a58 |
class RssRenderer(FeedRenderer): <NEW_LINE> <INDENT> filename = 'rss.xml' <NEW_LINE> def url(self): <NEW_LINE> <INDENT> return urljoin(self.site.config['base_url'], self.filename) <NEW_LINE> <DEDENT> def output(self): <NEW_LINE> <INDENT> self.ensure_output_path() <NEW_LINE> dst = os.path.join(self.output_path, self.fil... | Renderer that outputs a RSS feed XML file | 62598f8b29b78933be269e9d |
class NFSBackupDriver(chunkeddriver.ChunkedBackupDriver): <NEW_LINE> <INDENT> def __init__(self, context, db_driver=None): <NEW_LINE> <INDENT> self._check_configuration() <NEW_LINE> chunk_size_bytes = CONF.backup_file_size <NEW_LINE> sha_block_size_bytes = CONF.backup_sha_block_size_bytes <NEW_LINE> backup_default_cont... | Provides backup, restore and delete using NFS supplied repository. | 62598f8bf7d966606f747b62 |
class TaskComment(models.Model): <NEW_LINE> <INDENT> task = models.ForeignKey(Task) <NEW_LINE> created_at = models.DateTimeField(auto_now_add=True) <NEW_LINE> content = models.TextField(blank=False) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.task | docstring for TaskComment | 62598f8bd53ae8145f918015 |
class TreeNode: <NEW_LINE> <INDENT> def __init__(self, parent, prior_p): <NEW_LINE> <INDENT> self._parent = parent <NEW_LINE> self._children = {} <NEW_LINE> self._n_visits = 0 <NEW_LINE> self._Q = 0 <NEW_LINE> self._u = 0 <NEW_LINE> self._P = prior_p <NEW_LINE> <DEDENT> def expand(self, action_priors): <NEW_LINE> <INDE... | A node in the MCTS tree.
Each node keeps track of its own value Q, prior probability P, and
its visit-count-adjusted prior score u. | 62598f8b7cff6e4e811b5597 |
class _CelerySAWrapper: <NEW_LINE> <INDENT> __slots__ = ('identity_key',) <NEW_LINE> def __init__(self, obj): <NEW_LINE> <INDENT> identity_key = inspect(obj).identity_key <NEW_LINE> if identity_key is None: <NEW_LINE> <INDENT> raise ValueError('Cannot pass non-persistent object to Celery. Did you forget to flush?') <NE... | Wrapper to safely pass SQLAlchemy objects to tasks.
This is achieved by passing only the model name and its PK values
through the Celery serializer and then fetching the actual objects
again when executing the task. | 62598f8b498bea3a75a576a9 |
class LinuxConfiguration(Model): <NEW_LINE> <INDENT> _attribute_map = { 'disable_password_authentication': {'key': 'disablePasswordAuthentication', 'type': 'bool'}, 'ssh': {'key': 'ssh', 'type': 'SshConfiguration'}, } <NEW_LINE> def __init__(self, disable_password_authentication=None, ssh=None): <NEW_LINE> <INDENT> sel... | Describes Windows configuration of the OS Profile.
:param disable_password_authentication: Specifies whether password
authentication should be disabled.
:type disable_password_authentication: bool
:param ssh: The SSH configuration for linux VMs.
:type ssh: :class:`SshConfiguration
<azure.mgmt.compute.compute.v2016_0... | 62598f8b8a43f66fc4bf1d0a |
class Variable(Base): <NEW_LINE> <INDENT> __tablename__ = 'variable' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> meta_id = Column(Integer, ForeignKey('metadata.id')) <NEW_LINE> name = Column(String) <NEW_LINE> type = Column(String) <NEW_LINE> meta = relationship('Metadata', back_populates='variables') ... | A variable in a file (c.f. netCDF) | 62598f8b4428ac0f6e6580a9 |
class MultipleChoiceDataset(Dataset): <NEW_LINE> <INDENT> features: List[InputFeatures] <NEW_LINE> def __init__( self, data_dir: str, tokenizer: PreTrainedTokenizer, task: str, max_seq_length: Optional[int] = None, overwrite_cache=False, mode: Split = Split.train, ): <NEW_LINE> <INDENT> processor = processors[task]() <... | This will be superseded by a framework-agnostic approach
soon. | 62598f8b6aa9bd52df0d4a59 |
class BaseCertificateSetup(BaseApp): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def add_argument_parser(cls, subparsers): <NEW_LINE> <INDENT> parser = super(BaseCertificateSetup, cls).add_argument_parser(subparsers) <NEW_LINE> running_as_root = (os.geteuid() == 0) <NEW_LINE> parser.add_argument('--keystone-user', requ... | Common user/group setup for PKI and SSL generation. | 62598f8b379a373c97d98b9a |
class ProtocolCustomSettingsFormat(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'protocol': {'key': 'protocol', 'type': 'str'}, 'trigger_rate_override': {'key': 'triggerRateOverride', 'type': 'str'}, 'source_rate_override': {'key': 'sourceRateOverride', 'type': 'str'}, 'trigger_sensitivity_overri... | DDoS custom policy properties.
:param protocol: The protocol for which the DDoS protection policy is being customized.
Possible values include: "Tcp", "Udp", "Syn".
:type protocol: str or ~azure.mgmt.network.v2020_11_01.models.DdosCustomPolicyProtocol
:param trigger_rate_override: The customized DDoS protection trigg... | 62598f8b4e696a045264dbc7 |
class AiRecognitionTaskInput(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Definition = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Definition = params.get("Definition") | Input parameter type of video content recognition
| 62598f8ba8ecb03325870d87 |
@register(Tag.USER_MASK) <NEW_LINE> @attr.s(repr=False, slots=True) <NEW_LINE> class UserMask(BaseElement): <NEW_LINE> <INDENT> color = attr.ib(default=None) <NEW_LINE> opacity = attr.ib(default=0, type=int) <NEW_LINE> flag = attr.ib(default=128, type=int) <NEW_LINE> @classmethod <NEW_LINE> def read(cls, fp, **kwargs):... | UserMask structure.
.. py:attribute:: color
.. py:attribute:: opacity
.. py:attribute:: flag | 62598f8b15fb5d323ce7e8b2 |
class Sublayer(object): <NEW_LINE> <INDENT> def __init__(self, transfer, w_mat, b_vec, depth = None, position = None): <NEW_LINE> <INDENT> self.id = Namer.sublayer_name(depth,position) <NEW_LINE> self.depth = depth <NEW_LINE> self.position = position <NEW_LINE> self.size_in, self.size_out = np.shape(w_mat) <NEW_LINE> s... | Abstract Neural Layer class. Basic building block of Layer.
:Parameters:
transfer: str
transfer function from Transfer
examples: "linear","tanh","logistic"
w_mat: array
weight matrix of shape (M,N)
b_vec: array
bias vector of shape (N,)
depth: int
depth... | 62598f8b009cb60464d010b1 |
class AffineRegistration(SlicerCommandLine): <NEW_LINE> <INDENT> input_spec = AffineRegistrationInputSpec <NEW_LINE> output_spec = AffineRegistrationOutputSpec <NEW_LINE> _cmd = " AffineRegistration " <NEW_LINE> _outputs_filenames = {'resampledmovingfilename':'resampledmovingfilename.nii','outputtransform':'outputtrans... | title: Fast Affine registration
category: Legacy.Registration
description: Registers two images together using an affine transform and mutual information. This module is often used to align images of different subjects or images of the same subject from different modalities.
This module can smooth images prior to re... | 62598f8bec188e330fdf8425 |
class CpoIntVar(CpoVariable): <NEW_LINE> <INDENT> __slots__ = ('domain', ) <NEW_LINE> def __init__(self, dom, name=None): <NEW_LINE> <INDENT> super(CpoIntVar, self).__init__(Type_IntVar, name) <NEW_LINE> self.domain = dom <NEW_LINE> <DEDENT> def set_domain(self, domain): <NEW_LINE> <INDENT> self.domain = _build_int_var... | This class represents an *integer variable* that can be used in a CPO model.
This object should not be created explicitly, but using one of the following factory method:
* :meth:`integer_var`, :meth:`integer_var_list`, :meth:`integer_var_dict` to create integer variable(s),
* :meth:`binary_var`, :meth:`binary_var_lis... | 62598f8b38b623060ffa8c1c |
class EveAdapter(EveProvider): <NEW_LINE> <INDENT> def __init__(self, char_provider, corp_provider, alliance_provider, itemtype_provider): <NEW_LINE> <INDENT> self.char_provider = char_provider <NEW_LINE> self.corp_provider = corp_provider <NEW_LINE> self.alliance_provider = alliance_provider <NEW_LINE> self.itemtype_p... | Redirects queries to appropriate data source. | 62598f8bf7d966606f747b64 |
class Ping(Event): <NEW_LINE> <INDENT> _fields = ["payload"] <NEW_LINE> _defaults = {"payload": b""} <NEW_LINE> def response(self): <NEW_LINE> <INDENT> return Pong(payload=self.payload) | The Ping event can be sent to trigger a ping frame and is fired
when a Ping is received.
wsproto automatically emits a PONG frame with the same payload.
Fields:
.. attribute:: payload
An optional payload to emit with the ping frame. | 62598f8b71ff763f4b5e72f6 |
class QualnameTest(CoverageTest): <NEW_LINE> <INDENT> run_in_temp_dir = False <NEW_LINE> def test_method(self): <NEW_LINE> <INDENT> self.assertEqual(Parent().meth(), "Parent.meth") <NEW_LINE> <DEDENT> def test_inherited_method(self): <NEW_LINE> <INDENT> self.assertEqual(Child().meth(), "Parent.meth") <NEW_LINE> <DEDENT... | Tests of qualname_from_frame. | 62598f8b462c4b4f79dbb589 |
class RnkWORD01R(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'rnkWORD01R' <NEW_LINE> id_bibrec = db.Column(db.MediumInteger(8, unsigned=True), db.ForeignKey(Bibrec.id), nullable=False, primary_key=True) <NEW_LINE> termlist = db.Column(db.LargeBinary, nullable=True) <NEW_LINE> type = db.Column(db.Enum('CURRENT', 'FUT... | Represents a RnkWORD01R record. | 62598f8b596a8972361277fc |
class AquiferSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> def to_representation(self, instance): <NEW_LINE> <INDENT> ret = super().to_representation(instance) <NEW_LINE> ret['id'] = instance['aquifer_id'] <NEW_LINE> ret['name'] = instance['aquifer_name'] <NEW_LINE> if instance['area']: <NEW_LINE> <INDEN... | Serialize an aquifer list | 62598f8bbde94217f370742a |
class TestFsaResultsApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = isi_sdk_8_2_1.api.fsa_results_api.FsaResultsApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_get_histogram_stat_by(self): <NEW_LINE> <INDENT> pass <NEW_LINE>... | FsaResultsApi unit test stubs | 62598f8b0c0af96317c55f13 |
class FunctionDescriptor(object): <NEW_LINE> <INDENT> __slots__ = ('native', 'modname', 'qualname', 'doc', 'typemap', 'calltypes', 'args', 'kws', 'restype', 'argtypes', 'mangled_name', 'unique_name', 'inline') <NEW_LINE> def __init__(self, native, modname, qualname, unique_name, doc, typemap, restype, calltypes, args, ... | Base class for function descriptors: an object used to carry
useful metadata about a natively callable function.
Note that while `FunctionIdentity` denotes a Python function
which is being concretely compiled by Numba, `FunctionDescriptor`
may be more "abstract": e.g. a function decorated with `@generated_jit`. | 62598f8b0383005118f6d282 |
class ContractRole(BaseModel): <NEW_LINE> <INDENT> name = models.CharField(unique=True, max_length=255) <NEW_LINE> description = models.TextField(max_length=255, blank=True, null=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return '%s' % self.name | Contract role model. | 62598f8b8a43f66fc4bf1d0c |
class CategoricalAccuracy(Metric): <NEW_LINE> <INDENT> def accuracy(self, y_true, y_pred) -> float: <NEW_LINE> <INDENT> argmax_true = np.argmax(y_true.value, axis=-1).reshape(-1,1) <NEW_LINE> argmax_pred = np.argmax(y_pred.value, axis=-1).reshape(-1,1) <NEW_LINE> self._count += np.equal(argmax_true, argmax_pred).sum() ... | Categorical Accuracy is calculation of accuracy in Categorical conditions.
It compares maximum argument of y_true and y_pred. If they are equal each
other counter increased, else stay same. Also, total number of sample
counted separately. | 62598f8bd53ae8145f918018 |
class CreateOrderViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> permission_classes = [createOrderPermission] <NEW_LINE> queryset = Order.objects.all() <NEW_LINE> serializer_class = CreateOrderSerializers <NEW_LINE> def list(self, request): <NEW_LINE> <INDENT> queryset = {} <NEW_LINE> serializer = ProfileSerializer... | API endpoint that allows users to be viewed or edited. | 62598f8b379a373c97d98b9c |
class CourseTeamFactory(DjangoModelFactory): <NEW_LINE> <INDENT> class Meta(object): <NEW_LINE> <INDENT> model = CourseTeam <NEW_LINE> django_get_or_create = ('team_id',) <NEW_LINE> <DEDENT> team_id = factory.Sequence('team-{0}'.format) <NEW_LINE> discussion_topic_id = factory.LazyAttribute(lambda a: uuid4().hex) <NEW_... | Factory for CourseTeams.
Note that team_id is not auto-generated from name when using the factory. | 62598f8be64d504609df9176 |
class IExtenderListService: <NEW_LINE> <INDENT> def GetExtenderProviders(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __init__(self, *args): <NEW_LINE> <INDENT> pass | Provides an interface that can list extender providers. | 62598f8b07d97122c421682f |
class StatusFlag(enum.Flag): <NEW_LINE> <INDENT> OK = 0 <NEW_LINE> DOES_NOT_EXIST = enum.auto() <NEW_LINE> IS_DIRECTORY = enum.auto() <NEW_LINE> HAS_SYMLINKS = enum.auto() | Flag enumeration for problems that can be found with a dataset URI.
| 62598f8b63d6d428bbee2341 |
class VerticalCRS(CRS): <NEW_LINE> <INDENT> def __init__( self, name: str, datum: Any, vertical_cs: Any = None, geoid_model: Optional[str] = None, ) -> None: <NEW_LINE> <INDENT> vert_crs_json = { "$schema": "https://proj.org/schemas/v0.2/projjson.schema.json", "type": "VerticalCRS", "name": name, "datum": Datum.from_us... | .. versionadded:: 2.5.0
This class is for building a Vetical CRS.
.. warning:: geoid_model support only exists in PROJ >= 6.3.0 | 62598f8bd10714528d69da53 |
class _New_Point_Cmd: <NEW_LINE> <INDENT> def Activated(self): <NEW_LINE> <INDENT> FreeCADGui.Control.showDialog(New_Point_Dialog()) <NEW_LINE> <DEDENT> def GetResources(self): <NEW_LINE> <INDENT> MenuText = QtCore.QT_TRANSLATE_NOOP( 'Add new internal point', 'Add new internal point') <NEW_LINE> ToolTip = QtCore.QT_TRA... | Gui to create new points | 62598f8b6aa9bd52df0d4a5c |
class GraphvizSimple(Directive): <NEW_LINE> <INDENT> has_content = True <NEW_LINE> required_arguments = 1 <NEW_LINE> optional_arguments = 0 <NEW_LINE> final_argument_whitespace = False <NEW_LINE> option_spec = { 'alt': directives.unchanged, 'inline': directives.flag, 'caption': directives.unchanged, } <NEW_LINE> def ru... | Directive to insert arbitrary dot markup. | 62598f8b38b623060ffa8c1e |
class Invertible1x1Conv(torch.nn.Module): <NEW_LINE> <INDENT> def __init__(self, c): <NEW_LINE> <INDENT> super(Invertible1x1Conv, self).__init__() <NEW_LINE> self.conv = torch.nn.Conv1d(c, c, kernel_size=1, stride=1, padding=0, bias=False) <NEW_LINE> W = torch.qr(torch.FloatTensor(c, c).normal_())[0] <NEW_LINE> if torc... | The layer outputs both the convolution, and the log determinant
of its weight matrix. If reverse=True it does convolution with
inverse | 62598f8b07d97122c4216830 |
class IFooterPortlet(IColumn): <NEW_LINE> <INDENT> pass | we need our own portlet manager for the footer.
| 62598f8b0a50d4780f704f57 |
class ControlsPage(Gtk.Box): <NEW_LINE> <INDENT> def _get_message_code(self): <NEW_LINE> <INDENT> fmt = "{0}{1}" <NEW_LINE> out = fmt.format(self._message_code_prefix, self._message_count) <NEW_LINE> return out <NEW_LINE> <DEDENT> def _get_error_message_code(self): <NEW_LINE> <INDENT> fmt = "{0}ERR{1}" <NEW_LINE> out =... | This is the Slowcomb Demo UI Control Panel Page Design
Reference Class. It is intended to be a foundation for building
user controls in Slowcomb demos. | 62598f8b6e29344779b001dd |
class Boolean(object): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> <DEDENT> def reducible(self): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '«'+ str(self) +'»' <NEW_LINE> <DEDENT> def __str__ (self): <NEW_LINE>... | 布尔值符号类型
| 62598f8bd53ae8145f918019 |
class ReportTracker(DeviceValueTracker): <NEW_LINE> <INDENT> def check_value(self): <NEW_LINE> <INDENT> if not self.check_cooldown(): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> if not self.check_ramp_up(): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> self.alert(True) <NEW_LINE> self.cooling_down = True <NEW_LINE>... | Class used to send a report each self.cooldown seconds | 62598f8bb830903b9686e236 |
class Region(models.Model): <NEW_LINE> <INDENT> region_name = models.CharField(max_length=90) | Область | 62598f8b8da39b475be02d67 |
class BasePlanetFactory(DjangoModelFactory): <NEW_LINE> <INDENT> name = Faker('name') <NEW_LINE> galaxy = SubFactory('factories.books_galaxy.GalaxyFactory') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Planet <NEW_LINE> abstract = True <NEW_LINE> django_get_or_create = ('name',) | Base planet factory. | 62598f8bd99f1b3c44d05232 |
class DownloadingNewLatestWarning(BiograderWarning): <NEW_LINE> <INDENT> pass | Downloading a new latest data version. If they want to use an old version, they'll have to manually specify it. | 62598f8b7b25080760ed7034 |
class Set(GenericAgent): <NEW_LINE> <INDENT> name = 'set' | set the value of an endpoint, or a property of an endpoint if specified | 62598f8bd6c5a102081e1ccc |
class JSOperatorUtilization(plugin.OutputPreparationPlugin): <NEW_LINE> <INDENT> JS_OPERATOR_CLASS_SET = set(["Dream.Operator"]) <NEW_LINE> def postprocess(self, data): <NEW_LINE> <INDENT> for result in data['result']['result_list']: <NEW_LINE> <INDENT> ticks = [] <NEW_LINE> working_data = [] <NEW_LINE> waiting_data = ... | Output the station utilization metrics in a format compatible with
| 62598f8b8a43f66fc4bf1d0e |
class AddNonTreeNodeAsNodeError(TreeError): <NEW_LINE> <INDENT> pass | Only nodes can be append to nodes. | 62598f8b0a50d4780f704f58 |
class ApplicationGatewayAvailableSslOptions(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': 'loca... | Response for ApplicationGatewayAvailableSslOptions API service call.
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 locat... | 62598f8b6aa9bd52df0d4a5d |
class PleaseAckDecorator(BaseModel): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> schema_class = "PleaseAckDecoratorSchema" <NEW_LINE> <DEDENT> def __init__( self, message_id: str = None, on: Sequence[str] = None, ): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.message_id = message_id <NEW_LINE> self.o... | Class representing the please-ack decorator. | 62598f8bdc8b845886d53142 |
class InvalidParams(JsonRpcServerError): <NEW_LINE> <INDENT> code = -32602 <NEW_LINE> message = 'Invalid params' <NEW_LINE> http_status = status.HTTP_BAD_REQUEST <NEW_LINE> def __init__(self, data=None): <NEW_LINE> <INDENT> super(InvalidParams, self).__init__(data) | Raised when invalid arguments are passed to a method.
:param data: Extra information about the error that occurred (optional). | 62598f8bb5575c28eb712a8e |
class NamedAttachmentProperties(object): <NEW_LINE> <INDENT> def __init__(self, attachment): <NEW_LINE> <INDENT> self.__attachment = attachment <NEW_LINE> self.__properties = [] <NEW_LINE> self.__propertiesDict = {} <NEW_LINE> <DEDENT> def defineProperty(self, entry, _type, name = None): <NEW_LINE> <INDENT> streamID = ... | The named properties associated with a specific attachment. | 62598f8be76e3b2f99fd85b9 |
class XmlMapper(DataMapper): <NEW_LINE> <INDENT> content_type = 'text/xml' <NEW_LINE> def __init__(self, numbermode=None): <NEW_LINE> <INDENT> self._numbermode = numbermode <NEW_LINE> <DEDENT> def _parse_data(self, data, charset): <NEW_LINE> <INDENT> builder = TreeBuilder(numbermode=self._numbermode) <NEW_LINE> if isin... | Naïve XML mapper.
This mapper will map basic python constructs into xml and back. For
anything more serious it is recommended that an xml mapper which supports
schemas is implemented.
Notes:
* Element attributes are not supported (i.e. ``<person type="employee">``)
* If an xml element contains subelements that ha... | 62598f8b6aa9bd52df0d4a5e |
class Estimator(APIView): <NEW_LINE> <INDENT> def _save_log(self, log): <NEW_LINE> <INDENT> serializer = LogsSerializer(data=log) <NEW_LINE> if serializer.is_valid(): <NEW_LINE> <INDENT> serializer.save() <NEW_LINE> <DEDENT> <DEDENT> def post(self, request, res_fmt='json'): <NEW_LINE> <INDENT> start = datetime.datetime... | Estimator APIView | 62598f8b3c8af77a43b67cfb |
class MyGame(arcade.Window): <NEW_LINE> <INDENT> def __init__(self, width, height, title): <NEW_LINE> <INDENT> super().__init__(width, height, title) <NEW_LINE> self.background = None <NEW_LINE> self.player_list = None <NEW_LINE> self.player_sprite = None <NEW_LINE> self.left_pressed = False <NEW_LINE> self.right_press... | Main application class. | 62598f8b16aa5153ce40008e |
class Test(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self._probe = probe.probe() <NEW_LINE> self._master = self._probe.scan(1) <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_01(self): <NEW_LINE> <INDENT> self.assertTrue(self._master is no... | Test basic USB to LIN connectivity | 62598f8bfb3f5b602db47f76 |
@dataclass <NEW_LINE> class StrippedStateUnsigned(BaseUnsigned, SerializableAttrs): <NEW_LINE> <INDENT> prev_content: StateEventContent = None <NEW_LINE> prev_sender: UserID = None <NEW_LINE> replaces_state: EventID = None | Unsigned information sent with state events. | 62598f8b23e79379d538c089 |
class ReplyManager(models.Manager): <NEW_LINE> <INDENT> def ger_all_replies_by_topic_id(self, topic_id, num=16, current_page=1): <NEW_LINE> <INDENT> count = self.get_query_set().filter(topic__id=topic_id).count() <NEW_LINE> page = Pages(count, current_page, num) <NEW_LINE> query = self.get_query_set().select_related('a... | Reply objects | 62598f8b94891a1f408b94b4 |
@dataclass(frozen=True) <NEW_LINE> class MagnifierWindowSettings: <NEW_LINE> <INDENT> gridSize: int = 9 <NEW_LINE> textThreeRowsHeightPadding: int = 12 <NEW_LINE> textFourRowsHeightPadding: int = 6 <NEW_LINE> textFontSize: int = 8 <NEW_LINE> class ColorSpaces(Enum): <NEW_LINE> <INDENT> RGB = (0, 'RGB (Red, Green, Blue)... | TODO: document MagnifierWindowSettings | 62598f8bd99f1b3c44d05234 |
class ComputeInstancesResetRequest(messages.Message): <NEW_LINE> <INDENT> instance = messages.StringField(1, required=True) <NEW_LINE> project = messages.StringField(2, required=True) <NEW_LINE> zone = messages.StringField(3, required=True) | A ComputeInstancesResetRequest object.
Fields:
instance: Name of the instance scoping this request.
project: Name of the project scoping this request.
zone: Name of the zone scoping this request. | 62598f8bcad5886f8bdc4e51 |
class ProjectAssignmentCreateView(CreateAPIView): <NEW_LINE> <INDENT> permission_classes = [IsAdminOrReadOnly, IsAuthenticated] <NEW_LINE> serializer_class = ProjectAssignmentUpdateSerializer <NEW_LINE> queryset = ProjectAssignment.objects.all() | Creates new object. Requires the field project: projectID in the body of the request | 62598f8bf7d966606f747b69 |
class Solution(object): <NEW_LINE> <INDENT> def merge(self, nums1, m, nums2, n): <NEW_LINE> <INDENT> while m > 0 and n > 0: <NEW_LINE> <INDENT> if nums1[m - 1] > nums2[n - 1]: <NEW_LINE> <INDENT> nums1[m + n - 1] = nums1[m - 1] <NEW_LINE> m -= 1 <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> nums1[m + n - 1] = nums2[n -... | 算法思路:
由于 nums1 后面有足够的空间,因此可以从最后面比较,把大的放到 num1 的后面
参考了:https://leetcode.com/discuss/8233/this-is-my-ac-code-may-help-you
Time: O(n) | 62598f8b21a7993f00c65b01 |
class MoleculeViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = models.Molecule.objects.all() <NEW_LINE> serializer_class = serializers.MoleculeSerializer | Molecule viewset | 62598f8bd6c5a102081e1cce |
class Rule(models.Model): <NEW_LINE> <INDENT> rule_set = models.ForeignKey("RuleSet", on_delete=models.CASCADE, help_text=_("Rules set identifier")) <NEW_LINE> procedure = models.ForeignKey("Procedure", on_delete=models.CASCADE, help_text=_("Procedure identifier"), db_column='proc_id') <NEW_LINE> exec_order = models.Po... | Assigment of procedures as processing rules | 62598f8b3eb6a72ae038a1bf |
class TickEvent(AbstractTimedEvent): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return "Time: %s, %s %s" % (self.time, self.typename, self.data_event) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_ticker(cls, dt, ticker, bid, ask): <NEW_LINE> <INDENT> return TickEvent(dt, Data({ticker: TickerData... | Handles the event of receiving a new market update tick,
which is defined as a ticker symbol and associated best
bid and ask from the top of the order book. | 62598f8b0383005118f6d286 |
class GreenMap(GreenPile): <NEW_LINE> <INDENT> def __init__ (self, size_or_pool): <NEW_LINE> <INDENT> super(GreenMap, self).__init__(size_or_pool) <NEW_LINE> self.waiters = queue.LightQueue(maxsize = self.pool.size) <NEW_LINE> <DEDENT> def next (self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> val = self.waiters.get... | A GreenMap is identical to GreenPile but it blocks on spawn if the results
aren't consumed, and it doesn't generate its own StopIteration exception,
instead relying on the spawning process to send one in when it's done | 62598f8bb57a9660fecd1608 |
class Experiment(object): <NEW_LINE> <INDENT> def __init__(self, name, run, stop=None, config=None, trial_resources=None, repeat=1, local_dir=None, upload_dir="", checkpoint_freq=0, max_failures=3): <NEW_LINE> <INDENT> spec = { "run": run, "stop": stop or {}, "config": config or {}, "trial_resources": trial_resources o... | Tracks experiment specifications.
Parameters:
name (str): Name of experiment.
run (str): The algorithm or model to train. This may refer to the
name of a built-on algorithm (e.g. RLLib's DQN or PPO), or a
user-defined trainable function or class
registered in the tune registry.
stop... | 62598f8b004d5f362081edbf |
class TestAnonmyousSurvey(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> question = "What language did you first learn to speak?" <NEW_LINE> self.my_survey = AnonymousSurvey(question) <NEW_LINE> self.responses = ['English', 'Spanish', 'Mandarin'] <NEW_LINE> <DEDENT> def test_store_single_r... | Tests for the class AnonymousSurvey. | 62598f8b3cc13d1c6d4652f3 |
class BaseReviewAbstractModel(models.Model): <NEW_LINE> <INDENT> content_type = models.ForeignKey(ContentType, verbose_name=_('content type'), related_name="content_type_set_for_%(class)s") <NEW_LINE> object_pk = models.CharField(_('object ID'), max_length=2000) <NEW_LINE> content_object = generic.GenericForeign... | An abstract base class that any custom review models probably should
subclass. | 62598f8b6fece00bbaccb516 |
class TestInlineResponse2009(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 make_instance(self, include_optional): <NEW_LINE> <INDENT> if include_optional : <NEW_LINE> <INDENT> return InlineRespon... | InlineResponse2009 unit test stubs | 62598f8b26068e7796d4c4e9 |
class itkRescaleIntensityImageFilterIUC2ID2_Superclass(itkInPlaceImageFilterAPython.itkInPlaceImageFilterIUC2ID2): <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 construc... | Proxy of C++ itkRescaleIntensityImageFilterIUC2ID2_Superclass class | 62598f8b507cdc57c63a491a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.