code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
@registerCommand(MODE, 'save', arguments=[ (['--all'], {'action': 'store_true', 'help': 'save all attachments'}), (['path'], {'nargs': '?', 'help': 'path to save to'})]) <NEW_LINE> class SaveAttachmentCommand(Command): <NEW_LINE> <INDENT> def __init__(self, all=False, path=None, **kwargs): <NEW_LINE> <INDENT> Command._...
save attachment(s)
6259906a32920d7e50bc7833
class NotModifiedError(CloudifyClientError): <NEW_LINE> <INDENT> ERROR_CODE = 'not_modified' <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.message
Raised when a 304 not modified error was returned
6259906a91f36d47f2231a85
class AttriDict(dict): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(AttriDict, self).__init__(*args, **kwargs) <NEW_LINE> self.__dict__ = self
Dict that can get attribute by dot
6259906a4527f215b58eb596
class ModuleStream(Entity, EntityReadMixin, EntitySearchMixin): <NEW_LINE> <INDENT> def __init__(self, server_config=None, **kwargs): <NEW_LINE> <INDENT> self._fields = { 'uuid': entity_fields.StringField(), 'name': entity_fields.StringField(), 'description': entity_fields.StringField(), 'context': entity_fields.String...
A representation of a Module Stream entity.
6259906a4428ac0f6e659d1e
class Normalize(Transform): <NEW_LINE> <INDENT> def __init__(self, scaler): <NEW_LINE> <INDENT> self.scaler = scaler <NEW_LINE> <DEDENT> def transform_data(self, data): <NEW_LINE> <INDENT> return self.scaler.normalize(data)
Normalize inputs Args: scaler: Scaler object, the scaler to be used to normalize the data Attributes: scaler : Scaler object, the scaler to be used to normalize the data
6259906ad486a94d0ba2d7ab
class CustomParallelUpdater(training.updaters.MultiprocessParallelUpdater): <NEW_LINE> <INDENT> def __init__(self, train_iters, optimizer, converter, devices, accum_grad=1): <NEW_LINE> <INDENT> super(CustomParallelUpdater, self).__init__( train_iters, optimizer, converter=converter, devices=devices) <NEW_LINE> from cup...
Custom Parallel Updater for chainer. Defines the main update routine. Args: train_iter (iterator | dict[str, iterator]): Dataset iterator for the training dataset. It can also be a dictionary that maps strings to iterators. If this is just an iterator, then the iterator is registered by th...
6259906a63b5f9789fe8694f
class Pdf2svg(AutotoolsPackage): <NEW_LINE> <INDENT> homepage = "http://www.cityinthesky.co.uk/opensource/pdf2svg" <NEW_LINE> url = "https://github.com/dawbarton/pdf2svg/archive/v0.2.3.tar.gz" <NEW_LINE> version('0.2.3', 'd398b3b1c1979f554596238a44f12123') <NEW_LINE> version('0.2.2', 'f7e0d2213f9e1422cee9421e18f72...
A simple PDF to SVG converter using the Poppler and Cairo libraries.
6259906a01c39578d7f1432b
@dataclass <NEW_LINE> class Website(): <NEW_LINE> <INDENT> name: str <NEW_LINE> homepage: str <NEW_LINE> seed_urls: List[str] <NEW_LINE> url_patterns: Match <NEW_LINE> relative_url: bool <NEW_LINE> title_class: str <NEW_LINE> body_class: str <NEW_LINE> date_class: str <NEW_LINE> favicon: str <NEW_LINE> next_button_id: ...
Holds information on newspaper's structure for scraping. Args: name name of the newspaper. seed_urls URLs to start scraping from. base_url base url to use in case of relative urls. next_page returns next page to scrape. urls seed URLs for scraping. target_patterns regular expressions of lin...
6259906a7d847024c075dbc7
class HTTPBearerAuth(AuthBase): <NEW_LINE> <INDENT> def __init__(self, token): <NEW_LINE> <INDENT> self.token = token <NEW_LINE> <DEDENT> def __call__(self, r): <NEW_LINE> <INDENT> r.headers['Authorization'] = 'Bearer {}'.format(self.token) <NEW_LINE> return r
Attaches HTTP Basic Authentication to the given Request object.
6259906a2ae34c7f260ac8d5
class QtSpinBox(QtControl, AbstractTkSpinBox): <NEW_LINE> <INDENT> def create(self, parent): <NEW_LINE> <INDENT> self.widget = EnamlQSpinBox(parent) <NEW_LINE> <DEDENT> def initialize(self): <NEW_LINE> <INDENT> super(QtSpinBox, self).initialize() <NEW_LINE> shell = self.shell_obj <NEW_LINE> self.set_spin_low(shell.low)...
A Qt implementation of SpinBox.
6259906ae1aae11d1e7cf403
class CacheHandler(urllib2.BaseHandler): <NEW_LINE> <INDENT> def __init__(self,cacheLocation): <NEW_LINE> <INDENT> self.cacheLocation = cacheLocation <NEW_LINE> if not os.path.exists(self.cacheLocation): <NEW_LINE> <INDENT> os.mkdir(self.cacheLocation) <NEW_LINE> <DEDENT> <DEDENT> def default_open(self,request): <NEW_L...
Stores responses in a persistant on-disk cache. If a subsequent GET request is made for the same URL, the stored response is returned, saving time, resources and bandwith
6259906a435de62698e9d5f8
class ButtonHandler(object): <NEW_LINE> <INDENT> ind = 0 <NEW_LINE> def quit(self, event): <NEW_LINE> <INDENT> self.ind += 1 <NEW_LINE> handle_close(event) <NEW_LINE> plt.draw() <NEW_LINE> <DEDENT> def pause(self, event): <NEW_LINE> <INDENT> global state <NEW_LINE> self.ind -= 1 <NEW_LINE> state += 1 <NEW_LINE> plt.dra...
Class created to handle button functionality via .on_clicked()
6259906abaa26c4b54d50a94
class TestSMIME(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.cfixt = self.useFixture(ClientFixture()) <NEW_LINE> self.client = self.cfixt.client <NEW_LINE> self.ep_path = "/smime" <NEW_LINE> self.api_version = "v1" <NEW_LINE> self.api_url = f"{self.cfixt.base_url}{...
Serve as a Base class for all tests of the Certificates class.
6259906a7047854f46340ba3
class BaseTest: <NEW_LINE> <INDENT> logger = logger <NEW_LINE> def request(self, method, path, data=None, **args): <NEW_LINE> <INDENT> self.application._status = None <NEW_LINE> self.application._headers = None <NEW_LINE> self.application._answer = None <NEW_LINE> for key in args: <NEW_LINE> <INDENT> args[key.upper()] ...
Base class for tests.
6259906aa8370b77170f1bb2
class Reconstructor(TreeMatcher): <NEW_LINE> <INDENT> write_tokens: WriteTokensTransformer <NEW_LINE> def __init__(self, parser: Lark, term_subs: Optional[Dict[str, Callable[[Symbol], str]]]=None) -> None: <NEW_LINE> <INDENT> TreeMatcher.__init__(self, parser) <NEW_LINE> self.write_tokens = WriteTokensTransformer({t.na...
A Reconstructor that will, given a full parse Tree, generate source code. Note: The reconstructor cannot generate values from regexps. If you need to produce discarded regexes, such as newlines, use `term_subs` and provide default values for them. Paramters: parser: a Lark instance term_subs: a dictio...
6259906a7b180e01f3e49c5a
class SoilTextureCreateAPIView(CreateAPIViewHook): <NEW_LINE> <INDENT> queryset = SoilTexture.objects.all() <NEW_LINE> serializer_class = soil_texture_serializer['SoilTextureDetailSerializer'] <NEW_LINE> permission_classes = [IsAuthenticated]
Creates a single record.
6259906a1b99ca400229012c
class Hook: <NEW_LINE> <INDENT> def __init__(self, display=1, logdir=None, context=5, file=None, format="html"): <NEW_LINE> <INDENT> self.display = display <NEW_LINE> self.logdir = logdir <NEW_LINE> self.context = context <NEW_LINE> self.file = file or sys.stdout <NEW_LINE> self.format = format <NEW_LINE> <DEDENT> def ...
A hook to replace sys.excepthook that shows tracebacks in HTML.
6259906a7c178a314d78e7e2
@runner.MAGPIE_TEST_UI <NEW_LINE> @runner.MAGPIE_TEST_LOCAL <NEW_LINE> class TestCase_MagpieUI_UsersAuth_Local(ti.Interface_MagpieUI_UsersAuth, unittest.TestCase): <NEW_LINE> <INDENT> __test__ = True <NEW_LINE> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.grp = get_constant("MAGPIE_ADMIN_GROUP")...
Test any operation that require logged user AuthN/AuthZ, but lower than ``MAGPIE_ADMIN_GROUP``. Use a local Magpie test application.
6259906af548e778e596cd79
class LWR(DifferentiableMap): <NEW_LINE> <INDENT> def __init__(self, m, n): <NEW_LINE> <INDENT> self._m = m <NEW_LINE> self._n = n <NEW_LINE> self.X = None <NEW_LINE> self.Y = None <NEW_LINE> self.D = None <NEW_LINE> self.ridge_lambda = None <NEW_LINE> <DEDENT> def output_dimension(self): <NEW_LINE> <INDENT> return sel...
Embeds the Locally Weighted Regressor This allows it to be used for interpolation of derivatives on multi-dimensional output
6259906a1f037a2d8b9e5461
class DummyLocator(object): <NEW_LINE> <INDENT> def getColumnNumber(self): <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> def getLineNumber(self): <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> def getPublicId(self): <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> def getSystemId(self): <NEW_LINE> <INDENT...
A dummy locator which is used if no document locator is available.
6259906a6e29344779b01e41
class EntityRelationEmbeddingModel(EntityEmbeddingModel): <NEW_LINE> <INDENT> def __init__( self, triples_factory: TriplesFactory, embedding_dim: int = 50, relation_dim: Optional[int] = None, loss: Optional[Loss] = None, predict_with_sigmoid: bool = False, automatic_memory_optimization: Optional[bool] = None, preferred...
A base module for most KGE models that have one embedding for entities and one for relations.
6259906a009cb60464d02d27
class WalletSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> username = serializers.CharField(source='user.username') <NEW_LINE> currency = serializers.CharField(source='currency.symbol') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Wallet <NEW_LINE> fields = ('id', 'serial_number', 'balance', 'user',...
Кошельки пользователей
6259906a21bff66bcd724454
class DesignateTempestPlugin(plugins.TempestPlugin): <NEW_LINE> <INDENT> def load_tests(self): <NEW_LINE> <INDENT> base_path = os.path.split(os.path.dirname( os.path.abspath(__file__)))[0] <NEW_LINE> test_dir = "designate_tempest_plugin/tests" <NEW_LINE> full_test_dir = os.path.join(base_path, test_dir) <NEW_LINE> retu...
A DesignateTempestPlugin class provides the basic hooks for an external plugin to provide tempest the necessary information to run the plugin.
6259906aaad79263cf42ffa3
class ManagePosixCI(object): <NEW_LINE> <INDENT> def __init__(self, core_ci): <NEW_LINE> <INDENT> self.core_ci = core_ci <NEW_LINE> self.ssh_args = ['-o', 'BatchMode=yes', '-o', 'StrictHostKeyChecking=no', '-i', self.core_ci.ssh_key.key] <NEW_LINE> if self.core_ci.platform == 'freebsd': <NEW_LINE> <INDENT> self.become ...
Manage access to a POSIX instance provided by Ansible Core CI.
6259906a8e7ae83300eea87c
class LinkEmpty(Exception): <NEW_LINE> <INDENT> pass
空链表异常
6259906afff4ab517ebcf009
class TaskUpdate(models.Model): <NEW_LINE> <INDENT> job_exe = models.ForeignKey('job.JobExecution', on_delete=models.PROTECT) <NEW_LINE> task_id = models.CharField(max_length=250) <NEW_LINE> status = models.CharField(max_length=250) <NEW_LINE> timestamp = models.DateTimeField(blank=True, null=True) <NEW_LINE> source = ...
Represents a status update received for a task :keyword job_exe: The job execution that the task belongs to :type job_exe: :class:`django.db.models.ForeignKey` :keyword task_id: The task ID :type task_id: :class:`django.db.models.CharField` :keyword status: The status of the task :type status: :class:`django.db.models...
6259906a9c8ee82313040d7f
class sinogram(object): <NEW_LINE> <INDENT> io = [] <NEW_LINE> meta = [] <NEW_LINE> display = [] <NEW_LINE> analyse = [] <NEW_LINE> process = [] <NEW_LINE> reconstruction = [] <NEW_LINE> data = [] <NEW_LINE> _wisdom_status = 1 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.io = io(self) <NEW_LINE> self.meta = ...
Class that will contain the raw data and links to all operations that we need to process and reconstruct it.
6259906a3539df3088ecda8d
class StateMachine(FileDict): <NEW_LINE> <INDENT> def __init__(self, node_id): <NEW_LINE> <INDENT> filename = os.path.join(config.log_path, '{}.state_machine'.format(node_id)) <NEW_LINE> super().__init__(filename) <NEW_LINE> <DEDENT> def apply(self, command): <NEW_LINE> <INDENT> self.update(command)
Raft Replicated State Machine — dict
6259906ae5267d203ee6cfb5
class SendCustomAlarmMsgResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.RequestId = params.get("RequestId")
SendCustomAlarmMsg response structure.
6259906aac7a0e7691f73cd6
class Multilevel_Grid(Grid): <NEW_LINE> <INDENT> def initialize(self): <NEW_LINE> <INDENT> self.levels = [] <NEW_LINE> self.levelOf = {} <NEW_LINE> self.stairs = {} <NEW_LINE> <DEDENT> def add_level(self, rows, cols, **kwargs): <NEW_LINE> <INDENT> grid = Rectangular_Grid(rows, cols, **kwargs) <NEW_LINE> self.add_grid(g...
a class for multi-level mazes
6259906a435de62698e9d5fa
class Bonus(AbstractDnDEntity): <NEW_LINE> <INDENT> stackable = models.BooleanField(blank=False)
A type of Bonus that can be granted
6259906a7047854f46340ba5
@Document.persistenceSchema.Persistent <NEW_LINE> class DependencyRelation(object): <NEW_LINE> <INDENT> @observable_property <NEW_LINE> def span(self): <NEW_LINE> <INDENT> controller = self.controller <NEW_LINE> target = self.target <NEW_LINE> guard((controller.span is not None) and (controller.span is target.span), Va...
A dependency relation between two constituents. Tokens also count as constituents for this purpose
6259906a167d2b6e312b8185
class MLP(object): <NEW_LINE> <INDENT> def __init__(self, rng, input_, n_in, n_hidden, n_out): <NEW_LINE> <INDENT> self.hiddenLayer = HiddenLayer( rng=rng, input_=input_, n_in=n_in, n_out=n_hidden, activation=T.tanh ) <NEW_LINE> self.logRegressionLayer = LogisticRegression( input_=self.hiddenLayer.output, n_in=n_hidden...
Multi-Layer Perceptron Class A multilayer perceptron is a feed-forward artificial neural network model that has one layer or more of hidden units and nonlinear activations. Intermediate layers usually have as activation function tanh or the sigmoid function (defined here by a ``HiddenLayer`` class) while the top laye...
6259906a3cc13d1c6d466f35
class ReaktorApiError(ReaktorError): <NEW_LINE> <INDENT> AUTHENTICATION_INVALID = u"AUTHENTICATION_INVALID" <NEW_LINE> DISCOVERY_SERVICE_ACCESS_ERROR = u"DISCOVERY_SERVICE_ACCESS_ERROR" <NEW_LINE> ILLEGAL_ARGUMENT_ERROR = u"ILLEGAL_ARGUMENT_ERROR" <NEW_LINE> UNKNOWN_ENTITY_ERROR = u"UNKNOWN_ENTITY_ERROR" <NEW_LINE> ILL...
ReaktorError to be thrown by class Reaktor, caused by the remote reaktor api. self.code here is a reaktor error message.
6259906a45492302aabfdcc7
class UpdateIgnoredWarning(object): <NEW_LINE> <INDENT> swagger_types = { 'id': 'str' } <NEW_LINE> attribute_map = { 'id': 'id' } <NEW_LINE> def __init__(self, id=None): <NEW_LINE> <INDENT> self._id = None <NEW_LINE> self.discriminator = None <NEW_LINE> self.id = id <NEW_LINE> <DEDENT> @property <NEW_LINE> def id(self)...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
6259906a627d3e7fe0e08677
class FakeStream(object): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> <DEDENT> def byte_to_seq(self, n): <NEW_LINE> <INDENT> return n <NEW_LINE> <DEDENT> def seq_final_arrival(self, n): <NEW_LINE> <INDENT> return None
Emulates a tcp.Direction with a predetermined data stream. Useful for debugging http message classes.
6259906a1b99ca400229012d
class Essay(AnswerSet): <NEW_LINE> <INDENT> def __init__(self, question): <NEW_LINE> <INDENT> AnswerSet.__init__(self, question) <NEW_LINE> <DEDENT> def toHTML(self, doc): <NEW_LINE> <INDENT> with doc.tag('textarea', name=self.question.getId(), placeholder=_('Your answer here')): <NEW_LINE> <INDENT> doc.text('')
Essay Answer : This Class represents the type of Answer with a free area text
6259906af548e778e596cd7b
class MLPAnimationCircles(_BaseMLPAnimation): <NEW_LINE> <INDENT> @property <NEW_LINE> def artists(self) -> Tuple[Circle, ...]: <NEW_LINE> <INDENT> return tuple(filter(lambda c: isinstance(c, Circle), self.ax.get_children())) <NEW_LINE> <DEDENT> def _add_particles(self, step: int = 0) -> None: <NEW_LINE> <INDENT> for i...
Not ideal for for simulations with large number of particles and/or number of steps. It uses ``matplotlib.patches.Circle`` to plot the particles, which results in * being zoom-friendly * particle radius being accurately represented * faster draw times
6259906a1f5feb6acb1643dd
class ThreadPool: <NEW_LINE> <INDENT> def __init__(self, num_threads): <NEW_LINE> <INDENT> self.tasks = Queue(num_threads) <NEW_LINE> for n in range(num_threads): <NEW_LINE> <INDENT> Worker(self.tasks, n) <NEW_LINE> <DEDENT> <DEDENT> def add_task(self, func, *args, **kargs): <NEW_LINE> <INDENT> self.tasks.put((func, ar...
Pool of threads consuming tasks from a queue
6259906a76e4537e8c3f0d72
@implementer(interfaces.ITransport) <NEW_LINE> class SSHSessionProcessProtocol(protocol.ProcessProtocol): <NEW_LINE> <INDENT> _signalValuesToNames = None <NEW_LINE> def __init__(self, session): <NEW_LINE> <INDENT> self.session = session <NEW_LINE> self.lostOutOrErrFlag = False <NEW_LINE> <DEDENT> def connectionMade(sel...
I am both an L{IProcessProtocol} and an L{ITransport}. I am a transport to the remote endpoint and a process protocol to the local subsystem.
6259906ae76e3b2f99fda1f1
class RepeatOr(Repeat): <NEW_LINE> <INDENT> delimiter_regex = "OR"
OR separated
6259906a796e427e5384ff67
class tab(WordprocessingMLElement): <NEW_LINE> <INDENT> pass
This element specifies a single custom tab stop within a set of custom tab stops applied as part of a set of customized paragraph properties in a document. Parent element: tabs
6259906a2c8b7c6e89bd4fd5
class Any(OctetString): <NEW_LINE> <INDENT> tagSet = tag.TagSet() <NEW_LINE> subtypeSpec = constraint.ConstraintsIntersection() <NEW_LINE> typeId = OctetString.getTypeId() <NEW_LINE> @property <NEW_LINE> def tagMap(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self._tagMap <NEW_LINE> <DEDENT> except Attrib...
Create |ASN.1| schema or value object. |ASN.1| class is based on :class:`~pyasn1.type.base.SimpleAsn1Type`, its objects are immutable and duck-type Python 2 :class:`str` or Python 3 :class:`bytes`. When used in Unicode context, |ASN.1| type assumes "|encoding|" serialisation. Keyword Args ------------ value: :class:`...
6259906aaad79263cf42ffa6
class OutputDict(dict): <NEW_LINE> <INDENT> def get(self, output_type=None, loss_type=None, hazard_output_id=None, poe=None, quantile=None, statistics=None, variable=None, insured=False): <NEW_LINE> <INDENT> return self[OutputKey(output_type, loss_type, hazard_output_id, poe, quantile, statistics, variable, insured)] <...
A dict keying OutputKey instances to database ID, with convenience setter and getter methods to manage Output containers. It also automatically links an Output type with its specific writer. Risk Calculators create OutputDict instances with Output IDs keyed by OutputKey instances. Worker tasks compute results than g...
6259906a4f88993c371f1117
class IndexHandler(tornado.web.RequestHandler): <NEW_LINE> <INDENT> def get(self, *args, **kwargs): <NEW_LINE> <INDENT> self.write('get...') <NEW_LINE> <DEDENT> def post(self, *args, **kwargs): <NEW_LINE> <INDENT> self.write('post...')
主页处理类
6259906a8a43f66fc4bf3982
class MyGame(arcade.Window): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__(WINDOW_WIDTH, WINDOW_HEIGHT, "Sudoku") <NEW_LINE> self.my_grid_sprites = None <NEW_LINE> self.my_textures = None <NEW_LINE> self.my_grid = None <NEW_LINE> self.square_selected = None <NEW_LINE> self.available_numbe...
Main Game Class
6259906a2c8b7c6e89bd4fd6
class CmcalibrateTests(GeneralSetUp): <NEW_LINE> <INDENT> def test_base_command(self): <NEW_LINE> <INDENT> c = Cmcalibrate() <NEW_LINE> self.assertEqual(c.BaseCommand, ''.join(['cd "',getcwd(),'/"; ','cmcalibrate'])) <NEW_LINE> c.Parameters['--mpi'].on() <NEW_LINE> self.assertEqual(c.BaseCommand, ...
Tests for the Cmcalibrate application controller
6259906a55399d3f05627d12
@pulumi.output_type <NEW_LINE> class GetAppSecSiemDefinitionsResult: <NEW_LINE> <INDENT> def __init__(__self__, id=None, json=None, output_text=None, siem_definition_name=None): <NEW_LINE> <INDENT> if id and not isinstance(id, str): <NEW_LINE> <INDENT> raise TypeError("Expected argument 'id' to be a str") <NEW_LINE> <D...
A collection of values returned by getAppSecSiemDefinitions.
6259906a92d797404e389753
@attr.s <NEW_LINE> class PayerNewRequest(FieldsCommentMixin, ApiRequest): <NEW_LINE> <INDENT> payer = Field(default=None, validator=attr.validators.instance_of(Payer)) <NEW_LINE> request_type = 'payer-new' <NEW_LINE> object_fields = ['payer'] <NEW_LINE> def get_hash_values(self): <NEW_LINE> <INDENT> return [self.timest...
Class representing a new payer to be sent to API.
6259906ae1aae11d1e7cf405
class RegionalQuotaCapability(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'region_name': {'key': 'regionName', 'type': 'str'}, 'cores_used': {'key': 'coresUsed', 'type': 'long'}, 'cores_available': {'key': 'coresAvailable', 'type': 'long'}, } <NEW_LINE> def __init__( self, *, region_name: Option...
The regional quota capacity. :param region_name: The region name. :type region_name: str :param cores_used: The number of cores used in the region. :type cores_used: long :param cores_available: The number of cores available in the region. :type cores_available: long
6259906ad268445f2663a755
class TeardownSystemMounts(JailStop): <NEW_LINE> <INDENT> pass
Teardown a jails mountpoints.
6259906a3539df3088ecda8f
class MsgM25FlashWriteStatus(SBP): <NEW_LINE> <INDENT> _parser = construct.Struct( 'status' / construct.Array(1, construct.Int8ul),) <NEW_LINE> __slots__ = [ 'status', ] <NEW_LINE> def __init__(self, sbp=None, **kwargs): <NEW_LINE> <INDENT> if sbp: <NEW_LINE> <INDENT> super( MsgM25FlashWriteStatus, self).__init__(sbp.m...
SBP class for message MSG_M25_FLASH_WRITE_STATUS (0x00F3). You can have MSG_M25_FLASH_WRITE_STATUS inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields. The flash status message writes to the 8-bit M25 flash status register. The device replies with a M...
6259906a7047854f46340ba7
class ProblematicSearchServers(SearchException): <NEW_LINE> <INDENT> def __init__(self, failed=EmptyI, invalid=EmptyI, unsupported=EmptyI): <NEW_LINE> <INDENT> SearchException.__init__(self) <NEW_LINE> self.failed_servers = failed <NEW_LINE> self.invalid_servers = invalid <NEW_LINE> self.unsupported_servers = unsuppor...
This class wraps exceptions which could appear while trying to do a search request.
6259906a45492302aabfdcc9
class EggHolderProductBitCost(MultiObjectiveTestProblem): <NEW_LINE> <INDENT> dim = 6 <NEW_LINE> num_objectives = 2 <NEW_LINE> _bounds = [(0.0, 20.), (0.0, 20.0), (0.0, 20.0), (0.0, 20.0), (0.0, 20.0), (0.0, 20.0)] <NEW_LINE> _ref_point = [0.5, -(w[0]+w[1]+w[2]+w[3]+w[4]+w[5])*20] <NEW_LINE> _max_hv = 1e3 <NEW_LINE> de...
Two objective problem composed of the following discrete objectives: y = TT_k binom.pmf(b_k, N_k, p_k) Bit_Cost = - (Sum_k w_k * b_k)
6259906a7b180e01f3e49c5c
class IsUserOrgAdminForUrlConnection(access.AccessChecker): <NEW_LINE> <INDENT> def checkAccess(self, data, check): <NEW_LINE> <INDENT> if not data.ndb_profile: <NEW_LINE> <INDENT> raise exception.Forbidden(message=access._MESSAGE_NO_PROFILE) <NEW_LINE> <DEDENT> if data.url_connection.organization not in data.ndb_profi...
AccessChecker that ensures that the logged in user is organization administrator for the connection which is retrieved from the URL data.
6259906afff4ab517ebcf00c
class Lightmap(list): <NEW_LINE> <INDENT> _pixels: List[bytes] = [b"\0" * 3] * 128 * 128 <NEW_LINE> _format = "3s" * 128 * 128 <NEW_LINE> def __getitem__(self, row) -> List[bytes]: <NEW_LINE> <INDENT> row_start = row * 128 <NEW_LINE> return self._pixels[row_start:row_start + 128] <NEW_LINE> <DEDENT> def flat(self) -> b...
Raw pixel bytes, 128x128 RGB_888 image
6259906a009cb60464d02d2b
class TimeInfoResult(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Duration = None <NEW_LINE> self.EndTs = None <NEW_LINE> self.StartTs = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Duration = params.get("Duration") <NEW_LINE> self.EndTs = params....
TimeInfoResult
6259906aa8370b77170f1bb7
class StringModel: <NEW_LINE> <INDENT> def __init__(self, msg): <NEW_LINE> <INDENT> self.msg = msg <NEW_LINE> <DEDENT> def to_list(self): <NEW_LINE> <INDENT> self.strIO_readlines = SP.to_lines(self.msg) <NEW_LINE> self.list = [] <NEW_LINE> for line in self.strIO_readlines: <NEW_LINE> <INDENT> new_line = SP.clearn_enter...
從Model String 解析出Class 以及Column 細節
6259906a2c8b7c6e89bd4fd7
class _ConstraintBodyHeatSource(CommandManager): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(_ConstraintBodyHeatSource, self).__init__() <NEW_LINE> self.pixmap = "FEM_ConstraintHeatflux" <NEW_LINE> self.menuetext = "Constraint body heat source" <NEW_LINE> self.tooltip = "Creates a FEM constraint b...
The FEM_ConstraintBodyHeatSource command definition
6259906a0a50d4780f7069b9
class DisplayPublisher(Configurable): <NEW_LINE> <INDENT> def _validate_data(self, source, data, metadata=None): <NEW_LINE> <INDENT> if not isinstance(source, basestring): <NEW_LINE> <INDENT> raise TypeError('source must be a str, got: %r' % source) <NEW_LINE> <DEDENT> if not isinstance(data, dict): <NEW_LINE> <INDENT>...
A traited class that publishes display data to frontends. Instances of this class are created by the main IPython object and should be accessed there.
6259906aaad79263cf42ffa8
class CosineNbrAttentionEmbedding(Encoder): <NEW_LINE> <INDENT> def __init__(self, input_dim, is_train, train_dropout=1.0, emb_dim=None, proj_e=None, proj_w=None, scope="attention"): <NEW_LINE> <INDENT> super(CosineNbrAttentionEmbedding, self).__init__() <NEW_LINE> self.input_dim = input_dim <NEW_LINE> self.scope = sco...
Compose embedding by attending to neighbors using simple dot product. Concatenates and projects (node, query_rel) to an embedding that is used to attend to the neighbor embeddings.
6259906a4f88993c371f1118
class CallbackImageProvider(AbstractImageProvider): <NEW_LINE> <INDENT> def __init__(self,name,image_provider_fn): <NEW_LINE> <INDENT> self.__name = name <NEW_LINE> self.__image_provider_fn = image_provider_fn <NEW_LINE> <DEDENT> def provide_image(self, image_set): <NEW_LINE> <INDENT> return self.__image_provider_fn(im...
An image provider proxy that calls the indicated callback functions (presumably in your module) to implement the methods
6259906a8e7ae83300eea881
class Spec(object): <NEW_LINE> <INDENT> def __init__(self, foreground_specs, blur_method='none', blur_level=0, motion_method='none', motion_level=0, motion_angle=45, noise_level=0, compression=0, scale=1.): <NEW_LINE> <INDENT> self.foreground_specs = foreground_specs <NEW_LINE> self.blur_method = blur_method <NEW_LINE>...
Class to represent the specification of artificial transformations and the types of foreground positions to be applied to each background images.
6259906a2c8b7c6e89bd4fd8
class AbstractActionFlag(object): <NEW_LINE> <INDENT> _immutable_fields_ = ["checkinterval_scaled?"] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._periodic_actions = [] <NEW_LINE> self._nonperiodic_actions = [] <NEW_LINE> self.has_bytecode_counter = False <NEW_LINE> self.fired_actions = None <NEW_LINE> self....
This holds in an integer the 'ticker'. If threads are enabled, it is decremented at each bytecode; when it reaches zero, we release the GIL. And whether we have threads or not, it is forced to zero whenever we fire any of the asynchronous actions.
6259906a92d797404e389754
class ShowSubMenu(InclusionTag): <NEW_LINE> <INDENT> name = 'fix_show_sub_menu' <NEW_LINE> template = 'menu/dummy.html' <NEW_LINE> options = Options( IntegerArgument('levels', default=100, required=False), Argument('root_level', default=None, required=False), IntegerArgument('nephews', default=100, required=False), Arg...
show the sub menu of the current nav-node. - levels: how many levels deep - root_level: the level to start the menu at - nephews: the level of descendants of siblings (nephews) to show - template: template used to render the navigation
6259906a63b5f9789fe86955
class App(Cli): <NEW_LINE> <INDENT> format = '%(levelname)s [%(name)s] %(message)s' <NEW_LINE> def __init__(self, app, shell_namespace=None, extra_files=None, bootstrap=None, shutdown=None): <NEW_LINE> <INDENT> self.app = app <NEW_LINE> self.shell_namespace = shell_namespace or {} <NEW_LINE> self.extra_files = extra_fi...
Development application
6259906a01c39578d7f1432e
class VMCTemplateChecksumError(VMCBaseError): <NEW_LINE> <INDENT> pass
This exception is raised when the template tries to replace a file with a checksum that is not recognised.
6259906ad268445f2663a756
class DisableFileSystemRedirection: <NEW_LINE> <INDENT> if is_windows(): <NEW_LINE> <INDENT> _disable = ctypes.windll.kernel32.Wow64DisableWow64FsRedirection <NEW_LINE> _revert = ctypes.windll.kernel32.Wow64RevertWow64FsRedirection <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> _disable = '' <NEW_LINE> _revert = '' <NEW...
When a 32 bit program runs on a 64 bit operating system the paths to C:/Windows/System32 automatically get redirected to the 32 bit version (C:/Windows/SysWow64), if you really do need to access the contents of System32, you need to disable the file system redirector first.
6259906aa8370b77170f1bb8
class DataActionRecord(models.Model): <NEW_LINE> <INDENT> data = models.ForeignKey("Data", null=True, blank=True) <NEW_LINE> action = models.CharField(max_length=24, blank=True, null=True) <NEW_LINE> time = models.DateTimeField(blank=True, null=True) <NEW_LINE> user = models.ForeignKey(User, blank=True, null=True) <NEW...
用户处理data记录表
6259906a0c0af96317c57958
class SuperiorHuntersDefense(FeatureSelector): <NEW_LINE> <INDENT> options = {'evasion': Evasion, 'stand against of the tide': StandAgainstTheTide, 'uncanny dodge': UncannyDodge} <NEW_LINE> name = "Superior Hunter's Defense (Select One)" <NEW_LINE> source = "Ranger (Hunter)"
Select a Superior Hunter's Defense option in "feature_choices" in your .py file from one of: evasion stand against the tide uncanny dodge
6259906aac7a0e7691f73cda
class InventoryAdapter(object): <NEW_LINE> <INDENT> def __init__(self, env): <NEW_LINE> <INDENT> self.env = env <NEW_LINE> if not hasattr(env, 'intersphinx_cache'): <NEW_LINE> <INDENT> self.env.intersphinx_cache = {} <NEW_LINE> self.env.intersphinx_inventory = {} <NEW_LINE> self.env.intersphinx_named_inventory = {} <NE...
Inventory adapter for environment
6259906a26068e7796d4e12c
class ListSubscriptionsInputSet(InputSet): <NEW_LINE> <INDENT> def set_AccessToken(self, value): <NEW_LINE> <INDENT> super(ListSubscriptionsInputSet, self)._set_input('AccessToken', value) <NEW_LINE> <DEDENT> def set_AccessTokenSecret(self, value): <NEW_LINE> <INDENT> super(ListSubscriptionsInputSet, self)._set_input('...
An InputSet with methods appropriate for specifying the inputs to the ListSubscriptions Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
6259906ab7558d5895464b2a
class AbstractRenderer(object): <NEW_LINE> <INDENT> def __init__(self, widget, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def draw(self): <NEW_LINE> <INDENT> pass
AbstractRenderer is the standard interface for renderers. Each renderer have to implement an initialization function __init__ and a draw method to do the actual drawing using OpenGL or by using other, more basic, renderers. Usually the renderers have also some custom functions that they use to update themselves. For ...
6259906afff4ab517ebcf00e
class Action(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.command = None <NEW_LINE> self.parameters = None <NEW_LINE> self.type = None <NEW_LINE> self.message = None <NEW_LINE> self._parameter_start_pos = 0 <NEW_LINE> <DEDENT> def setParameterStartPos(self,pos): <NEW_LINE> <INDENT> self._pa...
Action class, handles actual (system) calls. set command, parameters (template) type and log message
6259906ad6c5a102081e391c
class NodejsNpmPackAction(BaseAction): <NEW_LINE> <INDENT> NAME = "NpmPack" <NEW_LINE> DESCRIPTION = "Packaging source using NPM" <NEW_LINE> PURPOSE = Purpose.COPY_SOURCE <NEW_LINE> def __init__(self, artifacts_dir, scratch_dir, manifest_path, osutils, subprocess_npm): <NEW_LINE> <INDENT> super(NodejsNpmPackAction, sel...
A Lambda Builder Action that packages a Node.js package using NPM to extract the source and remove test resources
6259906a44b2445a339b7559
class Trip(ApiObject): <NEW_LINE> <INDENT> _class_keys = { 'user': User, 'offer': Offer, 'demand': Demand, } <NEW_LINE> clean_date = staticmethod(api_to_date) <NEW_LINE> clean_time = staticmethod(api_to_time) <NEW_LINE> clean_creation_date = staticmethod(api_to_datetime) <NEW_LINE> clean_modification_date = staticmetho...
Represents a python Trip object, to be manipulated by python views
6259906a460517430c432c4f
class DecodeError(BaseError): <NEW_LINE> <INDENT> pass
Raised if there is an error in decoding an AMF data stream.
6259906a56ac1b37e63038dc
class RdTrkr(object): <NEW_LINE> <INDENT> def __init__(self, pngpath): <NEW_LINE> <INDENT> self.pngpath = pngpath <NEW_LINE> im2 = Image.open(self.pngpath) <NEW_LINE> _lg.info("File: "+os.path.basename(self.pngpath)+" has metadata: "+str(im2.info))
Class to add some image metadata too Parameters ---------- pngpath: metadata: Returns ------- Notes ------- Example -------- >>> import imgtrkr as it >>> it.RdTrkr('/home/nfs/z3457920/hdrive/repos/test.png')
6259906a0a50d4780f7069ba
class WordpieceTokenizer(object): <NEW_LINE> <INDENT> def __init__(self, vocab, unk_token="'--OOV--'", max_input_chars_per_word=100): <NEW_LINE> <INDENT> self.vocab = vocab <NEW_LINE> self.unk_token = unk_token <NEW_LINE> self.max_input_chars_per_word = max_input_chars_per_word <NEW_LINE> <DEDENT> def tokenize(self, te...
Runs WordPiece tokenization.
6259906a76e4537e8c3f0d77
class TestFlagValid(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.flag = basic.flag() <NEW_LINE> <DEDENT> def test_true(self): <NEW_LINE> <INDENT> result = self.flag.parseString('Y') <NEW_LINE> self.assertEqual('Y', result[0]) <NEW_LINE> <DEDENT> def test_false(self): <NEW_LINE> <IND...
Tests that the flag field accepts and parses valid values.
6259906aaad79263cf42ffaa
class StudyFilter(filters.FilterSet): <NEW_LINE> <INDENT> description = filters.LookupChoiceFilter( lookup_choices=[ ("contains", "Contains (case-sensitive)"), ("icontains", "Contains (case-insensitive)"), ("exact", "Exact"), ] ) <NEW_LINE> created_after_date = filters.DateFilter("date", lookup_expr="gte") <NEW_LINE> c...
Provides filtering functionality for the :class:`~django_dicom.views.study.StudyViewSet`. Available filters are: * *id*: Primary key * *uid*: Study instance UID * *description*: Study description (contains, icontains, or exact) * *created_after_date*: Create after date * *created_before_date*: Cre...
6259906a38b623060ffaa44c
class ArchiveError(MBSError): <NEW_LINE> <INDENT> def __init__(self, return_code=None, last_log_line=None): <NEW_LINE> <INDENT> self._return_code = return_code <NEW_LINE> self._last_log_line = last_log_line <NEW_LINE> msg = "Failed to zip and compress your backup" <NEW_LINE> details = "Failed to tar. Tar command return...
Base error for archive errors
6259906a442bda511e95d952
class NZBGetOptionsFlowHandler(OptionsFlow): <NEW_LINE> <INDENT> def __init__(self, config_entry): <NEW_LINE> <INDENT> self.config_entry = config_entry <NEW_LINE> <DEDENT> async def async_step_init(self, user_input: ConfigType | None = None): <NEW_LINE> <INDENT> if user_input is not None: <NEW_LINE> <INDENT> return sel...
Handle NZBGet client options.
6259906afff4ab517ebcf00f
@node(params=['key', 'caseid']) <NEW_LINE> class InputPathFromKey(Node): <NEW_LINE> <INDENT> def output(self): <NEW_LINE> <INDENT> return _lookupInputKey(self.key, self.caseid) <NEW_LINE> <DEDENT> def show(self): <NEW_LINE> <INDENT> return self.output()
An input path found by looking up its key in INPUT_KEYS in pnlpipe_config.py and substituting its caseid.
6259906a91f36d47f2231a89
class DownloadThread(threading.Thread): <NEW_LINE> <INDENT> _counter = 0 <NEW_LINE> when_all_finished = threading.Event() <NEW_LINE> def __init__(self, url, update_callback): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> DownloadThread._counter += 1 <NEW_LINE> self.url = url <NEW_LINE> self.name = md5(...
Класс простого потока индикации прогресса. _percentage - текущий процент выполнения операции _update - функция, которая вызывается при загрузке новой части файла _finish - функция, которая вызывает после загрузки файла
6259906a009cb60464d02d2e
class StandardCore(Core): <NEW_LINE> <INDENT> def __init__(self, sxc_root): <NEW_LINE> <INDENT> self.root = sxc_root <NEW_LINE> self.__output = StandardOutput() <NEW_LINE> self.__aggregators = None <NEW_LINE> self.__actuators = None <NEW_LINE> self.__utils = StandardUtils(self.__output) <NEW_LINE> self.__source_dir = o...
Standard implementation of Core.
6259906a4527f215b58eb59a
class AbstractHistory(models.Model): <NEW_LINE> <INDENT> ACTIONS = ( ("Create", "Create"), ("Delete", "Delete"), ("Modify", "Modify"), ("Revise", "Revise"), ("Promote", "Promote"), ("Demote", "Demote"), ("Cancel", "Cancel"), ("Publish", "Publish"), ("Unpublish", "Unpublish"), ) <NEW_LINE> class Meta: <NEW_LINE> <INDENT...
History model. This model records all events related to :class:`.PLMObject` :model attributes: .. attribute:: plmobject :class:`.PLMObject` of the event .. attribute:: action type of action (see :attr:`.ACTIONS`) .. attribute:: details type of action (see :attr:`.ACTIONS`) .....
6259906a55399d3f05627d16
class HotelTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.first_hotel = hotel.Hotel( property_name='Party', property_type='HOTEL', local='MIAMI', star_rating=3, week_price=120, weekend_price=100, loyalty_week_price=90, loyalty_weekend_price=90 ) <NEW_LINE> <DEDENT> def tearDown(s...
Tests for the ``Hotel`` class.
6259906a091ae35668706427
class TestUpgrade(test_util.TensorFlowTestCase): <NEW_LINE> <INDENT> def _upgrade(self, old_file_text): <NEW_LINE> <INDENT> in_file = six.StringIO(old_file_text) <NEW_LINE> out_file = six.StringIO() <NEW_LINE> upgrader = tf_upgrade.TensorFlowCodeUpgrader() <NEW_LINE> count, report, errors = ( upgrader.process_opened_fi...
Test various APIs that have been changed in 1.0. We also test whether a converted file is executable. test_file_v0_11.py aims to exhaustively test that API changes are convertible and actually work when run with current TensorFlow.
6259906a16aa5153ce401cce
class CompleteUploadRequest(object): <NEW_LINE> <INDENT> deserialized_types = { 'part_e_tags': 'list[ask_smapi_model.v0.catalog.upload.pre_signed_url_item.PreSignedUrlItem]' } <NEW_LINE> attribute_map = { 'part_e_tags': 'partETags' } <NEW_LINE> supports_multiple_types = False <NEW_LINE> def __init__(self, part_e_tags=N...
:param part_e_tags: List of (eTag, part number) pairs for each part of the file uploaded. :type part_e_tags: (optional) list[ask_smapi_model.v0.catalog.upload.pre_signed_url_item.PreSignedUrlItem]
6259906a7d847024c075dbcf
class JobDetail(mixins.RetrieveModelMixin, generics.GenericAPIView): <NEW_LINE> <INDENT> queryset = Job.objects.all() <NEW_LINE> lookup_field = 'name' <NEW_LINE> def get_serializer_class(self): <NEW_LINE> <INDENT> if self.request.method == 'GET': <NEW_LINE> <INDENT> return JobDetailSerializer <NEW_LINE> <DEDENT> <DEDEN...
API endpoint to return the steps and configuration for the jobs
6259906ad486a94d0ba2d7b3
class PkgManager(AbstractPkgManager): <NEW_LINE> <INDENT> CMDPREFIX_DETECT = 'pkg search -l' <NEW_LINE> CMDPREFIX_UPDATE = 'pkg refresh' <NEW_LINE> CMDPREFIX_INSTALL = 'pkg install' <NEW_LINE> CMDPREFIX_REMOVE = 'pkg uninstall' <NEW_LINE> CMDPREFIX_ADDREPO = 'pkg set-publisher -O' <NEW_LINE> SOURCELISTS_DIR = '' <NEW_L...
Image Packaging System Manager(OpenSolaris)
6259906a01c39578d7f1432f
class InstallGOScanners: <NEW_LINE> <INDENT> def install_scanner(self, scannerName): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> scanner_installation_message = subprocess.check_output([GO_CMD, "get", scanner_install_instructions[scannerName]]) <NEW_LINE> print(scanner_installation_message.decode("utf-8")) <NEW_LINE> p...
Install the scanners as needed
6259906add821e528d6da57b
class RevokeResponse: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swaggerTypes = { 'result': 'RevokeResult', 'status': 'str', 'error_message': 'str', 'composedOn': 'long' } <NEW_LINE> self.result = None <NEW_LINE> self.status = None <NEW_LINE> self.error_message = None <NEW_LINE> self.composedOn = ...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
6259906a7047854f46340baa
class NutritionOrderSupplement(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_name = "NutritionOrderSupplement" <NEW_LINE> def __init__(self, jsondict=None): <NEW_LINE> <INDENT> self.instruction = None <NEW_LINE> self.productName = None <NEW_LINE> self.quantity = None <NEW_LINE> self.schedule = None <NE...
Supplement components. Oral nutritional products given in order to add further nutritional value to the patient's diet.
6259906a3cc13d1c6d466f3a
class XMLPayload(StanzaPayload): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> if isinstance(data, StanzaPayload): <NEW_LINE> <INDENT> data = data.as_xml() <NEW_LINE> <DEDENT> if not isinstance(data, ElementClass): <NEW_LINE> <INDENT> raise TypeError("ElementTree.Element required") <NEW_LINE> <DEDEN...
Transparent XML payload for stanza. This object can be used for any stanza payload. It doesn't decode the XML element, but instead keeps it in the ElementTree format. :Ivariables: - `xml_element_name`: qualified name of the wrapped element - `element`: the wrapped element :Types: - `xml_element_name`: `un...
6259906ae5267d203ee6cfb8
class WrongAgencyName(Exception): <NEW_LINE> <INDENT> pass
Custom exception
6259906abaa26c4b54d50a9c
class Plugin(PluginInterface): <NEW_LINE> <INDENT> def get_name(self): <NEW_LINE> <INDENT> return "coverage" <NEW_LINE> <DEDENT> def get_config(self): <NEW_LINE> <INDENT> return { 'config_filename': False // Cmdline(arg='--cov-config') // Doc('Coverage configuration file'), 'report_type': 'html' // Cmdline(arg='--cov-r...
Enables saving coverage information for test runs For more information see https://slash.readthedocs.org/en/master/builtin_plugins.html#coverage
6259906ad486a94d0ba2d7b4
class ZohoOAuth2(httpx.Auth): <NEW_LINE> <INDENT> SCHEME = "https" <NEW_LINE> BASE = "accounts.zoho.com" <NEW_LINE> def __init__(self, client_id, client_secret, scope, redirect): <NEW_LINE> <INDENT> self.client_id = client_id <NEW_LINE> self.client_secret = client_secret <NEW_LINE> self.scope = scope <NEW_LINE> self.re...
HTTPX custom authorization class to preform the OAuth 2.0 implementation on the Zoho API. See all OAuth API docs at: https://www.zoho.com/accounts/protocol/oauth.html
6259906a627d3e7fe0e0867e
class StateError(GXIntEnum): <NEW_LINE> <INDENT> SERVICE_NOT_ALLOWED = 1 <NEW_LINE> SERVICE_UNKNOWN = 2
DLMS state errors.
6259906a76e4537e8c3f0d79