code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class Cursor(object): <NEW_LINE> <INDENT> def __init__(self, image, hotspot=(0,0)): <NEW_LINE> <INDENT> self.enabled = 0 <NEW_LINE> self.image = None <NEW_LINE> self.shadow = None <NEW_LINE> self.hotspot = hotspot <NEW_LINE> self.bg = None <NEW_LINE> self.offset = 0,0 <NEW_LINE> self.old_pos = 0,0 <NEW_LINE> se...
Cursor base class that has a shadow and flips while moving
62598edb435de62698e9a308
class JSONDataExporter(object): <NEW_LINE> <INDENT> def __init__(self, data, filename): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.filename = filename <NEW_LINE> <DEDENT> def _get_initial_response(self, mimetype="application/json"): <NEW_LINE> <INDENT> response_kwargs = {} <NEW_LINE> if DJANGO_GTE_1_7: <NEW_L...
Exporting the data into JSON.
62598edb0a50d4780f7038d9
class CustomDjangoAuthorization(DjangoAuthorization): <NEW_LINE> <INDENT> def read_list(self, object_list, bundle): <NEW_LINE> <INDENT> klass = self.base_checks(bundle.request, object_list.model) <NEW_LINE> if klass is False: <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> return object_list <NEW_LINE> <DEDENT> def r...
Custom class which gives non-administrative users read access. This reverts a breaking change to user permissions introduced in django-tastypie 0.13.2, which requires users to have "change" permissions to read resource lists and details: https://django-tastypie.readthedocs.io/en/latest/release_notes/v0.13.2.html
62598edb7047854f4633d915
class MedicinalProductSpecialDesignation(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = "MedicinalProductSpecialDesignation" <NEW_LINE> def __init__(self, jsondict=None, strict=True, **kwargs): <NEW_LINE> <INDENT> self.date = None <NEW_LINE> self.identifier = None <NEW_LINE> self.indicationCodeab...
Indicates if the medicinal product has an orphan designation for the treatment of a rare disease.
62598edb30dc7b766599ddba
class PageCollection(object): <NEW_LINE> <INDENT> def __init__(self, pages=[]): <NEW_LINE> <INDENT> self.pages = pages <NEW_LINE> self.page_stack = [] <NEW_LINE> self.__cur_index = 0 <NEW_LINE> <DEDENT> def current(self): <NEW_LINE> <INDENT> return self.pages[self.__cur_index] <NEW_LINE> <DEDENT> def __checkPage(self):...
A collection of pages which contains support for extension points.
62598edbb5575c28eb711f6a
class ConditionalBijector(bijector.Bijector): <NEW_LINE> <INDENT> @distribution_util.AppendDocstring(kwargs_dict={ "**condition_kwargs": "Named arguments forwarded to subclass implementation."}) <NEW_LINE> def forward(self, x, name="forward", **condition_kwargs): <NEW_LINE> <INDENT> return self._call_forward(x, name, *...
Conditional Bijector is a Bijector that allows intrinsic conditioning.
62598edb7d847024c075a903
class PrimaryElementList(ElementList): <NEW_LINE> <INDENT> def __init__(self, elements): <NEW_LINE> <INDENT> self._get_primary(elements) <NEW_LINE> ElementList.__init__(self, elements) <NEW_LINE> <DEDENT> def add(self, element): <NEW_LINE> <INDENT> if not isinstance(element, PrimaryElement): <NEW_LINE> <INDENT> raise U...
Hold a list of Element instance. Provide methods to add, update and remove elements from the list while maintaining some governing principles, such as ensuring there is exactly one primary element in the list (except if the list is empty or there are no confirmed elements). :param elements: List of elements :type ele...
62598edb8a43f66fc4bf06a4
class DescribeAssetAppProcessListRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Quuid = None <NEW_LINE> self.Uuid = None <NEW_LINE> self.Name = None <NEW_LINE> self.Offset = None <NEW_LINE> self.Limit = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT...
DescribeAssetAppProcessList请求参数结构体
62598edb462c4b4f79db9f2b
class UserRelationshipType(alchemyDB.Model) : <NEW_LINE> <INDENT> __tablename__ = 'user_relationship_type' <NEW_LINE> id = alchemyDB.Column(alchemyDB.Integer, primary_key = True) <NEW_LINE> name = alchemyDB.Column(alchemyDB.String(64), unique = True) <NEW_LINE> default = alchemyDB.Column(alchemyDB.Boolean, default = Fa...
Defines types of user interactions.
62598edb3617ad0b5ee0465f
class ImageWidget(ClearableFileInput): <NEW_LINE> <INDENT> template_with_initial = u'%(clear_template)s %(input)s' <NEW_LINE> template_with_clear = u'%(clear)s <label style="width:auto" for="%(clear_checkbox_id)s">%(clear_checkbox_label)s</label>' <NEW_LINE> def render(self, name, value, attrs=None): <NEW_LINE> <INDENT...
An ImageField Widget that shows a thumbnail for and link to the current image.
62598edb7cff6e4e811b3f21
class ModelAdminOml(admin.ModelAdmin): <NEW_LINE> <INDENT> def save_form(self, request, form, change): <NEW_LINE> <INDENT> form = super(ModelAdminOml, self).save_form(request, form, change) <NEW_LINE> form.save_form_log_moderated() <NEW_LINE> form.define_status_of_object(request.user) <NEW_LINE> return form
Extension of ModelAdmin
62598edb7d43ff2487426695
class AD_OverlayPlugin(epics.Device): <NEW_LINE> <INDENT> attrs = ('Name', 'Name_RBV', 'Use', 'Use_RBV', 'PositionX', 'PositionX_RBV', 'PositionY', 'PositionY_RBV', 'PositionXLink', 'PositionYLink', 'SizeXLink', 'SizeYLink', 'SizeX', 'SizeX_RBV', 'SizeY', 'SizeY_RBV', 'Shape', 'Shape_RBV', 'DrawMode', 'DrawMode_RBV', '...
AreaDetector Overlay Plugin
62598edbd53ae8145f9169bd
class GetAllOffices(Resource): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def get(self): <NEW_LINE> <INDENT> if not offices_list: <NEW_LINE> <INDENT> return {'Message': 'No office registered in the system yet'}, 404 <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return {'Message': 'The following include office register...
docstring for GetAllOffices.
62598edb76e4537e8c3edaf4
class ToonGasMeterDeviceEntity(ToonEntity): <NEW_LINE> <INDENT> @property <NEW_LINE> def device_info(self) -> Dict[str, Any]: <NEW_LINE> <INDENT> agreement_id = self.coordinator.data.agreement.agreement_id <NEW_LINE> return { "name": "Gas Meter", "identifiers": {(DOMAIN, agreement_id, "gas")}, "via_device": (DOMAIN, ag...
Defines a Gas Meter device entity.
62598edbcc0a2c1114479535
class XInterface: <NEW_LINE> <INDENT> def __init__ (self, conn): <NEW_LINE> <INDENT> self.conn = conn <NEW_LINE> self.atoms = {} <NEW_LINE> <DEDENT> def atom (self, name): <NEW_LINE> <INDENT> if name not in self.atoms: <NEW_LINE> <INDENT> self.atoms[name] = self.conn.core.InternAtom (False, len (name), name).reply ().a...
Wraps the X11 atom naming system
62598edb6fb2d068a76930ba
class PluginRequestPacket(Packet): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_id(context): <NEW_LINE> <INDENT> return 0x04 if context.protocol_version >= 391 else 0x00 <NEW_LINE> <DEDENT> packet_name = 'login plugin request' <NEW_LINE> definition = [ {'message_id': VarInt}, {'channel': String}, ...
NOTE: pyCraft's default behaviour on receiving a 'PluginRequestPacket' is to send a corresponding 'PluginResponsePacket' with 'successful=False'. To override this, set a packet listener that: (1) has the keyword argument 'early=True' set when calling 'register_packet_listener'; and (2) raises 'minecraft.net...
62598edbfbf16365ca7925d6
class LoginService: <NEW_LINE> <INDENT> def is_logged(self, session): <NEW_LINE> <INDENT> if 'username' in session: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> print('False') <NEW_LINE> return False <NEW_LINE> <DEDENT> def login(self, username, password, session): <NEW_LINE> <INDENT> response = SHARED_SERVER.ge...
Esta clase tiene la informacion que maneja el login y el logout de los clientes
62598edbbd1bec0571e14365
class DeviceType(Enum): <NEW_LINE> <INDENT> BATTERY = 'Battery' <NEW_LINE> MAINS = 'Mains' <NEW_LINE> UPS = 'UPS' <NEW_LINE> USB = 'USB'
Describes the main type of the supply.
62598edb45492302aabfa9e7
class SimulationWriter: <NEW_LINE> <INDENT> def __init__(self, file_name, simulation_data, other_files): <NEW_LINE> <INDENT> self._file_name = file_name <NEW_LINE> self._data = simulation_data <NEW_LINE> self._other_files = other_files <NEW_LINE> <DEDENT> def write(self): <NEW_LINE> <INDENT> with open(self._file_name, ...
A class for writing out simulation data for the Standard Interface Template.
62598edb23849d37ff84f5f0
class Minion_Return_Worker(object): <NEW_LINE> <INDENT> creds = {} <NEW_LINE> name = "Minion_Return_Worker" <NEW_LINE> thread_id = None <NEW_LINE> def setup(self, thread_id, **kwargs): <NEW_LINE> <INDENT> self.thread_id = thread_id <NEW_LINE> if 'worker_credentials' in kwargs: <NEW_LINE> <INDENT> if self.name in kwargs...
takes care of dumping 'return'-data into the database
62598edb507cdc57c63a32e7
class Url(dotdict): <NEW_LINE> <INDENT> _components = ( 'scheme', 'netloc', 'path', 'params', 'query', 'fragment', 'username', 'password', 'hostname', 'port', ) <NEW_LINE> _base_components = ( 'scheme', 'netloc', 'path', 'params', 'query', 'fragment', ) <NEW_LINE> def __init__(self, url, **kwa): <NEW_LINE> <INDENT> sel...
urlparse.ParseResult and parse_qs[l] in a dict-like non-lazy form
62598edbbe8e80087fbbd580
class DummyPublisher(Publisher): <NEW_LINE> <INDENT> name = DUMMY_PUBLISHER_NAME <NEW_LINE> published_count = 0 <NEW_LINE> def publish(self, job_offer): <NEW_LINE> <INDENT> requests.post(DUMMY_PUBLISHER_URL) <NEW_LINE> DummyPublisher.published_count += 1 <NEW_LINE> return {'status': self.RESULT_OK, 'text': f'The public...
Model interface for a publisher class.
62598edb30bbd7224646816c
class ImagesFixture(BaseTestFixture): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> super(ImagesFixture, cls).setUpClass() <NEW_LINE> cls.resources = ResourcePool() <NEW_LINE> cls.user_one = ImagesAuthComposite() <NEW_LINE> cls.user_two = ImagesAuthCompositeAltOne() <NEW_LINE> cls...
@summary: Fixture for Images API
62598edba79ad1619776854f
class Show(dict): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(Show, self).__init__(**kwargs) <NEW_LINE> self.data = {} <NEW_LINE> <DEDENT> def __getstate__(self): <NEW_LINE> <INDENT> return self.__dict__ <NEW_LINE> <DEDENT> def __setstate__(self, d): <NEW_LINE> <INDENT> self.__dict__.upd...
Holds a dict of seasons, and show data.
62598edb097d151d1a2bf551
class runQueuePipe(): <NEW_LINE> <INDENT> def __init__(self, pipein, pipeout, d, rq, rqexec): <NEW_LINE> <INDENT> self.input = pipein <NEW_LINE> if pipeout: <NEW_LINE> <INDENT> pipeout.close() <NEW_LINE> <DEDENT> bb.utils.nonblockingfd(self.input) <NEW_LINE> self.queue = "" <NEW_LINE> self.d = d <NEW_LINE> self.rq = rq...
Abstraction for a pipe between a worker thread and the server
62598edb7047854f4633d917
class UserListView(generics.ListAPIView): <NEW_LINE> <INDENT> queryset = CustomUser.objects.all().order_by('role') <NEW_LINE> serializer_class = UserSerializer <NEW_LINE> permission_classes = [permissions.IsAdminUser]
API endpoint that allows users to be viewed.
62598edb442bda511e95a99c
class GammaActivationRegularizer(generic_regularizers.NetworkRegularizer): <NEW_LINE> <INDENT> def __init__( self, output_boundary: List[tf.Operation], gamma_threshold, regularizer_decorator: Type[generic_regularizers.OpRegularizer] = None, decorator_parameters=None, input_boundary: List[tf.Operation] = None, force_gro...
A NetworkRegularizer that targets activation count using Gamma L1.
62598edb004d5f362081e299
class RefH(BaseH): <NEW_LINE> <INDENT> def __init__(self, sizes, args): <NEW_LINE> <INDENT> super(RefH, self).__init__(sizes, args) <NEW_LINE> self.ref = tf.keras.layers.Embedding( input_dim=sizes[1], output_dim=self.rank, embeddings_initializer=self.initializer, embeddings_regularizer=self.rel_regularizer, name='refle...
Hyperbolic reflection model with 2 x 2 reflections.
62598edb56b00c62f0fb0e04
class DialogNodeOutputOptionsElementValue(): <NEW_LINE> <INDENT> def __init__(self, *, input: 'MessageInput' = None, intents: List['RuntimeIntent'] = None, entities: List['RuntimeEntity'] = None) -> None: <NEW_LINE> <INDENT> self.input = input <NEW_LINE> self.intents = intents <NEW_LINE> self.entities = entities <NEW_L...
An object defining the message input to be sent to the Watson Assistant service if the user selects the corresponding option. :attr MessageInput input: (optional) An input object that includes the input text. :attr List[RuntimeIntent] intents: (optional) An array of intents to be used while processing the ...
62598edbe1aae11d1e7cdad8
class CloudformsAPIError(CloudformsError): <NEW_LINE> <INDENT> def __init__(self, result_data, fault_string, *args): <NEW_LINE> <INDENT> CloudformsError.__init__(self, fault_string, *args) <NEW_LINE> self.resultData = result_data <NEW_LINE> self.reason = self.faultString = fault_string <NEW_LINE> <DEDENT> def __repr__(...
Cloudforms - API error Provides resultData and faultString properties.
62598edb85dfad0860cbed05
class AdamW(Optimizer): <NEW_LINE> <INDENT> def __init__(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=0): <NEW_LINE> <INDENT> defaults = dict(lr=lr, betas=betas, eps=eps, weight_decay=weight_decay) <NEW_LINE> super(AdamW, self).__init__(params, defaults) <NEW_LINE> <DEDENT> def step(self, closure=N...
Implements AdamW algorithm. It has been proposed in `Fixing Weight Decay Regularization in Adam`_. Arguments: params (iterable): iterable of parameters to optimize or dicts defining parameter groups lr (float, optional): learning rate (default: 1e-3) betas (Tuple[float, float], optional): coeffici...
62598edb16aa5153ce3fea2e
@python_2_unicode_compatible <NEW_LINE> class ProjectBuild(models.Model): <NEW_LINE> <INDENT> project = models.ForeignKey(Project) <NEW_LINE> requested_by = models.ForeignKey(User, null=True, blank=True) <NEW_LINE> requested_at = models.DateTimeField(auto_now_add=True) <NEW_LINE> ended_at = models.DateTimeField(null=Tr...
Represents a requested build of a Project.
62598edb097d151d1a2bf552
class Counter(collections.OrderedDict): <NEW_LINE> <INDENT> ERROR = "error" <NEW_LINE> WARNING = "warning" <NEW_LINE> EXCEPTION = "exception" <NEW_LINE> SUCCESS = "success" <NEW_LINE> FAILURE = "failure" <NEW_LINE> TIMER = "timer" <NEW_LINE> MINIMO = "__minimo_application__" <NEW_LINE> def __init__(self): <NEW_LINE> <I...
counter to count error/warning/exception/success/failure in the task process.
62598edb99cbb53fe682f3e6
class DiffSide(sgqlc.types.Enum): <NEW_LINE> <INDENT> __schema__ = github_schema <NEW_LINE> __choices__ = ('LEFT', 'RIGHT')
The possible sides of a diff. Enumeration Choices: * `LEFT`: The left side of the diff. * `RIGHT`: The right side of the diff.
62598edb4428ac0f6e656a90
class BasicModule(t.nn.Module): <NEW_LINE> <INDENT> def __init__(self,opt=None): <NEW_LINE> <INDENT> super(BasicModule,self).__init__() <NEW_LINE> self.model_name=str(type(self).__name__) <NEW_LINE> self.opt = opt <NEW_LINE> <DEDENT> def load(self, path,map_location=lambda storage, loc: storage): <NEW_LINE> <INDENT> ch...
封装了nn.Module
62598edb9c8ee8231303f3f2
class ListVpnSitesResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[VpnSite]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["VpnSite"]] = None, next_link: Optional[str] = None, **kwargs ): <NEW_LIN...
Result of the request to list VpnSites. It contains a list of VpnSites and a URL nextLink to get the next set of results. :param value: List of VpnSites. :type value: list[~azure.mgmt.network.v2019_09_01.models.VpnSite] :param next_link: URL to get the next set of operation list results if there are any. :type next_li...
62598edb99cbb53fe682f3e7
@register(TaggedBlockID.SELECTIVE_COLOR) <NEW_LINE> class SelectiveColor(AdjustmentLayer): <NEW_LINE> <INDENT> @property <NEW_LINE> def method(self): <NEW_LINE> <INDENT> return self._data.method <NEW_LINE> <DEDENT> @property <NEW_LINE> def data(self): <NEW_LINE> <INDENT> return self._data.data
Selective color adjustment.
62598edb7d43ff2487426696
class OrderedSet(collections.MutableSet): <NEW_LINE> <INDENT> def __init__(self, iterable=None): <NEW_LINE> <INDENT> self.end = end = [] <NEW_LINE> end += [None, end, end] <NEW_LINE> self.map = {} <NEW_LINE> if iterable is not None: <NEW_LINE> <INDENT> self |= iterable <NEW_LINE> <DEDENT> <DEDENT> def __len__(self): <N...
Set that remembers original insertion order.
62598edb45492302aabfa9e8
class FortranNameManager: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> from pytools import UniqueNameGenerator <NEW_LINE> self.name_generator = UniqueNameGenerator() <NEW_LINE> self.local_map = KeyToUniqueNameMap(name_generator=self.name_generator) <NEW_LINE> self.global_map = KeyToUniqueNameMap(start={ ...
Maps names that appear in intermediate code to Fortran identifiers.
62598edb94891a1f408b8105
class InvalidArgs(WpaSupplicantException): <NEW_LINE> <INDENT> pass
Invalid entries were found in the passed arguments Possible sources: :meth:`~WpaSupplicant.create_interface` :meth:`~Interface.scan` :meth:`~Interface.add_network` :meth:`~Interface.remove_network` :meth:`~Interface.select_network`
62598edb7d847024c075a906
class GoodsImage(BaseModel): <NEW_LINE> <INDENT> sku = models.ForeignKey('GoodsSKU', verbose_name='商品', on_delete=models.CASCADE) <NEW_LINE> image = models.ImageField(upload_to='goods', verbose_name='图片路径') <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.sku.name <NEW_LINE> <DEDENT> class Meta: <NEW_LINE>...
商品图片模型类
62598edb56ac1b37e6300723
class MalformedInputException(Exception): <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRING, 'message', None, None, ), ) <NEW_LINE> def __init__(self, message=None,): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol....
Attributes: - message
62598edbcc0a2c1114479537
class BatteryInfo(object): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> fields = list(map(ord, data)) <NEW_LINE> self.level = fields[0] <NEW_LINE> self.last_charged = datetime( fields[1] + 2000, fields[2] + 1, *fields[3:6]) <NEW_LINE> self.charge_counter = fields[7] + (fields[8] << 8) <NEW_LINE> st...
Holds the battery information for the Mi Band.
62598edb66673b3332c2e8dc
class Log(BaseCommand): <NEW_LINE> <INDENT> def requires_repo(self): <NEW_LINE> <INDENT> True <NEW_LINE> <DEDENT> def parse_args(self,args): <NEW_LINE> <INDENT> super(Log,self).parse_args(args) <NEW_LINE> all_args = self.args <NEW_LINE> self.options_list = [] <NEW_LINE> self.args = [] <NEW_LINE> for arg in all_args: <N...
Stash changes in all repositories (recursively)
62598edb3539df3088eca7e8
class HoleGeo(object): <NEW_LINE> <INDENT> def __init__(self, Ps): <NEW_LINE> <INDENT> self.Ps = Ps <NEW_LINE> self.length = -1 <NEW_LINE> self.topLeft = None <NEW_LINE> self.bottomRight = None <NEW_LINE> self.abs_geo = None <NEW_LINE> <DEDENT> def __deepcopy__(self, memo): <NEW_LINE> <INDENT> return HoleGeo(deepcopy(s...
HoleGeo represents drilling holes.
62598edb009cb60464cffa8a
class SecurityPolicyType(Enum): <NEW_LINE> <INDENT> NoSecurity = 0 <NEW_LINE> Basic128Rsa15_Sign = 1 <NEW_LINE> Basic128Rsa15_SignAndEncrypt = 2 <NEW_LINE> Basic256_Sign = 3 <NEW_LINE> Basic256_SignAndEncrypt = 4 <NEW_LINE> Basic256Sha256_Sign = 5 <NEW_LINE> Basic256Sha256_SignAndEncrypt = 6
The supported types of SecurityPolicy. "None" "Basic128Rsa15_Sign" "Basic128Rsa15_SignAndEncrypt" "Basic256_Sign" "Basic256_SignAndEncrypt" "Basic256Sha256_Sign" "Basic256Sha256_SignAndEncrypt"
62598edb1b99ca400228e7a7
class AggregatedResultsByOutcome(Model): <NEW_LINE> <INDENT> _attribute_map = { 'count': {'key': 'count', 'type': 'int'}, 'duration': {'key': 'duration', 'type': 'object'}, 'group_by_field': {'key': 'groupByField', 'type': 'str'}, 'group_by_value': {'key': 'groupByValue', 'type': 'object'}, 'outcome': {'key': 'outcome'...
AggregatedResultsByOutcome. :param count: :type count: int :param duration: :type duration: object :param group_by_field: :type group_by_field: str :param group_by_value: :type group_by_value: object :param outcome: :type outcome: object
62598edbe5267d203ee69e38
class RequestConfig(object): <NEW_LINE> <INDENT> def __init__(self, request, paginate=True): <NEW_LINE> <INDENT> self.request = request <NEW_LINE> self.paginate = paginate <NEW_LINE> <DEDENT> def configure(self, table): <NEW_LINE> <INDENT> order_by = self.request.GET.getlist(table.prefixed_order_by_field) <NEW_LINE> if...
A configurator that uses request data to setup a table. :type paginate: ``dict`` or ``bool`` :param paginate: indicates whether to paginate, and if so, what default values to use. If the value evaluates to ``False``, pagination will be disabled. A ``dict`` can be used to specify default values ...
62598edb23849d37ff84f5f1
class CancelOp(BaseSensorOperator): <NEW_LINE> <INDENT> @apply_defaults <NEW_LINE> def __init__(self, stop_file: str, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(mode='poke', poke_interval=5, *args, **kwargs) <NEW_LINE> self.stop_file = stop_file <NEW_LINE> <DEDENT> def poke(self, context): <NEW_LINE> <INDEN...
This sensor monitors the job folder for a stop_file. Evaluates to true when the file exists. This is currently the only option in Airflow to stop a running task via code. see: https://stackoverflow.com/questions/49039386/how-do-i-stop-an-airflow-dag
62598edbcb5e8a47e493b414
class Testcase_80_60_Mask_OXM_OF_IPV4_DST(MatchTest): <NEW_LINE> <INDENT> @wireshark_capture <NEW_LINE> def runTest(self): <NEW_LINE> <INDENT> logging.info("Running Testcase for Mask: OXM_OF_IPV4_DST") <NEW_LINE> match = ofp.match([ ofp.oxm.eth_type(0x0800), ofp.oxm.ipv4_dst_masked(0xc0a80000, 0xfffff000), ]) <NEW_LINE...
Purpose Verify correct matching on masked match fields. Methodology Configure and connect DUT to controller. After control channel establishment, add a flow matching on the named masked field (under the given Pre-requisites for the match), action is forwarding to an output port. Send a packet matching the masked flow ...
62598edb507cdc57c63a32e9
class LiDARArrayColumnError(LiDARFileException): <NEW_LINE> <INDENT> pass
Unsupported operation on a structured array
62598edbbe8e80087fbbd582
class ListVerb(VerbExtension): <NEW_LINE> <INDENT> def add_arguments(self, parser, cli_name): <NEW_LINE> <INDENT> add_arguments(parser) <NEW_LINE> arg = parser.add_argument( 'node_name', help='Name of the ROS node') <NEW_LINE> arg.completer = NodeNameCompleter( include_hidden_nodes_key='include_hidden_nodes') <NEW_LINE...
Output a list of available transitions.
62598edbadb09d7d5dc08afc
class MaskopyAccessException(Exception): <NEW_LINE> <INDENT> pass
Exception raised when IAM role or user is not able to access the resource due to authorization error.
62598edba79ad16197768551
class GetControlParArr(BuiltInFuncInt, ControlParFunc): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__('get_control_par_arr', args=OrderedDict( control_or_id=(KspIntVar, int, AstBase), parameter=bControlParVar, idx=(KspIntVar, int, AstBase))) <NEW_LINE> <DEDENT> def __call__(self, control_...
get_control_par_arr( control_or_id: Union['KspNativeControl', int], parameter: bControlParVar, idx: int) gets control parameter within int value at specified idx. control_or_id can be either KspNativeControl instance or it's id be careful within KSP For loops, as control object will produce co...
62598edbf8510a7c17d7d417
class ModuleBase: <NEW_LINE> <INDENT> eventhandler: EventHandler = None <NEW_LINE> default_priority: int = PRIO_LOW <NEW_LINE> client: Client = None <NEW_LINE> LOGGER = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.LOGGER = logging.getLogger('.'.join([ self.__class__.__module__, self.__class__.__qualname...
Modules should always implement a few methods that lets us do what we need to register events.
62598edbcad5886f8bdc3834
class enable_grad(_DecoratorContextManager): <NEW_LINE> <INDENT> def __enter__(self): <NEW_LINE> <INDENT> self.prev = torch.is_grad_enabled() <NEW_LINE> torch._C.set_grad_enabled(True) <NEW_LINE> <DEDENT> def __exit__(self, *args): <NEW_LINE> <INDENT> torch.set_grad_enabled(self.prev) <NEW_LINE> return False
Context-manager that enables gradient calculation. Enables gradient calculation, if it has been disabled via :class:`~no_grad` or :class:`~set_grad_enabled`. This context manager is thread local; it will not affect computation in other threads. Also functions as a decorator. Example:: >>> x = torch.tensor([1]...
62598edb29b78933be269369
class Heap(abc.ABC): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.data = [] <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def insert(self, value: int): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def pop(self): <NEW_LINE> <INDENT> return heapq.heappop(self.data)[1] <NEW_LINE> <DEDENT> def get_...
oop abc wrapper for heapq
62598edb004d5f362081e29a
@sla.configure(name="outliers") <NEW_LINE> class Outliers(sla.SLA): <NEW_LINE> <INDENT> CONFIG_SCHEMA = { "type": "object", "$schema": consts.JSON_SCHEMA, "properties": { "max": {"type": "integer", "minimum": 0}, "min_iterations": {"type": "integer", "minimum": 3}, "sigmas": {"type": "number", "minimum": 0.0, "exclusiv...
Limit the number of outliers (iterations that take too much time). The outliers are detected automatically using the computation of the mean and standard deviation (std) of the data.
62598edb796e427e5384cccf
class OmniglotConverter(DatasetConverter): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> if 'has_superclasses' not in kwargs: <NEW_LINE> <INDENT> kwargs['has_superclasses'] = True <NEW_LINE> <DEDENT> super(OmniglotConverter, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def parse_sp...
Prepares Omniglot as required for integrating it in the benchmark. Omniglot is organized into two high-level directories, referred to as the background and evaluation sets, respectively, with the former intended for training and the latter for testing. Each of these contains a number of sub-directories, corresponding ...
62598edb30bbd7224646816f
class Timer(object): <NEW_LINE> <INDENT> def __init__(self, key, label=None, meta=None): <NEW_LINE> <INDENT> self._time = time <NEW_LINE> self.key = key <NEW_LINE> self.label = label or key <NEW_LINE> self.meta = meta <NEW_LINE> self.start = None <NEW_LINE> self.end = None <NEW_LINE> <DEDENT> def __enter__(self): <NEW_...
Times code to see how long it takes using a context manager.
62598edbb5575c28eb711f6c
@resources.register('ops-item') <NEW_LINE> class OpsItem(QueryResourceManager): <NEW_LINE> <INDENT> class resource_type(TypeInfo): <NEW_LINE> <INDENT> enum_spec = ('describe_ops_items', 'OpsItemSummaries', None) <NEW_LINE> service = 'ssm' <NEW_LINE> arn_type = 'opsitem' <NEW_LINE> id = 'OpsItemId' <NEW_LINE> name = 'Ti...
Resource for OpsItems in SSM OpsCenter https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html
62598edb82261d6c5272f152
class InlineQueryResultMpeg4Gif(BaseType): <NEW_LINE> <INDENT> def __init__(self, type, id, thumb_url, mpeg4_url, mpeg4_width=None, mpeg4_height=None, mpeg4_duration=None, thumb_mime_type=None, title=None, caption=None, parse_mode=None, reply_markup=None, input_message_content=None): <NEW_LINE> <INDENT> super().__init_...
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation. Parameters ---------- type : Strin...
62598edb8a43f66fc4bf06a8
class Int64(_Signature): <NEW_LINE> <INDENT> signature = 'l'
Signed 64 bits Integer Type
62598edb498bea3a75a5606c
class Query(Serializable): <NEW_LINE> <INDENT> def __init__(self, db, op, first=None, second=None, ignore_common_filters=False, **optional_args ): <NEW_LINE> <INDENT> self.db = self._db = db <NEW_LINE> self.op = op <NEW_LINE> self.first = first <NEW_LINE> self.second = second <NEW_LINE> self.ignore_common_filters = ign...
Necessary to define a set. It can be stored or can be passed to `DAL.__call__()` to obtain a `Set` Example: Use as:: query = db.users.name=='Max' set = db(query) records = set.select()
62598edb435de62698e9a30d
class Command(object): <NEW_LINE> <INDENT> def __init__(self, code, data=bytearray()): <NEW_LINE> <INDENT> self.code = code <NEW_LINE> self.data = data <NEW_LINE> <DEDENT> def decode_result(self, data): <NEW_LINE> <INDENT> pass
A command sent to the controller
62598edb7d43ff2487426697
class SimpleDocField(PgDocField): <NEW_LINE> <INDENT> def __init__(self, name, description, alchemy_column, indexed, offset=None, selection='first'): <NEW_LINE> <INDENT> super(SimpleDocField, self).__init__(name, description, alchemy_column, indexed) <NEW_LINE> self.offset = offset <NEW_LINE> if selection not in SELECT...
A field with a single value (eg. String, int) calculated as an offset inside a (jsonb) document.
62598edb6aa9bd52df0d33e4
class Meta(VersionedModel.Meta): <NEW_LINE> <INDENT> app_label = _app_label <NEW_LINE> db_table = db_table(_app_label, _image_reference) <NEW_LINE> verbose_name = _(_image_reference_verbose) <NEW_LINE> verbose_name_plural = _(pluralize(_image_reference_verbose))
Model meta class declaration.
62598edb55399d3f05624a64
class UserProfile(AbstractBaseUser,PermissionsMixin): <NEW_LINE> <INDENT> email = models.EmailField(max_length=200,unique=True) <NEW_LINE> name = models.CharField(max_length=255) <NEW_LINE> is_active = models.BooleanField(default=True) <NEW_LINE> is_staff = models.BooleanField(default=False) <NEW_LINE> objects = UserPr...
Database model for users in the system
62598edb99cbb53fe682f3e9
class Bowling(object): <NEW_LINE> <INDENT> def do_table(self, table_rows): <NEW_LINE> <INDENT> return self._score_game(table_rows[0], table_rows[1]) <NEW_LINE> <DEDENT> def _score_game(self, rolls, expected_scores): <NEW_LINE> <INDENT> actual_scores = [] <NEW_LINE> game = BowlingGame(actual_scores) <NEW_LINE> for roll ...
Class to be the system-under-test in fitnesse.
62598edbd53ae8145f9169c1
class Guide(QtGui.QGraphicsLineItem): <NEW_LINE> <INDENT> def __init__(self, parent=None, a=0.0): <NEW_LINE> <INDENT> super(Guide, self).__init__(parent) <NEW_LINE> self.handler=parent <NEW_LINE> self.setFlag(QtGui.QGraphicsItem.ItemIsSelectable, False) <NEW_LINE> self.setFlag(QtGui.QGraphicsItem.ItemIgnoresTransformat...
This class provide a guide object and it's management it's added to the GuideHandler object
62598edb7d847024c075a908
class Author(_Base, SelectMixin): <NEW_LINE> <INDENT> __tablename__ = 'authors' <NEW_LINE> pmid = Column(BigInteger, ForeignKey('citations.pmid', ondelete="CASCADE"), primary_key=True) <NEW_LINE> pos = Column(SmallInteger, CheckConstraint("pos > 0"), primary_key=True) <NEW_LINE> name = Column( UnicodeText, CheckConstra...
Author names for a PubMed record. Attributes: pmid the record this author belongs to pos the order/position of the name in the PubMed record (starting from 1) name an author's last name or the collective's name (never empty) initials an author's initials * forename ...
62598edbcc0a2c1114479539
class PointersTests(unittest.TestCase): <NEW_LINE> <INDENT> PATH = './sample/asm/pointers' <NEW_LINE> def testHelloWorld(self): <NEW_LINE> <INDENT> runTest(self, 'hello_world.asm', 'Hello World!') <NEW_LINE> <DEDENT> def testIncrementDecrement(self): <NEW_LINE> <INDENT> runTestReturnsIntegers(self, 'increment_decrement...
Tests for register-manipulation instructions.
62598edb8e7ae83300ee75c7
class VolumeReplicationManager(base.ManagerWithFind): <NEW_LINE> <INDENT> resource_class = VolumeReplication <NEW_LINE> def get(self, relationship_id): <NEW_LINE> <INDENT> return self._get('/os-volume-replication/%s' % relationship_id, 'relationship') <NEW_LINE> <DEDENT> def list(self, detailed=True, search_opts=None):...
Manage :class:`VolumeReplication` resources.
62598edb2c8b7c6e89bd1d01
class PrecodingDataset(Dataset): <NEW_LINE> <INDENT> def __init__(self, training=True, filename='metadata_custom_precoding.pk', create_mask=True): <NEW_LINE> <INDENT> self.cp = CustomPrecoding(None, None, filename=filename, create_mask=create_mask) <NEW_LINE> if training: <NEW_LINE> <INDENT> self.dataset_size = len(sel...
pytorch Dataset module for data using CustomPrecoding (ie data prepared as n-grams instead of chars)
62598edbdd821e528d6d747f
class CreateBirdCamera_OT_Operator(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = 'view3d.create_bird_camera' <NEW_LINE> bl_label = "Bird's Eye View Camera" <NEW_LINE> bl_description = "Create a bird's eye view camera." <NEW_LINE> bl_context = 'VIEW_3D' <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> a...
Create a birds eye view orthographic camera at the cursor. This points vertically downwards. The orthographic scale is set based on the specified object size and ratio.
62598edbeab8aa0e5d30a2ae
class FilingPeriodCd(CalAccessBaseModel): <NEW_LINE> <INDENT> UNIQUE_KEY = "PERIOD_ID" <NEW_LINE> DOCUMENTCLOUD_PAGES = [ DocumentCloud(id='2711614', start_page=10), DocumentCloud(id='2711614', start_page=74, end_page=75), ] <NEW_LINE> period_id = fields.IntegerField( db_column='PERIOD_ID', help_text="Unique period ide...
Metadata for filing periods.
62598edb67a9b606de544511
class CustomSMTPHandler(SMTPHandler): <NEW_LINE> <INDENT> def __init__(self, mailhost, fromaddr, toaddrs, subject, credentials=None, secure=None): <NEW_LINE> <INDENT> SMTPHandler.__init__(self, mailhost, fromaddr, toaddrs, subject, credentials, secure) <NEW_LINE> <DEDENT> def emit(self, record): <NEW_LINE> <INDENT> fro...
: Email to admins if occurs errors
62598edb2eb69b55b15a0624
class CoveringNumber(object): <NEW_LINE> <INDENT> def __init__(self, num_samples, expected_num_points, batch_size, error_rate=0.000001): <NEW_LINE> <INDENT> self._num_samples = num_samples <NEW_LINE> self._batch_size = batch_size <NEW_LINE> self._expected_num_points = expected_num_points <NEW_LINE> self._denominator = ...
Class to implement Eq.(4) of the paper
62598edb92d797404e387e17
class CozmoReadsTweetsStreamListener(twitter_helpers.CozmoTweetStreamListener): <NEW_LINE> <INDENT> def __init__(self, coz, twitter_api): <NEW_LINE> <INDENT> super().__init__(coz, twitter_api) <NEW_LINE> <DEDENT> def on_tweet_from_user(self, json_data, tweet_text, from_user, is_retweet): <NEW_LINE> <INDENT> user_me = s...
React to Tweets sent to our Cozmo, live, as they happen...
62598edb63b5f9789fe836a9
class PolicyBase( object ): <NEW_LINE> <INDENT> def __init__( self ): <NEW_LINE> <INDENT> self.args = None <NEW_LINE> self.command = None <NEW_LINE> self.commandName = None <NEW_LINE> self.knownInfo = None <NEW_LINE> self.infoName = None <NEW_LINE> self.result = {} <NEW_LINE> <DEDENT> def setArgs( ...
Base class for all the policies. Do not instantiate directly. To use, you should call at least `setArgs` and, alternatively, `setCommand` or `setCommandName` on the real policy instance.
62598edb8c0ade5d55dc291f
class Element(object): <NEW_LINE> <INDENT> _locator = None <NEW_LINE> def __init__(self, driver, locator=None, timeout=30, web_element=None, etree_locator=None): <NEW_LINE> <INDENT> self.driver = driver <NEW_LINE> self.locator = locator or self._locator <NEW_LINE> self.timeout = timeout <NEW_LINE> self.web_element = se...
Base Element including useful functionality for manipulating elements Elements requiring additional/modified functionality should subclass this class. If a locator is static for a particular element, provide the _locator as a class attribute and the MobileElement can initialized without passing the locator argument. ...
62598edb23849d37ff84f5f3
class TestParameterV3IO(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 testParameterV3IO(self): <NEW_LINE> <INDENT> pass
ParameterV3IO unit test stubs
62598edb7047854f4633d91b
class MutableToml(collections.MutableMapping): <NEW_LINE> <INDENT> def __init__(self, dictionary): <NEW_LINE> <INDENT> self._dictionary = dictionary <NEW_LINE> <DEDENT> def __getitem__(self, path): <NEW_LINE> <INDENT> config = _get_path(self._dictionary, path) <NEW_LINE> if isinstance(config, collections.MutableMapping...
Class for managing CLI configuration through TOML. :param dictionary: configuration dictionary :type dictionary: dict
62598edbc432627299fa14ed
class MBN(PoundSeparatedCommand): <NEW_LINE> <INDENT> pass
mailbox numbers.
62598edb30dc7b766599ddc0
@config(compatibilities=["windows"], category="manage") <NEW_LINE> class MemoryDuplicate(PupyModule): <NEW_LINE> <INDENT> interactive=1 <NEW_LINE> dependencies=["psutil", "pupwinutils.processes"] <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> PupyModule.__init__(self,*args, **kwargs) <NEW_LINE> <DE...
Duplicate the current pupy payload by executing it from memory
62598edb30bbd72246468171
class Perceptron (object): <NEW_LINE> <INDENT> def __init__(self, eta=0.01, n_iter=10): <NEW_LINE> <INDENT> self.eta = eta <NEW_LINE> self.n_iter = n_iter <NEW_LINE> <DEDENT> def fit(self, X, y): <NEW_LINE> <INDENT> self.w_ = np.zeros(1 + X.shape[1]) <NEW_LINE> self.errors_ = [] <NEW_LINE> for _ in range(self.n_iter): ...
Классификатор на основе персептрона. Параметры --------- eta : float Темп обучения (между 0.0 и 1.0) n_iter : int Проходы по тренировочному набору данных, количество эпох Атрибуты -------- w_ : 1-мерный массив Весовые коэффициенты после подгонки. Равен количеству характеристик + 1 дополнительный bias u...
62598edb1f5feb6acb16118a
class TestEmbeddedSessions(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.router_factory = RouterFactory() <NEW_LINE> self.router_factory.start_realm(RouterRealm(None, {u'name': u'realm1'})) <NEW_LINE> permissions = RouterPermissions('', True, True, True, True, True) <NEW_LINE> router...
Test cases for application session running embedded in router.
62598edb4e4d562566370951
class VPConstraintTie(view_base_femconstraint.VPBaseFemConstraint): <NEW_LINE> <INDENT> def setEdit(self, vobj, mode=0): <NEW_LINE> <INDENT> view_base_femconstraint.VPBaseFemConstraint.setEdit( self, vobj, mode, _TaskPanel )
A View Provider for the ConstraintTie object
62598edb9c8ee8231303f3f4
class Heroi(Personagens): <NEW_LINE> <INDENT> def __init__(self,pxInicial, pyInicial,dados,rowImagens, *groups): <NEW_LINE> <INDENT> Personagens.__init__(self,pxInicial, pyInicial,rowImagens, *groups) <NEW_LINE> self.nome = dados[0] <NEW_LINE> self.vida = dados[1] <NEW_LINE> self.classe = dados[2]
classe que contem os dados do nosso herói
62598edb0fa83653e46f3425
class OneClassSVM(BaseLibSVM): <NEW_LINE> <INDENT> def __init__(self, kernel='rbf', degree=3, gamma=0.0, coef0=0.0, tol=1e-3, nu=0.5, shrinking=True, cache_size=200, verbose=False, max_iter=-1): <NEW_LINE> <INDENT> super(OneClassSVM, self).__init__( 'one_class', kernel, degree, gamma, coef0, tol, 0., nu, 0., shrinking,...
Unsupervised Outliers Detection. Estimate the support of a high-dimensional distribution. The implementation is based on libsvm. Parameters ---------- kernel : string, optional (default='rbf') Specifies the kernel type to be used in the algorithm. It must be one of 'linear', 'poly', 'rbf', 'sigmoid', 'prec...
62598edb9b70327d1c57d2f4
class Peer: <NEW_LINE> <INDENT> def __init__(self, mac, name): <NEW_LINE> <INDENT> self.mac = mac <NEW_LINE> self.intended_mac = mac <NEW_LINE> self.name = name
Peer This is the wtf representation of a peer used to communicate detected peers between P2P classes and tests.
62598edb7cff6e4e811b3f27
class RequestMethodInjectionTests( MethodInjectionTestsMixin, SynchronousTestCase, ): <NEW_LINE> <INDENT> def attemptRequestWithMaliciousMethod(self, method): <NEW_LINE> <INDENT> client.Request( method=method, uri=b"http://twisted.invalid", headers=http_headers.Headers(), bodyProducer=None, )
Test L{client.Request} against HTTP method injections.
62598edb01c39578d7f112e0
class CreditCardRecognizer(PatternRecognizer): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> patterns = [Pattern('All Credit Cards (weak)', REGEX, 0.3)] <NEW_LINE> super().__init__(supported_entity="CREDIT_CARD", patterns=patterns, context=CONTEXT) <NEW_LINE> <DEDENT> def validate_result(self, pattern_tex...
Recognizes common credit card numbers using regex + checksum
62598edb851cf427c66b680b
class ListIdentityProvider(lister.Lister): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + '.ListIdentityProvider') <NEW_LINE> def take_action(self, parsed_args): <NEW_LINE> <INDENT> self.log.debug('take_action(%s)' % parsed_args) <NEW_LINE> columns = ('ID', 'Enabled', 'Description') <NEW_LINE> data = self.app.c...
List identity_provider command
62598edb96565a6dacd2bc74
class AggregationSchoolListView(SchoolApiBaseView, generics.ListAPIView): <NEW_LINE> <INDENT> def get_queryset(self): <NEW_LINE> <INDENT> schools = super(AggregationSchoolListView, self).get_queryset() <NEW_LINE> slug = self.kwargs.get('slug', None) <NEW_LINE> entity = self.kwargs.get('entity') <NEW_LINE> serializer = ...
Lists all the schools in the given aggregated entity_obj
62598edb8e7ae83300ee75c9
class TestPathCreation(unittest.TestCase): <NEW_LINE> <INDENT> def test_empty_path(self): <NEW_LINE> <INDENT> self.assertEqual(make_cltk_path(), get_cltk_data_dir()) <NEW_LINE> <DEDENT> def test_path(self): <NEW_LINE> <INDENT> self.assertEqual(make_cltk_path('greek', 'perseus_corpus'), os.path.expanduser(os.path.join(g...
Class for filepath maker.
62598edbfff4ab517ebcbd1d
class ImageExtractor(Extractor): <NEW_LINE> <INDENT> _input_type = ImageStim
Base Image Extractor class; all subclasses can only be applied to images.
62598edbd99f1b3c44d03bef
class NetworkSecurityGroup(Resource): <NEW_LINE> <INDENT> _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, 'network_interfaces': {'readonly': True}, 'subnets': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {...
NetworkSecurityGroup resource. Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :param location: Resource location. :type location: str :param tags: ...
62598edbbaa26c4b54d4d811
class _MaskedRandomUniformInitializer(init_ops.RandomUniform): <NEW_LINE> <INDENT> def __init__(self, minval=0, maxval=None, seed=None, dtype=dtypes.float16, num_valid_mantissa_bits=4): <NEW_LINE> <INDENT> if dtype not in (dtypes.float16,): <NEW_LINE> <INDENT> raise ValueError("dtype: %s not supported" % dtype.name) <N...
Initializer for uniform dist tensors with trailing bits zeroed-out. Allow returning tensors with last few mantissa bits set to 0. This potentially helps avoid getting into precision issues when testing low precision (float16) computation.
62598edb2c8b7c6e89bd1d03
class InvalidMethodParameters(SoftLayerAPIError): <NEW_LINE> <INDENT> pass
Invalid method paramters.
62598edbd58c6744b42db553