code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class PrivateDnsZoneGroup(SubResource): <NEW_LINE> <INDENT> _validation = { 'etag': {'readonly': True}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'provisioning_state': {'ke... | Private dns zone group resource.
Variables are only populated by the server, and will be ignored when sending a request.
:param id: Resource ID.
:type id: str
:param name: Name of the resource that is unique within a resource group. This name can be used
to access the resource.
:type name: str
:ivar etag: A unique r... | 62598fa1379a373c97d98e6a |
class Version(int): <NEW_LINE> <INDENT> id = 11 <NEW_LINE> size = 4 <NEW_LINE> def serialize(self): <NEW_LINE> <INDENT> assert(struct.calcsize('>i') == self.size) <NEW_LINE> return struct.pack('>i', self) | A serializable 4-byte version number. | 62598fa19c8ee82313040098 |
class ExtensionDescriptor(object): <NEW_LINE> <INDENT> name = None <NEW_LINE> alias = None <NEW_LINE> namespace = None <NEW_LINE> updated = None <NEW_LINE> def __init__(self, ext_mgr): <NEW_LINE> <INDENT> ext_mgr.register(self) <NEW_LINE> self.ext_mgr = ext_mgr <NEW_LINE> <DEDENT> def get_resources(self): <NEW_LINE> <I... | Base class that defines the contract for extensions.
Note that you don't have to derive from this class to have a valid
extension; it is purely a convenience. | 62598fa17d43ff248742732c |
class CardRequest(object): <NEW_LINE> <INDENT> def __init__(self, newcardonly=False, readers=None, cardType=None, cardServiceClass=None, timeout=1): <NEW_LINE> <INDENT> self.pcsccardrequest = PCSCCardRequest(newcardonly, readers, cardType, cardServiceClass, timeout) <NEW_LINE> <DEDENT> def getReaders(self): <NEW_LINE> ... | A CardRequest is used for waitForCard() invocations and specifies what
kind of smart card an application is waited for. | 62598fa1097d151d1a2c0e7e |
class Generator(nn.Module): <NEW_LINE> <INDENT> def __init__(self, z_dim=10, im_chan=1, hidden_dim=64): <NEW_LINE> <INDENT> super(Generator, self).__init__() <NEW_LINE> self.z_dim = z_dim <NEW_LINE> self.gen = nn.Sequential( self.make_gen_block(z_dim, hidden_dim * 4), self.make_gen_block(hidden_dim * 4, hidden_dim * 2,... | Generator Class
Values:
z_dim: the dimension of the noise vector, a scalar
im_chan: the number of channels in the images, fitted for the dataset used, a scalar
(MNIST is black-and-white, so 1 channel is your default)
hidden_dim: the inner dimension, a scalar | 62598fa18da39b475be03033 |
class PixmapCheckWidget(QtWidgets.QWidget): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.path = '' <NEW_LINE> self.data = None <NEW_LINE> self.checked = False <NEW_LINE> self.initUI() <NEW_LINE> <DEDENT> def initUI(self): <NEW_LINE> <INDENT> self.ver_layout = QtWidgets.... | value of this parameter is a dict with checked, data for the pixmap and optionally path in h5 node
| 62598fa1a17c0f6771d5c08f |
class StructureDescription(FrozenClass): <NEW_LINE> <INDENT> ua_types = [ ('DataTypeId', 'NodeId'), ('Name', 'QualifiedName'), ('StructureDefinition', 'StructureDefinition'), ] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.DataTypeId = NodeId() <NEW_LINE> self.Name = QualifiedName() <NEW_LINE> self.StructureD... | :ivar DataTypeId:
:vartype DataTypeId: NodeId
:ivar Name:
:vartype Name: QualifiedName
:ivar StructureDefinition:
:vartype StructureDefinition: StructureDefinition | 62598fa13539df3088ecc109 |
class _Option(object): <NEW_LINE> <INDENT> def __init__(self, kind, required=False, default_factory=None, can_be_none=False): <NEW_LINE> <INDENT> if required and default_factory is not None: <NEW_LINE> <INDENT> raise ValueError("No default_factory value when option is required.") <NEW_LINE> <DEDENT> self.kind = kind <N... | An option for _Config. | 62598fa10c0af96317c561d7 |
class NoteExtension(Extension): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.config = { 'prefix': ['<div>', 'Opening tag(s) which wrap the content'], 'postfix': ['</div>', 'Closing tag(s) which wrap the content'], 'tags': [{}, 'Template context passed into template rendering'], 'template_a... | Renders a block of HTML with a title, svg image, and content to be displayed as a note.
The svg image is rendered using.
Configuration Example:
{
'template_adapter': 'docdown.template_adapters.StringFormatAdapter',
'prefix': ('<div class="{ tag }">'
' <div class="icon">'
' {% ... | 62598fa176e4537e8c3ef408 |
class TestDBWriting(TestCase): <NEW_LINE> <INDENT> @mock.patch('requests.get', autospec=True) <NEW_LINE> def test_hr_sbi(self, response_mock): <NEW_LINE> <INDENT> with open(FIX_DIR + '/fixtures/sbi.json') as mockjson: <NEW_LINE> <INDENT> test_json = json.loads(mockjson.read()) <NEW_LINE> <DEDENT> type(response_mock.ret... | HR and SBI api code
Test writing to database | 62598fa1925a0f43d25e7e92 |
class PycFile(object): <NEW_LINE> <INDENT> def __init__(self, magic, origin, timestamp, file_size, code): <NEW_LINE> <INDENT> self.magic = magic <NEW_LINE> self.origin = origin <NEW_LINE> self.timestamp = timestamp <NEW_LINE> self.file_size = file_size <NEW_LINE> self.code = code | This class describes a parsed .pyc file and is returned by
:func:`pyc_load` and :func:`pyc_loads`. | 62598fa1e1aae11d1e7ce74e |
class _CovarianceFunctionContainer(CovarianceFunction): <NEW_LINE> <INDENT> _cov = None <NEW_LINE> _start_hyp = None <NEW_LINE> @property <NEW_LINE> def cov(self): <NEW_LINE> <INDENT> return self._cov <NEW_LINE> <DEDENT> @property <NEW_LINE> def start_hyp(self): <NEW_LINE> <INDENT> return self._start_hyp <NEW_LINE> <DE... | A container for covariance functions. | 62598fa163d6d428bbee2606 |
class BufWr(UGen): <NEW_LINE> <INDENT> _has_done_flag = True <NEW_LINE> _ordered_input_names = collections.OrderedDict( [("buffer_id", None), ("phase", 0.0), ("loop", 1.0), ("source", None)] ) <NEW_LINE> _unexpanded_input_names = ("source",) <NEW_LINE> _valid_calculation_rates = (CalculationRate.AUDIO, CalculationRate.... | A buffer-writing oscillator.
::
>>> buffer_id = 23
>>> phase = supriya.ugens.Phasor.ar(
... rate=supriya.ugens.BufRateScale.kr(buffer_id),
... start=0,
... stop=supriya.ugens.BufFrames.kr(buffer_id),
... )
>>> source = supriya.ugens.SoundIn.ar(bus=(0, 1))
>>> buf_wr = supri... | 62598fa15f7d997b871f930a |
class LogEntry(object): <NEW_LINE> <INDENT> def __init__(self, raw_entry): <NEW_LINE> <INDENT> self.raw = raw_entry <NEW_LINE> self.lines = self.raw.splitlines() <NEW_LINE> self._first = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def first(self): <NEW_LINE> <INDENT> if self._first is None: <NEW_LINE> <INDENT> self._... | Represents a single entry we read in. | 62598fa107f4c71912baf299 |
class NoActiveTransactionError(Exception): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return 'No active transaction for the request, channel closed' | Raised when a transaction method is issued but the transaction has not
been initiated. | 62598fa18e71fb1e983bb909 |
@admin.register(User) <NEW_LINE> class UserAdmin(UserAdmin): <NEW_LINE> <INDENT> fieldsets = ( (None, {'fields': ('email', 'password')}), (_('Personal info'), {'fields': ('first_name', 'last_name')}), (_('Permissions'), {'fields': ('is_active', 'is_staff', 'is_superuser', 'groups', 'user_permissions')}), (_('Important ... | Define admin model for custom User model with no email field. | 62598fa11f5feb6acb162a78 |
class CanScheduleGame(permissions.BasePermission): <NEW_LINE> <INDENT> NONADMIN_METHODS = [] <NEW_LINE> def _get_game(self, request): <NEW_LINE> <INDENT> parts = request.META['PATH_INFO'].split('/') <NEW_LINE> game_id = int(parts[3]) <NEW_LINE> return models.Game.objects.get(pk=game_id) <NEW_LINE> <DEDENT> def has_perm... | Whether the user can schedule an game.
This is gross, because it parses the PATH_INFO of the
request to get the game id. That's probably bad, but
I don't see a better way to do it. | 62598fa1baa26c4b54d4f105 |
class ApplicationGatewayBackendHealthPool(Model): <NEW_LINE> <INDENT> _attribute_map = { 'backend_address_pool': {'key': 'backendAddressPool', 'type': 'ApplicationGatewayBackendAddressPool'}, 'backend_http_settings_collection': {'key': 'backendHttpSettingsCollection', 'type': '[ApplicationGatewayBackendHealthHttpSettin... | Application gateway BackendHealth pool.
:param backend_address_pool: Reference of an
ApplicationGatewayBackendAddressPool resource.
:type backend_address_pool:
~azure.mgmt.network.v2017_06_01.models.ApplicationGatewayBackendAddressPool
:param backend_http_settings_collection: List of
ApplicationGatewayBackendHealth... | 62598fa1a219f33f346c6670 |
class GetBundle: <NEW_LINE> <INDENT> def __init__(self, url, token): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> self.token = token <NEW_LINE> requests.packages.urllib3.disable_warnings(InsecureRequestWarning) <NEW_LINE> headerauth = {"Authorization":"Bearer " + self.token + ""} <NEW_LINE> bundleurl='https://' + self... | Generate and download a new UCP client bundle | 62598fa1b7558d5895463483 |
class VarGen(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.default = '_Boole' <NEW_LINE> self._name_index = {} <NEW_LINE> <DEDENT> def get_name(self, name=None, free_in=None): <NEW_LINE> <INDENT> if name != None: <NEW_LINE> <INDENT> pad = name <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> pa... | Generate a fresh name according to a dictionary
sending names to a counter. These should never be reset. | 62598fa1be8e80087fbbeeb5 |
class BaseHelper: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_timezone(): <NEW_LINE> <INDENT> from pytz import timezone <NEW_LINE> from os import environ <NEW_LINE> if environ.get('TZ') is not None: <NEW_LINE> <INDENT> return timezone(os.environ['TZ']) <NEW_LINE> <DEDENT> return timezone('Europe/Berlin') <NEW_... | Helper class for logging and config parsing | 62598fa1851cf427c66b811e |
class TaskAttachment(Model): <NEW_LINE> <INDENT> _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'last_changed_by': {'key': 'lastChangedBy', 'type': 'str'}, 'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'}, 'name': {'key': ... | TaskAttachment.
:param _links:
:type _links: :class:`ReferenceLinks <task.v4_1.models.ReferenceLinks>`
:param created_on:
:type created_on: datetime
:param last_changed_by:
:type last_changed_by: str
:param last_changed_on:
:type last_changed_on: datetime
:param name:
:type name: str
:param record_id:
:type record_id:... | 62598fa130bbd722464698a2 |
class Wishlist(ndb.Model): <NEW_LINE> <INDENT> sessionKeys = ndb.KeyProperty(repeated=True) | Wishlist -- Profile session wishlist object | 62598fa1442bda511e95c2b1 |
class SysTrayNotifier(ByComponentNotifier): <NEW_LINE> <INDENT> def __init__(self, icon_name="user-available-symbolic"): <NEW_LINE> <INDENT> super(SysTrayNotifier, self).__init__() <NEW_LINE> import gi <NEW_LINE> gi.require_version('Gtk', '3.0') <NEW_LINE> gi.require_version('AppIndicator3', '0.1') <NEW_LINE> from gi.r... | A notifier which flags in the system tray. | 62598fa1097d151d1a2c0e80 |
class MockTeamsConfigurationService: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.teamset = mock.MagicMock() <NEW_LINE> self.teamset.configure_mock(name=TEAMSET_NAME) <NEW_LINE> <DEDENT> def get_teams_configuration(self, _): <NEW_LINE> <INDENT> return mock.MagicMock( teamsets_by_id={TEAMSET_ID: self... | Fixture class for testing ``TeamMixin``. | 62598fa101c39578d7f12bd5 |
class PosixComplianceStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): <NEW_LINE> <INDENT> INVALID = "Invalid" <NEW_LINE> ENABLED = "Enabled" <NEW_LINE> DISABLED = "Disabled" | If provisioned storage is posix compliant.
| 62598fa17cff6e4e811b587b |
class CompoundExpression(AbstractFunction): <NEW_LINE> <INDENT> __metaclass__ = FillArgSpecMeta <NEW_LINE> kwonlyargs = {} <NEW_LINE> @classmethod <NEW_LINE> def get_compute_func(cls): <NEW_LINE> <INDENT> return cls.build_expr <NEW_LINE> <DEDENT> def as_simple_expr(self, context): <NEW_LINE> <INDENT> args = [as_simple_... | function expression written in terms of other expressions | 62598fa13c8af77a43b67e6b |
class LargeConfig(object): <NEW_LINE> <INDENT> init_scale = 0.04 <NEW_LINE> use_adam = False <NEW_LINE> learning_rate = 1.0 <NEW_LINE> max_grad_norm = 10 <NEW_LINE> num_layers = 2 <NEW_LINE> num_steps = 35 <NEW_LINE> hidden_size = 1500 <NEW_LINE> max_epoch = 14 <NEW_LINE> max_max_epoch = 55 <NEW_LINE> keep_prob = 0.35 ... | Large config. | 62598fa1fbf16365ca793f11 |
class Test(unittest.TestCase): <NEW_LINE> <INDENT> def test_ctor_saves_environ(self): <NEW_LINE> <INDENT> environ = {} <NEW_LINE> service = TestService(environ) <NEW_LINE> self.failUnless(service.environ is environ) <NEW_LINE> <DEDENT> def test_portypes(self): <NEW_LINE> <INDENT> app = Application([TestService], 'tns')... | Most of the service tests are performed through the interop tests. | 62598fa17b25080760ed72ff |
class UserGroup(Base): <NEW_LINE> <INDENT> command_base = 'user-group' <NEW_LINE> @classmethod <NEW_LINE> def add_role(cls, options=None): <NEW_LINE> <INDENT> cls.command_sub = 'add-role' <NEW_LINE> return cls.execute(cls._construct_command(options), output_format='csv') <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def ... | Manipulates Foreman's user group. | 62598fa1009cb60464d0137c |
class TestFloat( 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 testFloat( self ): <NEW_LINE> <INDENT> style = MySubStyle() <NEW_LINE> self.assertEqual( None, MySubStyle.prop.default, msg = "... | Float module. | 62598fa13539df3088ecc10b |
class LobbyistFirm2Cd(CalAccessBaseModel): <NEW_LINE> <INDENT> firm_id = models.IntegerField(db_column='FIRM_ID') <NEW_LINE> session_id = models.IntegerField(db_column='SESSION_ID') <NEW_LINE> firm_name = models.CharField(db_column='FIRM_NAME', max_length=60) <NEW_LINE> current_qtr_amt = models.FloatField(db_column='CU... | This is an undocumented model. | 62598fa166673b3332c3021d |
class RshClient(ExecClient): <NEW_LINE> <INDENT> def __init__(self, node, command, worker, stderr, timeout, autoclose=False, rank=None): <NEW_LINE> <INDENT> ExecClient.__init__(self, node, command, worker, stderr, timeout, autoclose, rank) <NEW_LINE> self.rsh_rc = None <NEW_LINE> <DEDENT> def _build_cmd(self): <NEW_LIN... | Rsh EngineClient. | 62598fa1c432627299fa2e31 |
class IComingSoon(IObjectEvent): <NEW_LINE> <INDENT> pass | Zope Event to be notified when a plone content
refers to a date that is coming soon. | 62598fa18e7ae83300ee8ef7 |
class MachineDiscardError(Exception): <NEW_LINE> <INDENT> pass | Failed to discard saved state of a virtual machine | 62598fa17047854f4633f22e |
class PoolManager(RequestMethods): <NEW_LINE> <INDENT> def __init__(self, num_pools=10, **connection_pool_kw): <NEW_LINE> <INDENT> self.connection_pool_kw = connection_pool_kw <NEW_LINE> self.pools = RecentlyUsedContainer(num_pools) <NEW_LINE> <DEDENT> def connection_from_host(self, host, port=80, scheme='http'): <NEW_... | Allows for arbitrary requests while transparently keeping track of
necessary connection pools for you.
:param num_pools:
Number of connection pools to cache before discarding the least recently
used pool.
:param \**connection_pool_kw:
Additional parameters are used to create fresh
:class:`urllib3.conn... | 62598fa155399d3f05626379 |
class TestAnnonymousSurvey(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 = AnnonymousSurvey(question) <NEW_LINE> self.responses = ['English', 'Mandarin', 'Malay'] <NEW_LINE> <DEDENT> def test_store_single_r... | Tests for the class AnoymousSurvey.py | 62598fa10c0af96317c561d9 |
class ReadonlyText(Text): <NEW_LINE> <INDENT> def __init__(self, *lw, **kw): <NEW_LINE> <INDENT> super(ReadonlyText, self).__init__(*lw, **kw) <NEW_LINE> self.params['readonly']="1" | >>> r=ReadonlyText("label")
>>> r.render("name","value")
u'<label for="name" class="table" >label</label><input name="name" value="value" readonly="1" type="text"/>'
>>> | 62598fa1462c4b4f79dbb863 |
@dataclass <NEW_LINE> class RetornoConsulta: <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> namespace = "http://nfse.blumenau.sc.gov.br" <NEW_LINE> <DEDENT> cabecalho: Optional["RetornoConsulta.Cabecalho"] = field( default=None, metadata={ "name": "Cabecalho", "type": "Element", "namespace": "", "required": True, ... | Schema utilizado para RETORNO de pedidos de consulta de NFS-e/RPS,
consultade NFS-e recebidas e consulta de lote.
Este Schema XML é utilizado pelo Web Service para informar aos
tomadores e/ou prestadores de serviços o resultado de pedidos de
consulta de NFS-e/RPS, consultade NFS-e recebidas e consulta de
lote.
:ivar ... | 62598fa163d6d428bbee2608 |
class CreateServerDump(command.Command): <NEW_LINE> <INDENT> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(CreateServerDump, self).get_parser(prog_name) <NEW_LINE> parser.add_argument( 'server', metavar='<server>', nargs='+', help=_('Server(s) to create dump file (name or ID)'), ) <NEW_LINE> retur... | Create a dump file in server(s)
Trigger crash dump in server(s) with features like kdump in Linux.
It will create a dump file in the server(s) dumping the server(s)'
memory, and also crash the server(s). OSC sees the dump file
(server dump) as a kind of resource.
This command requires ``--os-compute-api-version`` 2.1... | 62598fa199fddb7c1ca62d13 |
class TestingConfig(Config): <NEW_LINE> <INDENT> TESTING = True <NEW_LINE> SQLALCHEMY_DATABASE_URI = os.environ.get('TEST_DATABASE_URL') or 'sqlite:///' + os.path.join(basedir, 'data-test.sqlite') <NEW_LINE> WTF_CSRF_ENABLED = False | 测试环境配置类 | 62598fa1dd821e528d6d8d8c |
class _ProtoFile(object): <NEW_LINE> <INDENT> def __init__(self, path, parser_config): <NEW_LINE> <INDENT> self.path = path <NEW_LINE> self.path_prefix = parser_config.defined_in_prefix <NEW_LINE> self.code_url_prefix = parser_config.code_url_prefix <NEW_LINE> <DEDENT> def is_builtin(self): <NEW_LINE> <INDENT> return F... | This class indicates that the object is defined in a .proto file.
This can be used for the `defined_in` slot of the `PageInfo` objects. | 62598fa1498bea3a75a57978 |
class ReadJavaConfig: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.root_dir = ReadConfig().get_file_path("dto_file_path") <NEW_LINE> <DEDENT> def get_filename(self): <NEW_LINE> <INDENT> java_f_list = [] <NEW_LINE> f_list = os.listdir(self.root_dir) <NEW_LINE> for i in f_list: <NEW_LINE> <INDENT> if ... | :读取JAVA配置类 | 62598fa1ac7a0e7691f72363 |
class IdentityPaged(Paged): <NEW_LINE> <INDENT> _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, 'current_page': {'key': 'value', 'type': '[Identity]'} } <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(IdentityPaged, self).__init__(*args, **kwargs) | A paging container for iterating over a list of :class:`Identity <azure.mgmt.msi.models.Identity>` object | 62598fa1796e427e5384e5eb |
class LoginPageLocator(object): <NEW_LINE> <INDENT> USERNAME = (By.ID, 'email') <NEW_LINE> PASSWORD = (By.ID, 'pass') <NEW_LINE> LOGIN_BTN = (By.ID, 'send2') | Class for login page locators, all page locators should come here | 62598fa1379a373c97d98e6f |
class About(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.window = gtk.AboutDialog() <NEW_LINE> self.window.connect('response', self.on_aboutdialog_response) <NEW_LINE> self.window.set_program_name('GNU MyServer Control') <NEW_LINE> self.window.set_icon_list(logo) <NEW_LINE> self.window.set_versio... | GNU MyServer Control about window. | 62598fa1097d151d1a2c0e82 |
class PizzaSerializer(UpdateSerializerMixin,serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Pizza <NEW_LINE> fields = ( 'id', 'name', ) <NEW_LINE> read_only_fields = ( 'id', ) | Serializer to be used by :model:`product.Pizza` | 62598fa101c39578d7f12bd7 |
class FDAcategoryDSchema(SchemaObject): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.schema = 'FDAcategoryD' | Schema Mixin for FDAcategoryD
Usage: place after django model in class definition, schema will return the schema.org url for the object
A designation by the US FDA signifying that there is positive evidence of human fetal risk based on adverse reaction data from investigational or marketing experience or studies in hum... | 62598fa14e4d56256637227c |
class Log(_BaseExpr): <NEW_LINE> <INDENT> _op = _ExprOp.LOG <NEW_LINE> def __init__(self, num: 'TypeFloat', base: 'TypeFloat'): <NEW_LINE> <INDENT> self._children = (num, base) | Create "log" operator for logarithm of "num" with base "base".
All arguments must resolve to floats.
Requires server version 5.6.0+. | 62598fa1009cb60464d0137e |
class Detectors(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.detector= MTCNN() <NEW_LINE> <DEDENT> def Detect(self, frame): <NEW_LINE> <INDENT> centers = [] <NEW_LINE> faces = self.detector.detect_faces(frame) <NEW_LINE> for result in faces: <NEW_LINE> <INDENT> x,y,width,height = result['bo... | Detectors class to detect objects in video frame
Attributes:
None | 62598fa166673b3332c3021f |
class Fibonacci_Result(metaclass=Metaclass_Fibonacci_Result): <NEW_LINE> <INDENT> __slots__ = [ '_sequence', ] <NEW_LINE> _fields_and_field_types = { 'sequence': 'sequence<int32>', } <NEW_LINE> SLOT_TYPES = ( rosidl_parser.definition.UnboundedSequence(rosidl_parser.definition.BasicType('int32')), ) <NEW_LINE> def __ini... | Message class 'Fibonacci_Result'. | 62598fa1097d151d1a2c0e83 |
class Channel: <NEW_LINE> <INDENT> def __init__(self, connection, serializer=StringSerializer()): <NEW_LINE> <INDENT> self.core = Core( connection=connection, serializer=serializer, ) <NEW_LINE> <DEDENT> def subscribe(self, name, topic): <NEW_LINE> <INDENT> return Subscription( self.core, name, topic ) <NEW_LINE> <DEDE... | This is the main API interface provided for interacting with nervix servers.
An instance of this class can be obtained by calling the create_channel() function. Which
is the easiest way, this will also set up the mainloop for you. Alternatively one can call the
constructor directly with a Connection instance as it's f... | 62598fa191af0d3eaad39c65 |
class ModuleDependency(ModelSQL, ModelView): <NEW_LINE> <INDENT> __name__ = "ir.module.dependency" <NEW_LINE> name = fields.Char('Name') <NEW_LINE> module = fields.Many2One('ir.module', 'Module', select=True, ondelete='CASCADE', required=True) <NEW_LINE> state = fields.Function(fields.Selection([ ('uninstalled', 'Not I... | Module dependency | 62598fa10c0af96317c561db |
class RootViaSudoExecutionController( CheckBoxDifferentialExecutionController): <NEW_LINE> <INDENT> def __init__(self, provider_list): <NEW_LINE> <INDENT> super().__init__(provider_list) <NEW_LINE> try: <NEW_LINE> <INDENT> in_sudo_group = grp.getgrnam("sudo").gr_gid in posix.getgroups() <NEW_LINE> <DEDENT> except KeyEr... | Execution controller that gains root by using sudo.
This controller should be used for jobs that need root but cannot be
executed by the plainbox-trusted-launcher-1.
This happens whenever the job is not in the system-wide provider location.
In practice it is used when working with the special
'checkbox-in-source-tree... | 62598fa1925a0f43d25e7e96 |
class NotRecordedError(ExtractorError): <NEW_LINE> <INDENT> pass | Exception to be raised when trying to get something that wasn't recorded | 62598fa12c8b7c6e89bd361f |
class ChildPopulation: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def roulette(pop, evaluated_pop): <NEW_LINE> <INDENT> new_pop = [] <NEW_LINE> total = np.sum(evaluated_pop) <NEW_LINE> list_pom = [] <NEW_LINE> n = 0 <NEW_LINE> for i in evaluated_pop: <NEW_LINE> <INDENT> list_pom.append(i / total) <NEW_LINE> <DEDENT> ... | Selection, cross, mutation | 62598fa1498bea3a75a5797a |
class MeasurementLikwidPower(Measurement): <NEW_LINE> <INDENT> def __init__(self,confFile): <NEW_LINE> <INDENT> super().__init__(confFile) <NEW_LINE> <DEDENT> def init(self): <NEW_LINE> <INDENT> super().init() <NEW_LINE> self.timeToMeasure = self.tryGetIntValue('time_to_measure') <NEW_LINE> <DEDENT> def measure(self): ... | classdocs | 62598fa1442bda511e95c2b4 |
class UserRegistrationForm(UserCreationForm): <NEW_LINE> <INDENT> password1 = forms.CharField(label="Password",widget=forms.PasswordInput) <NEW_LINE> password2 = forms.CharField( label="Password Confirmation", widget=forms.PasswordInput) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = MyUser <NEW_LINE> fields = ['em... | Form used to register a new user | 62598fa1379a373c97d98e70 |
class FscSensorBase(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> if 'name' in kwargs: <NEW_LINE> <INDENT> self.name = kwargs['name'] <NEW_LINE> <DEDENT> if 'read_source' in kwargs: <NEW_LINE> <INDENT> self.read_source = kwargs['read_source'] <NEW_LINE> <DEDENT> if 'write_source' in kwa... | Fsc sensor base class | 62598fa116aa5153ce40035a |
@estimate_engine.register('EFPA') <NEW_LINE> class efpa(estimate_engine.estimate_engine): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Run(Q, x, epsilon): <NEW_LINE> <INDENT> return EFPA.EFPA(x, 1, epsilon) | Estimate engine with the EFPA algorithm. | 62598fa1796e427e5384e5ed |
class ESContentSearchResponse(ContentSearchResponse): <NEW_LINE> <INDENT> def __init__(self, search: Search, response: Response) -> None: <NEW_LINE> <INDENT> self._response = response <NEW_LINE> self._search = search <NEW_LINE> total_hits = self._response["hits"]["total"]["value"] <NEW_LINE> is_total_hit_accurate = sel... | Response of search using LibSearch
This is both an seriable content and a Custom Response object
for elasticsearch search | 62598fa18e7ae83300ee8efa |
class ShaResNet(HybridBlock): <NEW_LINE> <INDENT> def __init__(self, channels, init_block_channels, bottleneck, conv1_stride, bn_use_global_stats=False, in_channels=3, in_size=(224, 224), classes=1000, **kwargs): <NEW_LINE> <INDENT> super(ShaResNet, self).__init__(**kwargs) <NEW_LINE> self.in_size = in_size <NEW_LINE> ... | ShaResNet model from 'ShaResNet: reducing residual network parameter number by sharing weights,'
https://arxiv.org/abs/1702.08782.
Parameters:
----------
channels : list of list of int
Number of output channels for each unit.
init_block_channels : int
Number of output channels for the initial unit.
bottleneck ... | 62598fa1097d151d1a2c0e84 |
class TestQuandl(unittest.TestCase): <NEW_LINE> <INDENT> @requests_mock.mock() <NEW_LINE> def test_current_rate(self, request_mock): <NEW_LINE> <INDENT> address = quandl.URL + "/datasets/USTREASURY/YIELD.json?api_key{0}".format( quandl.API_KEY ) <NEW_LINE> request_mock.get( address, status_code=200, json={ "dataset": {... | Quandl test class. | 62598fa1f7d966606f747e3c |
class C2dMeanSummaryStatistic(__MeanInnerSummaryStatistic__, Asymmetry): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> __MeanInnerSummaryStatistic__.__init__(self, 'C2d') <NEW_LINE> <DEDENT> @property <NEW_LINE> def statistics_dependence(self): <NEW_LINE> <INDENT> return [C2dStatistic] | summary mean statistic for C2d | 62598fa1435de62698e9bc4e |
class CookieMiddleware(MiddlewareMixin): <NEW_LINE> <INDENT> def process_request(self, request): <NEW_LINE> <INDENT> if request.META['PATH_INFO'] == reverse('account_logout') and request.method == 'POST': <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> request.user.auth_token.delete() <NEW_LINE> <DEDENT> except (Attribute... | Set cookie in response -
1. set auth_token from AUTHORIZATION request header,
see apps.users.authentication.CookieAuthentication
2. set extra cookie variables
Delete "auth_token" when django logout | 62598fa13c8af77a43b67e6d |
class VNFAppMonitor(object): <NEW_LINE> <INDENT> OPTS = [ cfg.ListOpt( 'app_monitor_driver', default=['zabbix'], help=_('App monitoring driver to communicate with ' 'Hosting VNF/logical service ' 'instance tacker plugin will use')), ] <NEW_LINE> cfg.CONF.register_opts(OPTS, 'tacker') <NEW_LINE> def __init__(self): <NEW... | VNF App monitor | 62598fa145492302aabfc32b |
class BaseProductExports: <NEW_LINE> <INDENT> def __init__(self, exports): <NEW_LINE> <INDENT> self.exports = sorted([self.export_class(**_) for _ in exports]) <NEW_LINE> self.export_IDs = {export.export_ID: export for export in self.exports} <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> for _ in self.exp... | Container for product exports. | 62598fa17cff6e4e811b587f |
class _ProtoJsonApiTools(protojson.ProtoJson): <NEW_LINE> <INDENT> _INSTANCE = None <NEW_LINE> @classmethod <NEW_LINE> def Get(cls): <NEW_LINE> <INDENT> if cls._INSTANCE is None: <NEW_LINE> <INDENT> cls._INSTANCE = cls() <NEW_LINE> <DEDENT> return cls._INSTANCE <NEW_LINE> <DEDENT> def decode_message(self, message_type,... | JSON encoder used by apitools clients. | 62598fa14a966d76dd5eed3c |
class _SealedRelatedQuerySet(QuerySet): <NEW_LINE> <INDENT> def _clone(self, *args, **kwargs): <NEW_LINE> <INDENT> clone = super()._clone(*args, **kwargs) <NEW_LINE> clone.__class__ = self._unsealed_class <NEW_LINE> return clone <NEW_LINE> <DEDENT> def __getitem__(self, item): <NEW_LINE> <INDENT> if self._result_cache ... | QuerySet that prevents any fetching from taking place on its current form.
As soon as the query is cloned it gets unsealed. | 62598fa1009cb60464d0137f |
class SameInputLayer(Layer): <NEW_LINE> <INDENT> def __init__(self, nodes, dtype=None): <NEW_LINE> <INDENT> self.nodes = nodes <NEW_LINE> dtype = self._check_props(dtype) <NEW_LINE> input_dim = self.nodes[0].input_dim <NEW_LINE> for node in self.nodes: <NEW_LINE> <INDENT> if not node.input_dim == input_dim: <NEW_LINE> ... | SameInputLayer is a layer were all nodes receive the full input.
So instead of splitting the input according to node dimensions, all nodes
receive the complete input data. | 62598fa1adb09d7d5dc0a3e4 |
class triSubEnum(treedict.Tree_dict): <NEW_LINE> <INDENT> def __init__(self, lowbit, bitcount, enumClass, **kwargs): <NEW_LINE> <INDENT> bitmask=2**bitcount-1 <NEW_LINE> self.lowbit=lowbit <NEW_LINE> self.bitmask=bitmask << lowbit <NEW_LINE> self.enumClass=enumClass <NEW_LINE> super().__init__(**kwargs) <NEW_LINE> <DED... | a class for an enumeration that is a few bits somewhere in the register.
The register field is effectively an int, but since each value has a unique meaning, this
allows meaninful names to be used. | 62598fa1d58c6744b42dc200 |
class PootleUserManager(UserManager): <NEW_LINE> <INDENT> def get_default_user(self): <NEW_LINE> <INDENT> return super(PootleUserManager, self).get_query_set().select_related(depth=1).get(username='default') <NEW_LINE> <DEDENT> def get_nobody_user(self): <NEW_LINE> <INDENT> return super(PootleUserManager, self).get_que... | A manager class which is meant to replace the manager class for the User model. This manager
hides the 'nobody' and 'default' users for normal queries, since they are special users. Code
that needs access to these users should use the methods get_default_user and get_nobody_user. | 62598fa1009cb60464d01380 |
class JSONRPCResponseManager(object): <NEW_LINE> <INDENT> RESPONSE_CLASS_MAP = { "1.0": JSONRPC10Response, "2.0": JSONRPC20Response, } <NEW_LINE> @classmethod <NEW_LINE> def handle(cls, request_str, dispatcher): <NEW_LINE> <INDENT> if isinstance(request_str, bytes): <NEW_LINE> <INDENT> request_str = request_str.decode(... | JSON-RPC response manager.
Method brings syntactic sugar into library. Given dispatcher it handles
request (both single and batch) and handles errors.
Request could be handled in parallel, it is server responsibility.
:param str request_str: json string. Will be converted into
JSONRPC20Request, JSONRPC20BatchRequ... | 62598fa199cbb53fe6830d2e |
class MaxPooling3D(_Pooling3D): <NEW_LINE> <INDENT> def __init__(self, pool_size=(2, 2, 2), strides=None, border_mode='valid', dim_ordering=K.image_dim_ordering(), **kwargs): <NEW_LINE> <INDENT> if K._BACKEND != 'theano': <NEW_LINE> <INDENT> raise Exception(self.__class__.__name__ + ' is currently only working with The... | Max pooling operation for 3D data (spatial or spatio-temporal).
Note: this layer will only work with Theano for the time being.
# Arguments
pool_size: tuple of 3 integers,
factors by which to downscale (dim1, dim2, dim3).
(2, 2, 2) will halve the size of the 3D input in each dimension.
strides... | 62598fa167a9b606de545e25 |
class ILocationReference(ISheet): <NEW_LINE> <INDENT> pass | Marker interface for the location reference sheet. | 62598fa1cc0a2c111447ae69 |
class Plan(Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'publisher': {'key': 'publisher', 'type': 'str'}, 'product': {'key': 'product', 'type': 'str'}, 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, 'version': {'key': 'version', 'type': 'str'}, } <NEW_LINE> def __in... | Plan for the resource.
:param name: The plan ID.
:type name: str
:param publisher: The publisher ID.
:type publisher: str
:param product: The offer ID.
:type product: str
:param promotion_code: The promotion code.
:type promotion_code: str
:param version: The plan's version.
:type version: str | 62598fa1d486a94d0ba2be32 |
class ListFirewallsResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None) <NEW_LINE> <DEDENT> def get_NewAccessToken(self): <NEW_LINE> <INDENT> return... | A ResultSet with methods tailored to the values returned by the ListFirewalls Choreo.
The ResultSet object is used to retrieve the results of a Choreo execution. | 62598fa110dbd63aa1c70a0a |
class TwoLayerNet(object): <NEW_LINE> <INDENT> def __init__(self, input_dim=3 * 32 * 32, hidden_dim=100, num_classes=10, weight_scale=1e-3, reg=0.0): <NEW_LINE> <INDENT> self.params = {} <NEW_LINE> self.reg = reg <NEW_LINE> if weight_scale: <NEW_LINE> <INDENT> self.params['W1'] = np.random.randn(input_dim, hidden_dim) ... | A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dimension
of D, a hidden dimension of H, and perform classification over C classes.
The architecure should be affine - relu - affine - softmax.
Note that this class does not implemen... | 62598fa15f7d997b871f930d |
class SocketCreateResponsePacket(XBeeAPIPacket): <NEW_LINE> <INDENT> __MIN_PACKET_LENGTH = 8 <NEW_LINE> def __init__(self, frame_id, socket_id, status, op_mode=OperatingMode.API_MODE): <NEW_LINE> <INDENT> if frame_id < 0 or frame_id > 255: <NEW_LINE> <INDENT> raise ValueError("Frame ID must be between 0 and 255") <NEW_... | This class represents a Socket Create Response packet. Packet is built using
the parameters of the constructor.
The device sends this frame in response to a Socket Create (0x40) frame. It
contains a socket ID that should be used for future transactions with the
socket and a status field.
If the status field is non-ze... | 62598fa17d847024c075c221 |
class OutputFilenameComponent(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def can_get_wav_file_name(nameLists: Tuple[List[str], Dict[int, str]]) -> bool: <NEW_LINE> <INDENT> wavFileNames = nameLists[0] <NEW_LINE> filenames = nameLists[1] <NEW_LINE> if len(wavFileNames) > len(filenames): <NEW_LINE> <INDENT> re... | docstring | 62598fa167a9b606de545e26 |
class FactoryScriptBase(FactoryProcess): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> default_timeout = kwargs.pop("default_timeout", None) <NEW_LINE> super().__init__(*args, **kwargs) <NEW_LINE> if default_timeout is None: <NEW_LINE> <INDENT> if not sys.platform.startswith(("win", "darw... | Base class for CLI scripts | 62598fa17d847024c075c222 |
class Pronoun(Nominal): <NEW_LINE> <INDENT> __tablename__ = None <NEW_LINE> __mapper_args__ = {'polymorphic_identity': Tag.PRONOUN} | A complete form. This partially corresponds to Panini's **sarvanāman**:
1.1.26 "sarva" etc. are called `sarvanāman`.
However, adjectival words like "sarva" and "eka" are stored as adjectives. | 62598fa130bbd722464698a5 |
class TestUBInt64(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.ubint64 = basic_types.UBInt64() <NEW_LINE> <DEDENT> def test_get_size(self): <NEW_LINE> <INDENT> self.assertEqual(self.ubint64.get_size(), 8) | Test of UBInt64 BasicType. | 62598fa13c8af77a43b67e6e |
class ROCIFField(RegexField): <NEW_LINE> <INDENT> default_error_messages = { 'invalid': _("Enter a valid CIF."), } <NEW_LINE> def __init__(self, max_length=10, min_length=2, *args, **kwargs): <NEW_LINE> <INDENT> super(ROCIFField, self).__init__(r'^(RO)?[0-9]{2,10}', max_length, min_length, *args, **kwargs) <NEW_LINE> <... | A Romanian fiscal identity code (CIF) field
For CIF validation algorithm see http://www.validari.ro/cui.html | 62598fa1d6c5a102081e1fa3 |
class Baz_base(Baz_abstract): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.v_base = 8 <NEW_LINE> self.p_base = 9 <NEW_LINE> dic = self.__dict__ <NEW_LINE> print('Baz_base id(__dict__) = {:x}'.format(id(dic))) <NEW_LINE> print('Baz_base.__dict__ =', Baz_base.__dict__) <N... | help for Baz_base | 62598fa1435de62698e9bc50 |
class FilterBankLeftRightImagery(FilterBank): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> if 'events' in kwargs.keys(): <NEW_LINE> <INDENT> raise(ValueError('LeftRightImagery dont accept events')) <NEW_LINE> <DEDENT> super().__init__(events=['left_hand', 'right_hand'], **kwargs) <NEW_LINE> <DE... | Filter Bank Motor Imagery for left hand/right hand classification
Metric is 'roc_auc' | 62598fa17b25080760ed7305 |
class Const: <NEW_LINE> <INDENT> LIMIT_SIZE_WEIGHT = 50.0 <NEW_LINE> GRID_EMPTY_TUPLE = (-1, -1) <NEW_LINE> FILE_NAMES = ("a_example", "b_short_walk", "c_going_green", "d_wide_selection", "e_precise_fit", "f_different_footprints", "g_test_ulysse", "h_test_pierre") <NEW_LINE> THRESH_TIME_PRINT = 0.1 <NEW_LINE> SAFE_DIST... | Classe regroupant les constantes utiles de chaque module
pour l'importer depuis un sous-package, il faut écrire ces lignes en début de module :
import sys
import os
sys.path.insert(0, "/".join(os.path.dirname(os.path.abspath(__file__)).split("/")[:-2]) + "/")
from src.constants import Const | 62598fa14e4d562566372280 |
class ApplicationGatewayCustomError(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'status_code': {'key': 'statusCode', 'type': 'str'}, 'custom_error_page_url': {'key': 'customErrorPageUrl', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(ApplicationGatewayCus... | Customer error of an application gateway.
:param status_code: Status code of the application gateway customer error. Possible values
include: "HttpStatus403", "HttpStatus502".
:type status_code: str or
~azure.mgmt.network.v2020_06_01.models.ApplicationGatewayCustomErrorStatusCode
:param custom_error_page_url: Error ... | 62598fa1dd821e528d6d8d91 |
class TencentCloudSDKException(Exception): <NEW_LINE> <INDENT> def __init__(self, code=None, message=None, requestId=None): <NEW_LINE> <INDENT> self.code = code <NEW_LINE> self.message = message <NEW_LINE> self.requestId = requestId <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "[TencentCloudSDKExce... | tencentcloudapi sdk 异常类 | 62598fa16fb2d068a7693d63 |
class Debuff_acid_explosion(Effect): <NEW_LINE> <INDENT> def __init__(self, client, ctx, carrier, team_a, team_b): <NEW_LINE> <INDENT> Effect.__init__( self, client, ctx, carrier, team_a, team_b ) <NEW_LINE> self.name = "Acid explosion" <NEW_LINE> self.icon = self.game_icon['effect']['acid_explosion'] <NEW_LINE> self.i... | Represents the acid_explosion debuff. | 62598fa13539df3088ecc111 |
class ConsistentHashRing(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._keys = [] <NEW_LINE> self._nodes = {} <NEW_LINE> <DEDENT> def _hash(self, key): <NEW_LINE> <INDENT> return long(md5.md5(key).hexdigest(), 16) <NEW_LINE> <DEDENT> def __setitem__(self, nodename, node): <NEW_LINE> <INDENT>... | Implement a consistent hashing ring. | 62598fa10a50d4780f705237 |
class Infinity(Benchmark): <NEW_LINE> <INDENT> def __init__(self, dimensions=2): <NEW_LINE> <INDENT> Benchmark.__init__(self, dimensions) <NEW_LINE> self._bounds = zip([-1.0] * self.N, [1.0] * self.N) <NEW_LINE> self.global_optimum = [[1e-16 for _ in range(self.N)]] <NEW_LINE> self.fglob = 0.0 <NEW_LINE> self.change_di... | Infinity objective function.
This class defines the Infinity [1]_ global optimization problem. This
is a multimodal minimization problem defined as follows:
.. math::
f_{\text{Infinity}}(x) = \sum_{i=1}^{n} x_i^{6}
\left [ \sin\left ( \frac{1}{x_i} \right ) + 2 \right ]
Here, :math:`n` represents the numb... | 62598fa199cbb53fe6830d30 |
class ImageFileCreateEntry(Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'contents': {'key': 'contents', 'type': 'bytearray'}, 'tag_ids': {'key': 'tagIds', 'type': '[str]'}, 'regions': {'key': 'regions', 'type': '[Region]'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> ... | ImageFileCreateEntry.
:param name:
:type name: str
:param contents:
:type contents: bytearray
:param tag_ids:
:type tag_ids: list[str]
:param regions:
:type regions:
list[~azure.cognitiveservices.vision.customvision.training.models.Region] | 62598fa1c432627299fa2e37 |
class TimeSeries(BaseRef): <NEW_LINE> <INDENT> def __init__(self, sec_name=None, vecs=None, detail=None): <NEW_LINE> <INDENT> BaseRef.__init__(self) <NEW_LINE> self.sec_name = sec_name <NEW_LINE> self.vecs = vecs <NEW_LINE> self.detail = detail | Extend the classic VecRef from Neuronvisio to allocate
the biochemical results. | 62598fa11f037a2d8b9e3f45 |
class Statistic(Base): <NEW_LINE> <INDENT> __tablename__ = "pytwb_statistics" <NEW_LINE> statistic_id = Column(BigInteger, primary_key=True, autoincrement=True) <NEW_LINE> statistic_friends_count = Column(Integer, nullable=False, default=0) <NEW_LINE> statistic_followers_count = Column(Integer, nullable=False, default=... | Bot's statistics | 62598fa1e5267d203ee6b76a |
class CourseOutlineSubsection(CourseOutlineContainer, CourseOutlineChild): <NEW_LINE> <INDENT> url = None <NEW_LINE> BODY_SELECTOR = '.outline-subsection' <NEW_LINE> NAME_SELECTOR = '.subsection-title' <NEW_LINE> NAME_FIELD_WRAPPER_SELECTOR = '.subsection-header .wrapper-xblock-field' <NEW_LINE> CHILD_CLASS = CourseOut... | :class`.PageObject` that wraps a subsection block on the Studio Course Outline page. | 62598fa15166f23b2e243233 |
class mean_filter(PluginFunction): <NEW_LINE> <INDENT> category = "Binarization/RegionInformation" <NEW_LINE> return_type = ImageType([FLOAT], "output") <NEW_LINE> self_type = ImageType([GREYSCALE,GREY16,FLOAT]) <NEW_LINE> args = Args([Int("region size", default=5)]) <NEW_LINE> doc_examples = [(GREYSCALE,), (GREY16,), ... | Returns the regional mean of an image as a FLOAT.
*region_size*
The size of the region in which to calculate a mean. | 62598fa1fff4ab517ebcd64b |
class TldLegalAgreement(Model): <NEW_LINE> <INDENT> _validation = { 'agreement_key': {'required': True}, 'title': {'required': True}, 'content': {'required': True}, } <NEW_LINE> _attribute_map = { 'agreement_key': {'key': 'agreementKey', 'type': 'str'}, 'title': {'key': 'title', 'type': 'str'}, 'content': {'key': 'cont... | Legal agreement for a top level domain.
:param agreement_key: Unique identifier for the agreement.
:type agreement_key: str
:param title: Agreement title.
:type title: str
:param content: Agreement details.
:type content: str
:param url: URL where a copy of the agreement details is hosted.
:type url: str | 62598fa1ac7a0e7691f72368 |
class InvoiceItem(Domain): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def create(params, *auth_args): <NEW_LINE> <INDENT> return PaymentsApi.create("invoiceItem", auth_args, params) <NEW_LINE> <DEDENT> def delete(self, *auth_args): <NEW_LINE> <INDENT> return PaymentsApi.delete("invoiceItem", auth_args, self.object_id... | A InvoiceItem object. | 62598fa1bd1bec0571e14ff2 |
class GLgetPlayersInLobby_result: <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT,(GLPlayer, GLPlayer.thrift_spec)), None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__... | Attributes:
- success | 62598fa14f88993c371f0438 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.