code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class DSSEAttestationOccurrence(proto.Message): <NEW_LINE> <INDENT> envelope = proto.Field( proto.MESSAGE, number=1, message=common.Envelope, ) <NEW_LINE> statement = proto.Field( proto.MESSAGE, number=2, oneof="decoded_payload", message=intoto_statement.InTotoStatement, ) | Deprecated. Prefer to use a regular Occurrence, and populate
the Envelope at the top level of the Occurrence.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
envelope (grafeas.grafeas_v1.types.Envelope):
If doing something security cr... | 62598f00e1aae11d1e7cdd30 |
class Member(BrowserDefaultMixin, BaseMember, atapi.BaseContent): <NEW_LINE> <INDENT> security = ClassSecurityInfo() <NEW_LINE> base_archetype = atapi.BaseContent <NEW_LINE> def __call__(self, *args, **kwargs): <NEW_LINE> <INDENT> return self.getId() | A regular non-folderish member content object. | 62598f003d592f4c4edb98c9 |
class InOut(): <NEW_LINE> <INDENT> def __init__(self, path): <NEW_LINE> <INDENT> self.path = path <NEW_LINE> self.groups = [] <NEW_LINE> <DEDENT> def card_groups_name(self): <NEW_LINE> <INDENT> for file in os.listdir(self.path): <NEW_LINE> <INDENT> if(file.endswith(".xml")): <NEW_LINE> <INDENT> self.groups.append(file)... | 实现卡片的读入 | 62598f00f9cc0f698b1c47bc |
class TrainRepetition(TransformerMixin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.column_names = ['train_repetition_flag'] <NEW_LINE> <DEDENT> def fit(self, X): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def transform(self, X): <NEW_LINE> <INDENT> return X[self.column_names] <NEW_LINE> ... | This feature counts the times that the data scientist train and evaluate a model/s,
than executed some actions without any changes and then train and evaluate the same model/s again
Notes:
1. actions required_information are required for that feature as well
2. train_eval_loop required_information are required... | 62598f00f548e778e5969f62 |
class MonitoredResourcesOperations(object): <NEW_LINE> <INDENT> models = _models <NEW_LINE> def __init__(self, client, config, serializer, deserializer): <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._serialize = serializer <NEW_LINE> self._deserialize = deserializer <NEW_LINE> self._config = config <NEW_LI... | MonitoredResourcesOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~azure.mgmt.elastic.models
:param client:... | 62598f00adb09d7d5dc08f8f |
class TileMatrix: <NEW_LINE> <INDENT> def __init__(self, image_file_name, size): <NEW_LINE> <INDENT> self.image = self._load_and_process(image_file_name) <NEW_LINE> self.size = size <NEW_LINE> <DEDENT> def get_tile(self, row, column): <NEW_LINE> <INDENT> return self.image.subsurface(Rect(row * self.size[0], self.size[0... | This class handles the matrix of sprites which are arranged in a grid in a single image file. A single sprite can be
extracted by its zero-based row and column numbers. | 62598f004c34283577618cc4 |
class QueueFrontier(Frontier): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> <DEDENT> def remove_point(self): <NEW_LINE> <INDENT> if len(self._points) == 0: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> point = self._points[0] <NEW_LINE> self._... | QueueFrontier.py
A class that represents the queue based algorithm (FIFO) for searching
a maze.
Author: Chris Wolf
Version: 1.0.0 (June 25, 2020) | 62598f004428ac0f6e656f29 |
class Encryption(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def _achieve_config(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def encrypt(self,plaintext): <NEW_LINE> <INDENT> return plaintext <NEW_LINE> <DEDENT> def decrypt(self,ciphertext): <NEW_LINE> <INDENT> return ... | Base function for encrypt value, just return the value itself. | 62598f008a349b6b43684c1f |
@dynamically_registered(lookup='lookup', length=None, iterator=None) <NEW_LINE> class TestSuiteConfig(abc.ABC): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def lookup(name: str) -> Type['TestSuiteConfig']: <NEW_LINE> <INDENT> ... <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> @abc.abstractmethod <NEW_LINE> def from_dict(... | Describes a test suite configuration. | 62598f001f5feb6acb161630 |
class Expr(object): <NEW_LINE> <INDENT> def __init__(self, enclosingTemplate): <NEW_LINE> <INDENT> self.enclosingTemplate = enclosingTemplate <NEW_LINE> self.indentation = '' <NEW_LINE> <DEDENT> def write(self, this, out): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @deprecated <NEW_LINE> def getE... | A string template expression embedded within the template.
A template is parsed into a tokenized vector of Expr objects
and then executed after the user sticks in attribute values.
This list of Expr objects represents a "program" for the StringTemplate
evaluator. | 62598f002c8b7c6e89bd219f |
class TestSchedule(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.schedule = Schedule() <NEW_LINE> <DEDENT> def test_init_schedule(self): <NEW_LINE> <INDENT> self.assertEqual('US', self.schedule.country_code) <NEW_LINE> self.assertTrue(self.schedule.date, time.strftime('%Y-%m-%d')) <N... | Tests Schedule class in tvmaze.py | 62598f0060cbc95b06362d0d |
class CameraData: <NEW_LINE> <INDENT> def __init__(self, hass, auth): <NEW_LINE> <INDENT> self._hass = hass <NEW_LINE> self.auth = auth <NEW_LINE> self.camera_data = None <NEW_LINE> <DEDENT> def get_all_cameras(self): <NEW_LINE> <INDENT> self.update() <NEW_LINE> cameras = [] <NEW_LINE> for camera in self.camera_data.ca... | Get the latest data from Netatmo. | 62598f0010dbd63aa1c6f55c |
class ElementViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Element.objects.all() <NEW_LINE> serializer_class = ElementSerializer <NEW_LINE> filter_backends = [filters.DjangoFilterBackend] <NEW_LINE> filterset_fields = ('name', 'symbol', 'atomic_number', 'period', 'group') | API endpoint that allows Elements to be viewed or edited. | 62598f00f9cc0f698b1c47bd |
class CcsRaftSetup(CcsSetup): <NEW_LINE> <INDENT> def __init__(self, configFile, sys_paths=()): <NEW_LINE> <INDENT> super(CcsRaftSetup, self).__init__(configFile, sys_paths=sys_paths) <NEW_LINE> self.commands.append('from collections import namedtuple') <NEW_LINE> self.commands.append("SensorInfo = namedtuple('SensorIn... | Subclass of CcsSetup that will query the eTraveler db tables for
the sensors in the raft specified as LCATR_UNIT_ID. | 62598f0067a9b606de5449a7 |
class UpdateAction: <NEW_LINE> <INDENT> def __init__(self, type=None, key=[], values=None, partial_update=False): <NEW_LINE> <INDENT> self.type = type <NEW_LINE> self.key = key <NEW_LINE> self.values = values <NEW_LINE> self.old_values = None <NEW_LINE> self.partial_update = partial_update <NEW_LINE> <DEDENT> def set_o... | A data structure representing a single update manager action, including any necessary data to reverse the action. | 62598f00656771135c488067 |
class HintLabel(QLabel): <NEW_LINE> <INDENT> def __init__(self, elem: webelem.AbstractWebElement, context: 'HintContext') -> None: <NEW_LINE> <INDENT> super().__init__(parent=context.tab) <NEW_LINE> self._context = context <NEW_LINE> self.elem = elem <NEW_LINE> self.setTextFormat(Qt.RichText) <NEW_LINE> self.setAttribu... | A label for a link.
Attributes:
elem: The element this label belongs to.
_context: The current hinting context. | 62598f00091ae356687035f7 |
class EditDashboardHandler(base.RequestHandlerBase): <NEW_LINE> <INDENT> def post(self): <NEW_LINE> <INDENT> current_owner_email = None <NEW_LINE> try: <NEW_LINE> <INDENT> dashboard_id = http_util.GetIntegerParam(self.request, fields.ID) <NEW_LINE> row = dashboard_model.Dashboard.GetDashboard(dashboard_id) <NEW_LINE> i... | Http handler for modifying a dashboard definition.
This POST method is used to save a JSON definition of a dashboard matching
the provided ID.
Supported Modes: POST
POST parameters:
id: number. The ID of the dashboard.
data: string. The Json representation of the dashboard. | 62598f0021bff66bcd721634 |
class TeacherForm(forms.Form): <NEW_LINE> <INDENT> city = ChoiceNoValidateField(label=u'城市') <NEW_LINE> name = forms.CharField(label=u'名称', max_length=20) <NEW_LINE> mobile = forms.CharField(label=u'电话', max_length=20) <NEW_LINE> school_area = forms.CharField(label=u'学校区域', max_length=20) <NEW_LINE> course_system = Mul... | teacher | 62598f004f88993c371ef9d8 |
class XiaomiMotionSensor(XiaomiBinarySensor): <NEW_LINE> <INDENT> def __init__(self, device, hass, xiaomi_hub, config_entry): <NEW_LINE> <INDENT> self._hass = hass <NEW_LINE> self._no_motion_since = 0 <NEW_LINE> self._unsub_set_no_motion = None <NEW_LINE> if "proto" not in device or int(device["proto"][0:1]) == 1: <NEW... | Representation of a XiaomiMotionSensor. | 62598f00ec188e330fdf728b |
class Wrapper(object): <NEW_LINE> <INDENT> needs_self_client = False <NEW_LINE> wrapper_type = '<undefined-Wrapper>' <NEW_LINE> required_secret_attr = None <NEW_LINE> required_secret_label = None <NEW_LINE> build_if_not_active = False <NEW_LINE> def __init__(self, config, server=None): <NEW_LINE> <INDENT> self.config =... | Base class for non-queue based connections wrappers.
| 62598f004c34283577618cc6 |
class SettingsForm(forms.Form): <NEW_LINE> <INDENT> sending_email_once_a_day = forms.BooleanField( label=_("Sende mir täglich eine Zusammenfassung per E-Mail."), required=False, help_text=_("Gibt an, ob du über alle Aktivitäten gesammelt oder über " "jede Aktivität einzeln benachrichtigt wirst.")) | Form for the available settings
sending_email_once_a_day: activating the daily activity summary | 62598f0097e22403b38398c3 |
class UnbinnedNLL(Estimator): <NEW_LINE> <INDENT> def __init__( self, function: ParametrizedFunction, data: DataSample, phsp: DataSample, phsp_volume: float = 1.0, backend: str = "numpy", ) -> None: <NEW_LINE> <INDENT> self.__data = {k: np.array(v) for k, v in data.items()} <NEW_LINE> self.__phsp = {k: np.array(v) for ... | Unbinned negative log likelihood estimator.
The **log likelihood** :math:`\log\mathcal{L}` for a given function
:math:`f_\mathbf{p}: X^m \rightarrow \mathbb{R}` over :math:`N` data points
:math:`\mathbf{x}` and over a (phase space) domain of
:math:`n_\mathrm{phsp}` points :math:`\mathbf{x}_\mathrm{phsp}`, is given
by:... | 62598f003346ee7daa336b55 |
class MarianMTModel(BartForConditionalGeneration): <NEW_LINE> <INDENT> def prepare_logits_for_generation(self, logits, cur_len, max_length): <NEW_LINE> <INDENT> logits[:, self.config.pad_token_id] = float("-inf") <NEW_LINE> if cur_len == max_length - 1 and self.config.eos_token_id is not None: <NEW_LINE> <INDENT> self.... | Pytorch version of marian-nmt's transformer.h (c++). Designed for the OPUS-NMT translation checkpoints.
Model API is identical to BartForConditionalGeneration.
Available models are listed at `Model List <https://huggingface.co/models?search=Helsinki-NLP>`__
Examples::
from transformers import MarianTokenizer, Mar... | 62598f0057b8e32f525075f0 |
class OnDelete(Element): <NEW_LINE> <INDENT> def __init__(self, data, parent): <NEW_LINE> <INDENT> self.action = None <NEW_LINE> super(OnDelete, self).__init__(data, parent) <NEW_LINE> <DEDENT> def parse(self): <NEW_LINE> <INDENT> self.action = self._get_required_attrib('Action') <NEW_LINE> if self.action not in ['Casc... | Class defining an OData OnDelete element.
Element edm.OnDelete
Describes the action the service will take on related entities when the entity on which the
navigation property is defined is deleted
OData Version 4.0 Part 3 Section 7.3
Attributes:
action: Defines the action the service will take on related entities... | 62598f0099fddb7c1ca622f0 |
class PaillierMulMsg(PaillierMessage): <NEW_LINE> <INDENT> def __init__(self, x, m, n): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.m = m <NEW_LINE> self.n = n <NEW_LINE> <DEDENT> def toJson(self): <NEW_LINE> <INDENT> obj = { 'type': self.MUL, 'ciphertext': self.x, 'multiplier': self.m, 'n': s... | A Paillier computation request message that sends an encrypted integer x and
a plaintext integer m, with the expectation that the server can return the
encrypted result of x * m % n | 62598f00167d2b6e312b597a |
class ProjectDeployment(AnsibleDeployment): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ProjectDeployment, self).__init__( HERE, os.path.join(HERE, 'vars.yaml')) | specific task for Ansible deployment | 62598f0055399d3f05624f04 |
class WeiBoSpider(Spider): <NEW_LINE> <INDENT> def get_weibo_html(self): <NEW_LINE> <INDENT> driver = self.open_driver() <NEW_LINE> driver.get('https://weibo.com/') <NEW_LINE> html = driver.page_source <NEW_LINE> print(html) <NEW_LINE> self.close_driver() <NEW_LINE> <DEDENT> def get_cookies(self, username, password): <... | docstring for WeiBoSpider | 62598f0010dbd63aa1c6f55e |
class MercedesCar(object): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return "Mercedes Car class" | 梅赛德斯 | 62598f0063b5f9789fe83b3e |
class Body(object): <NEW_LINE> <INDENT> def __init__(self, content, schema, required): <NEW_LINE> <INDENT> self.content = content <NEW_LINE> self.schema = schema <NEW_LINE> self.required = required <NEW_LINE> <DEDENT> def dumps(self): <NEW_LINE> <INDENT> if not self.schema: <NEW_LINE> <INDENT> return self.content or No... | Input's request handler | 62598f005fdd1c0f98e5c983 |
@implementer(IAuditEvent) <NEW_LINE> class AddVerifyEvent(BasicAuditEvent): <NEW_LINE> <INDENT> def __init__(self, context, id, d, userInfo, instanceUserInfo, siteInfo, instanceDatum): <NEW_LINE> <INDENT> super(AddVerifyEvent, self).__init__( context, id, ADD_VERIFY, d, userInfo, instanceUserInfo, siteInfo, None, insta... | An audit-trail event representing a person adding a verification
request for an email address. | 62598f003317a56b869bda53 |
class ETFDoFn(beam.DoFn): <NEW_LINE> <INDENT> def process(self, element): <NEW_LINE> <INDENT> raise NotImplemented | Construct an ETF representation of a basket of securities then use it to
transform prices pipelines into an ETF price | 62598f00091ae356687035f9 |
class Format(Enum): <NEW_LINE> <INDENT> PLAIN = 0 <NEW_LINE> UNICODE = 1 <NEW_LINE> HTML = 2 <NEW_LINE> LATEX = 3 | Format types enumeration. | 62598f007cff6e4e811b43c4 |
class DistributionError(Exception): <NEW_LINE> <INDENT> pass | Indicate an invalid android distribution. | 62598f00ec188e330fdf728d |
class Assignment: <NEW_LINE> <INDENT> def __init__(self, topic_partitions: Set[TopicPartition], *, loop): <NEW_LINE> <INDENT> assert isinstance(topic_partitions, (list, set, tuple)) <NEW_LINE> self._topic_partitions = frozenset(topic_partitions) <NEW_LINE> self._tp_state = {} <NEW_LINE> for tp in self._topic_partitions... | Describes current partition assignment. New instance will be created
on each group rebalance if automatic assignment is used.
States:
* Assigned
* Unassigned | 62598f00adb09d7d5dc08f93 |
class HashTableEntry: <NEW_LINE> <INDENT> def __init__(self, key, value): <NEW_LINE> <INDENT> self.key = key <NEW_LINE> self.value = value <NEW_LINE> self.next = None | Linked List hash table key/value pair | 62598f0023849d37ff84faa0 |
class DropException(Exception): <NEW_LINE> <INDENT> pass | 数据、消息丢弃 | 62598f0097e22403b38398c5 |
class SPEC_Date(ControlLineHandler, metaclass=AutoRegister): <NEW_LINE> <INDENT> key = r"#D" <NEW_LINE> def process(self, text, sdf_object, *args, **kws): <NEW_LINE> <INDENT> text = strip_first_word(text) <NEW_LINE> sp = text.split(" ") <NEW_LINE> if len(sp) == 1: <NEW_LINE> <INDENT> sdf_object.epoch = int(float(text))... | **#D** -- date/time stamp
IN-MEMORY REPRESENTATION
* (SpecDataFileHeader): **date** *str*, ISO8601 format
HDF5/NeXus REPRESENTATION
* file root-level attribute: **SPEC_date** *str* (value for 1st header block is used) | 62598f0099fddb7c1ca622f1 |
class TimeSequenceBase(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'type': {'required': True}, } <NEW_LINE> _attribute_map = { 'type': {'key': '@type', 'type': 'str'}, } <NEW_LINE> _subtype_map = { 'type': {'#Microsoft.VideoAnalyzer.VideoSequenceAbsoluteTimeMarkers': 'VideoSequenceAbsoluteTimeMarke... | A sequence of datetime ranges as a string.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: VideoSequenceAbsoluteTimeMarkers.
All required parameters must be populated in order to send to Azure.
:param type: Required. The discriminator for derived types.Constant filled by ... | 62598f009f288636728171d5 |
class FoodRegistrationView(View): <NEW_LINE> <INDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> registrations = FoodRegistration.objects.all() <NEW_LINE> from_date = request.GET.get('from') <NEW_LINE> to_date = request.GET.get('to') <NEW_LINE> slot = request.GET.get('slot') <NEW_LINE> if from_date: <... | API endpoint that allows foodregistrations to be viewed and created | 62598f00167d2b6e312b597c |
class Trans(object): <NEW_LINE> <INDENT> def __getattr__(self, real_name): <NEW_LINE> <INDENT> from djangocg.conf import settings <NEW_LINE> if settings.USE_I18N: <NEW_LINE> <INDENT> from djangocg.utils.translation import trans_real as trans <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> from djangocg.utils.translation ... | The purpose of this class is to store the actual translation function upon
receiving the first call to that function. After this is done, changes to
USE_I18N will have no effect to which function is served upon request. If
your tests rely on changing USE_I18N, you can delete all the functions
from _trans.__dict__.
Not... | 62598f009f288636728171d6 |
class HMMHelper: <NEW_LINE> <INDENT> def __init__(self, num_states, num_emissions): <NEW_LINE> <INDENT> self.__num_states = num_states <NEW_LINE> self.__num_emissions = num_emissions <NEW_LINE> self.hmm_model = hmm_model.HMM() <NEW_LINE> <DEDENT> def create_hmm(self, state_symbols, emission_symbols, priors=None, init_p... | class to help creating hmm instances | 62598f00ff9c53063f519041 |
class TestCli(unittest.TestCase): <NEW_LINE> <INDENT> def test_version(self): <NEW_LINE> <INDENT> runner = CliRunner() <NEW_LINE> result = runner.invoke(cli.version) <NEW_LINE> self.assertEqual(0, result.exit_code) <NEW_LINE> self.assertNotEqual('', result.output) <NEW_LINE> result = runner.invoke(cli.cli, args=['--ver... | Test all the contracts of the command line tool.
If something changes in here than you should consider that in your version
bumping scheme. | 62598f004f6381625f1989ac |
class ArrayQueue: <NEW_LINE> <INDENT> DEFAULT_CAPACITY = 10 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._data = [None] * ArrayQueue.DEFAULT_CAPACITY <NEW_LINE> self._size = 0 <NEW_LINE> self._front = 0 <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return self._size <NEW_LINE> <DEDENT> def is_em... | FIFO queue implementation using a python list as underlying storage. | 62598f007b180e01f3e48537 |
class PolicyTemplateGenerator: <NEW_LINE> <INDENT> def _ImportMessage(self, msg_txt): <NEW_LINE> <INDENT> msg_txt = msg_txt.decode('utf-8') <NEW_LINE> msg_txt = msg_txt.replace('$1', self._config['app_name']) <NEW_LINE> msg_txt = msg_txt.replace('$2', self._config['os_name']) <NEW_LINE> msg_txt = msg_txt.replace('$3', ... | Generates template text for a particular platform.
This class is used to traverse a JSON structure from a .json template
definition metafile and merge GUI message string definitions that come
from a .grd resource tree onto it. After this, it can be used to output
this data to policy template files using TemplateWriter... | 62598f005fc7496912d47763 |
class PuppetError(Exception): <NEW_LINE> <INDENT> pass | Raised when Puppet will have some problems. | 62598f00091ae356687035fb |
class LinearSpectStepper(SpectStepper): <NEW_LINE> <INDENT> def RightHandItemsSpect(self, u_spect, **kw): <NEW_LINE> <INDENT> if self.dim != 2: <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> coe = self.coe <NEW_LINE> rhi = 0 <NEW_LINE> for k in range(3): <NEW_LINE> <INDENT> for j in range(k+1): <NEW_... | Solver of second-order linear partial differential equations | 62598f007cff6e4e811b43c6 |
class ConfigType: <NEW_LINE> <INDENT> def __init__(self, configpath): <NEW_LINE> <INDENT> self.configfile = configpath <NEW_LINE> if self.filetype == 'json': <NEW_LINE> <INDENT> self.scripts = self.get_json_validation() <NEW_LINE> <DEDENT> elif self.filetype == 'xml': <NEW_LINE> <INDENT> self.scripts = self.get_xml_val... | This is the base class for config type.
All subclasses need the variables: name, filetype and help_info. All
subclasses with filetype json or xml also need schema for use with
validation.
name - Users will reference the config type as this on the command line,
eg. `cw-config download [name]` It is the name of the conf... | 62598f004a966d76dd5ed8b5 |
class LongThrower(ThrowerAnt): <NEW_LINE> <INDENT> name = 'Long' <NEW_LINE> "*** REPLACE THIS LINE ***" <NEW_LINE> min_range = 5 <NEW_LINE> food_cost = 2 <NEW_LINE> def nearest_bee(self, hive): <NEW_LINE> <INDENT> place, counter = self.place, 0 <NEW_LINE> while place.entrance is not hive: <NEW_LINE> <INDENT> if counter... | A ThrowerAnt that only throws leaves at Bees at least 5 places away. | 62598f00ec188e330fdf728f |
class Color(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def OutputRed(self, formatString): <NEW_LINE> <INDENT> print("\033[31;1m{}\033[0m".format(formatString)) <NEW_LINE> <DEDENT> def OutputGreen(self, formatString): <NEW_LINE> <INDENT> print("\033[32;1m{}\033[0m".form... | 说明:
前景色 背景色 颜色
---------------------------------------
30 40 黑色
31 41 红色
32 42 绿色
33 43 黃色
34 44 蓝色
35 45 紫红色
36 46 ... | 62598f0097e22403b38398c7 |
class EditBook(webapp2.RequestHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> user = users.get_current_user() <NEW_LINE> if not user: <NEW_LINE> <INDENT> self.redirect(users.create_login_url(self.request.uri)) <NEW_LINE> return <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> nickname = user.nickname() <N... | Editing a book web page.
Args:
webapp2.requestHandler: the webapp request to serve. | 62598f001f5feb6acb161636 |
class HealthMonitorSingleCreate(BaseHealthMonitorType): <NEW_LINE> <INDENT> name = wtypes.wsattr(wtypes.StringType(max_length=255)) <NEW_LINE> type = wtypes.wsattr( wtypes.Enum(str, *constants.SUPPORTED_HEALTH_MONITOR_TYPES), mandatory=True) <NEW_LINE> delay = wtypes.wsattr(wtypes.IntegerType(minimum=0), mandatory=True... | Defines mandatory and optional attributes of a POST request. | 62598f0010dbd63aa1c6f562 |
class LazySwitchableProxy(Wrapped, ConstForwarders): <NEW_LINE> <INDENT> def __init__(self, async_): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.async_ = async_ <NEW_LINE> self._ref = None <NEW_LINE> self._dirty = False <NEW_LINE> if async_: <NEW_LINE> <INDENT> self._notifier = Notifier(self._update_async) <... | A proxy to any observable object (possibly another proxy or some Wrapper like Var or Const). It tries to behave
exactly like the object itself.
It must implement WrapperInterface since it's possible that the object inside implements it. If the
Proxy was given as a parameter to the @reactive function, it should be obse... | 62598f00bf627c535bcafe56 |
class RootLogout(BrowserView): <NEW_LINE> <INDENT> logout = ViewPageTemplateFile('templates/plone-admin-logged-out.pt') <NEW_LINE> def __call__(self): <NEW_LINE> <INDENT> response = self.request.response <NEW_LINE> realm = response.realm <NEW_LINE> response.setStatus(401) <NEW_LINE> response.setHeader('WWW-Authenticate... | @@plone-root-logout | 62598f00a05bb46b38489258 |
class TestNotificationDetailsResponse(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'state': {'required': True}, } <NEW_LINE> _attribute_map = { 'context': {'key': 'Context', 'type': 'Context'}, 'state': {'key': 'State', 'type': 'str'}, 'completed_time': {'key': 'CompletedTime', 'type': 'str'}, 'crea... | The details of the test notification results.
All required parameters must be populated in order to send to Azure.
:ivar context: The context info.
:vartype context: ~$(python-base-namespace).v2021_09_01.models.Context
:ivar state: Required. The overall state.
:vartype state: str
:ivar completed_time: The completed t... | 62598f0097e22403b38398c8 |
class GingaTransform(Transform): <NEW_LINE> <INDENT> input_dims = 2 <NEW_LINE> output_dims = 2 <NEW_LINE> is_separable = False <NEW_LINE> viewer = None <NEW_LINE> def invalidate(self): <NEW_LINE> <INDENT> return Transform.invalidate(self) <NEW_LINE> <DEDENT> def _transform_xy(self, n): <NEW_LINE> <INDENT> win_x, win_y ... | The base Ginga transform. | 62598f00ad47b63b2c5a61f9 |
class WikiSyncLauncher(webapp2.RequestHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> resource_list = [] <NEW_LINE> resource_pages = getAllPages(resource_list) <NEW_LINE> num = 0 <NEW_LINE> for page in resource_pages: <NEW_LINE> <INDENT> taskqueue.add(url='/task/wikisync', params={'resource_id': page[0... | TODO. | 62598f0067a9b606de5449ac |
class SecurityGroupRule(APIResourceWrapper): <NEW_LINE> <INDENT> _attrs = ['id', 'parent_group_id', 'group_id', 'ip_protocol', 'from_port', 'to_port', 'groups', 'ip_ranges'] | Simple wrapper around
openstackx.extras.security_groups.SecurityGroupRule | 62598f005fdd1c0f98e5c988 |
class KNearestNeighbor(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def train(self, X, y): <NEW_LINE> <INDENT> self.X_train = X <NEW_LINE> self.y_train = y <NEW_LINE> <DEDENT> def predict(self, X, k=1, num_loops=0): <NEW_LINE> <INDENT> if num_loops == 0: <NEW_LINE> <INDE... | a kNN classifier with L2 distance | 62598f0050812a4eaa6200dc |
class Estimator(): <NEW_LINE> <INDENT> def __init__(self, scope="estimator", summaries_dir=None): <NEW_LINE> <INDENT> self.scope = scope <NEW_LINE> self.summary_writer = None <NEW_LINE> with tf.variable_scope(scope): <NEW_LINE> <INDENT> self._build_model() <NEW_LINE> if summaries_dir: <NEW_LINE> <INDENT> summary_dir = ... | Q-Value Estimator neural network.
This network is used for both the Q-Network and the Target Network. | 62598f00fbf16365ca792a7c |
class Sections(object): <NEW_LINE> <INDENT> DEFAULT = "setting" <NEW_LINE> TEST = "test" <NEW_LINE> SELECTOR = "selector" | Sections of CONF
| 62598f00377c676e912f6256 |
class Edge(object): <NEW_LINE> <INDENT> def __init__(self, value, node_from, node_to): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> self.node_from = node_from <NEW_LINE> self.node_to = node_to | docstring for Edge | 62598f0097e22403b38398c9 |
class State(BaseModel): <NEW_LINE> <INDENT> name = "" | Class state instance | 62598f00cc40096d616196cb |
class FRequest(MethodView): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get(): <NEW_LINE> <INDENT> user_id = my_dec.check_token() <NEW_LINE> if user_id == 'Missing': <NEW_LINE> <INDENT> return jsonify({'message': 'You cannot access that page without a token.'}), 401 <NEW_LINE> <DEDENT> elif user_id == 'Invalid': <... | Handles friend requests | 62598f001f5feb6acb161638 |
class PersonLanguage(BaseModel): <NEW_LINE> <INDENT> person_language_id = models.AutoField('person_language_id', primary_key=True) <NEW_LINE> person = models.ForeignKey('Person', verbose_name='person') <NEW_LINE> ref_language = models.ForeignKey('RefLanguage', verbose_name='ref_language_id', blank=True, null=True, on_d... | Represents a language spoken by a person. | 62598f00a8370b77170eedc2 |
class KeithleySMU(SCPI): <NEW_LINE> <INDENT> def __init__(self, interface, device='/dev/ttyUSB0'): <NEW_LINE> <INDENT> if interface == 'serial': <NEW_LINE> <INDENT> SCPI.__init__(self, interface='serial', device=device, baudrate=9600) <NEW_LINE> self.scpi_comm('FORMAT:ELEMENTS READ') <NEW_LINE> <DEDENT> <DEDENT> def se... | Simple driver for Keithley Model 2700 | 62598f005fcc89381b26561c |
class DiscussionReplySerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> id = serializers.Field(source='pk') <NEW_LINE> content = serializers.CharField() <NEW_LINE> creator_id = serializers.Field(source='creator.pk') <NEW_LINE> creator_username = serializers.Field(source='creator.username') <NEW_LINE> creator_... | This is serializer to use in dynamically created list under
discussion - e.g. list of other user's replies. | 62598f00bf627c535bcafe58 |
class SwaggerJSONRequestHandler(RequestHandler): <NEW_LINE> <INDENT> def __init__(self, application, request, **kwargs): <NEW_LINE> <INDENT> swagger_data = getattr(self, '_swagger_data', None) <NEW_LINE> swagger_url = getattr(self, '_swagger_url', None) <NEW_LINE> swagger_config = getattr(self, 'swagger_config', None) ... | Base Tornado handler with capabilities for validating input/output
of data based on the provided Swagger spec. | 62598f0060cbc95b06362d15 |
class SoupLinkScraper: <NEW_LINE> <INDENT> content_types = [ "text/html", "application/xhtml+xml" ] <NEW_LINE> __options = None <NEW_LINE> __queue_item = None <NEW_LINE> def __init__(self, options, queue_item): <NEW_LINE> <INDENT> self.__options = options <NEW_LINE> self.__queue_item = queue_item <NEW_LINE> <DEDENT> de... | The SoupLinkScraper finds URLs from href attributes in HTML using BeautifulSoup.
Attributes:
content_types list(str): The supported content types.
__options (obj): The settins/options object.
__queue_item (obj): The queue item containing the response to scrape. | 62598f0071ff763f4b5e6146 |
class Maintenance(AuthMixin, BaseView): <NEW_LINE> <INDENT> @expose('/') <NEW_LINE> def index(self): <NEW_LINE> <INDENT> return self.render('admin/maintenance/index.html') <NEW_LINE> <DEDENT> @expose('/replay_repopulate') <NEW_LINE> def replay_repopulate(self): <NEW_LINE> <INDENT> success = [] <NEW_LINE> failed = [] <N... | Views for maintenance replated functions | 62598f004f6381625f1989ae |
class BlobStreamDescriptorReader(StreamDescriptorReader): <NEW_LINE> <INDENT> def __init__(self, blob): <NEW_LINE> <INDENT> StreamDescriptorReader.__init__(self) <NEW_LINE> self.blob = blob <NEW_LINE> <DEDENT> def _get_raw_data(self): <NEW_LINE> <INDENT> def get_data(): <NEW_LINE> <INDENT> f = self.blob.open_for_readin... | Read a stream descriptor file which is a blob | 62598f00e1aae11d1e7cdd35 |
class BaseSettings(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._store = {} <NEW_LINE> self._to_save = {} <NEW_LINE> <DEDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> return self._store[key] <NEW_LINE> <DEDENT> def __setitem__(self, key, value): <NEW_LINE> <INDENT> self._store[key] =... | Store key-value pairs. | 62598f00ad47b63b2c5a61fc |
class LiveChannelInfo(object): <NEW_LINE> <INDENT> def __init__(self, status = 'enabled', description = '', target = None, last_modified = None, name = None, play_url = None, publish_url = None): <NEW_LINE> <INDENT> self.status = status <NEW_LINE> self.description = description <NEW_LINE> self.target = target <NEW_LINE... | Live channel(直播频道)配置。
:param status: 直播频道的状态,合法的值为"enabled"和"disabled"。
:type status: str
:param description: 直播频道的描述信息,最长为128字节。
:type description: str
:param target: 直播频道的推流目标节点,包含目标协议相关的参数。
:type class:`LiveChannelInfoTarget <oss2.models.LiveChannelInfoTarget>`
:param last_modified: 直播频道的最后修改时间,这个字段仅在`ListLiveCh... | 62598f00dc8b845886d51fac |
class FromConfigPIDsProviders: <NEW_LINE> <INDENT> def __init__(self, persistent_identifiers, persistent_identifier_providers): <NEW_LINE> <INDENT> self.persistent_identifiers = persistent_identifiers <NEW_LINE> self.persistent_identifier_providers = persistent_identifier_providers <NEW_LINE> <DEDENT> def __get__(self,... | Data descriptor for pid providers configuration. | 62598f003d592f4c4edb98d3 |
class HTMLDoc(base.parse.HTMLDoc): <NEW_LINE> <INDENT> _name = '' <NEW_LINE> _brand = '' <NEW_LINE> _price = 0 <NEW_LINE> _old_price = 0 <NEW_LINE> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self._name <NEW_LINE> <DEDENT> @property <NEW_LINE> def brand(self): <NEW_LINE> <INDENT> return self._brand ... | Standard Fields of HTML parse | 62598f00fbf16365ca792a7e |
class User(ndb.Model): <NEW_LINE> <INDENT> username = ndb.StringProperty(required=True) <NEW_LINE> email = ndb.StringProperty() <NEW_LINE> email_notification = ndb.BooleanProperty() <NEW_LINE> @classmethod <NEW_LINE> def is_email_valid(cls, email): <NEW_LINE> <INDENT> request = requests.get( "https://api.mailgun.net/v3... | User object | 62598f00656771135c48806f |
@dataclass <NEW_LINE> class ProgramAccount: <NEW_LINE> <INDENT> pubkey: PublicKey <NEW_LINE> account: AccountInfo | Program account pubkey and account info. | 62598f004a966d76dd5ed8b9 |
class _EncodedMatch(object): <NEW_LINE> <INDENT> def __init__(self, innerobj): <NEW_LINE> <INDENT> self.__innerobj = innerobj <NEW_LINE> <DEDENT> def __getattr__(self, key): <NEW_LINE> <INDENT> return getattr(self.__innerobj, key) <NEW_LINE> <DEDENT> def group(self, index = 0): <NEW_LINE> <INDENT> return quote_from_byt... | Hacker for match.expand | 62598f004f88993c371ef9dc |
@dataclass(frozen=True) <NEW_LINE> class SQLStruct(SQLType): <NEW_LINE> <INDENT> vals: SQLNodeList[SQLType] <NEW_LINE> def sqlf(self, compact): <NEW_LINE> <INDENT> sep = ',' <NEW_LINE> if compact: <NEW_LINE> <INDENT> sep += ' ' <NEW_LINE> <DEDENT> fields = [] <NEW_LINE> for field in self.vals[0:-1]: <NEW_LINE> <INDENT>... | SQL Structure.
| 62598f003346ee7daa336b59 |
class OlmSessionError(Exception): <NEW_LINE> <INDENT> pass | libolm Session exception. | 62598f00f548e778e5969f6c |
class AmbiguousAvatarError(NonUniqueError, KeyError): <NEW_LINE> <INDENT> pass | An AvatarMapping can't decide what you want. | 62598f00d8ef3951e32c7345 |
class MigrationReportForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = MigrationReport <NEW_LINE> fields = '__all__' <NEW_LINE> widgets = { "log": AceWidget(mode="sh", **ACE_WIDGET_PARAMS), } | Migration report form. | 62598f0060cbc95b06362d17 |
class TestAPIServer(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api_server = APIServer('CustomName', False) <NEW_LINE> <DEDENT> def test_deprecation_warning(self): <NEW_LINE> <INDENT> with warnings.catch_warnings(record=True) as wrngs: <NEW_LINE> <INDENT> warnings.simplefilter("alw... | Test the class APIServer. | 62598f005fdd1c0f98e5c98b |
class re_multire(object): <NEW_LINE> <INDENT> def __init__(self, re_list, re_compile_flags=0): <NEW_LINE> <INDENT> self._re_cache = {} <NEW_LINE> self._assoc_obj = {} <NEW_LINE> for item in re_list: <NEW_LINE> <INDENT> if isinstance(item, tuple): <NEW_LINE> <INDENT> regex = item[0] <NEW_LINE> regex = regex.encode(DEFAU... | This is a wrapper around the re object that provides the plugins (users)
with an easy to use API. This is a transition class that will be used by
w3af users which don't have the esmre package installed. | 62598f0063b5f9789fe83b46 |
class FileContentError(Error): <NEW_LINE> <INDENT> base_msg = "Invalid content" <NEW_LINE> file_type = "CONTENT" <NEW_LINE> def __init__(self, file, msg="", path=None, action=None): <NEW_LINE> <INDENT> super().__init__(msg, action) <NEW_LINE> self.file = file <NEW_LINE> self.path = path <NEW_LINE> <DEDENT> def show(sel... | Exception for invalid file data. | 62598f00a05bb46b3848925c |
class DescribeMultiDevicesRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ProductId = None <NEW_LINE> self.TaskId = None <NEW_LINE> self.Offset = None <NEW_LINE> self.Limit = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.ProductId = params.get... | DescribeMultiDevices请求参数结构体
| 62598f00283ffb24f3cf2291 |
class Room(object): <NEW_LINE> <INDENT> def __init__(self, room_size, booths, moves): <NEW_LINE> <INDENT> self.booths = booths <NEW_LINE> self.room_size = room_size <NEW_LINE> self.booths.sort(key=lambda x:x.id) <NEW_LINE> self.moves = moves <NEW_LINE> self.state = "".join(str(b.pos_x1)+str(b.pos_y1) for b in self.boot... | define room func, booth in room, check validaty | 62598f00aad79263cf42d1f6 |
@define.singleton <NEW_LINE> class Config: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.logger = logging.getLogger("spider") <NEW_LINE> <DEDENT> def readConfig(self, filepath): <NEW_LINE> <INDENT> self.logger.info("....Reading config from {}".format( filepath )) <NEW_LINE> self.value = {} <NEW_LINE>... | Class Config.
Use to load and store config. | 62598f005fc7496912d47766 |
class SignUpView(APIView): <NEW_LINE> <INDENT> permission_classes = (AllowAny,) <NEW_LINE> serializer_class = RegistrationSerializer <NEW_LINE> def post(self, request: Request) -> Response: <NEW_LINE> <INDENT> serializer = self.serializer_class(data=request.data) <NEW_LINE> serializer.is_valid(raise_exception=True) <NE... | View to register new user or load page to register user(For testing). | 62598f005fdd1c0f98e5c98c |
class MessageDialog(QDialog): <NEW_LINE> <INDENT> def __init__(self, parent, text_en, text_cn): <NEW_LINE> <INDENT> super(MessageDialog, self).__init__(parent) <NEW_LINE> self.text_en = text_en <NEW_LINE> self.text_cn = text_cn <NEW_LINE> self.btn_close = QPushButton('Close', self) <NEW_LINE> self.btn_close.clicked.con... | Message dialog for showing both English and Chinese text. | 62598f00656771135c488071 |
class Signals(object): <NEW_LINE> <INDENT> ignored = _signal.SIG_IGN <NEW_LINE> default = _signal.SIG_DFL <NEW_LINE> def supported(self, signal_name): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self.signum(signal_name) <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> <DED... | Convenience interface to :mod:`signals`.
If the requested signal is not supported on the current platform,
the operation will be ignored.
**Examples**:
.. code-block:: python
>>> from celery.platforms import signals
>>> signals['INT'] = my_handler
>>> signals['INT']
my_handler
>>> signals.sup... | 62598f00fff4ab517ebcc1b9 |
class DeepFace(Chain): <NEW_LINE> <INDENT> insize = 152 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(DeepFace, self).__init__( conv1=L.Convolution2D(None, 32, 11), conv2=L.Convolution2D(None, 16, 9), conv3=L.Convolution2D(None, 16, 9), conv4=L.Convolution2D(None, 16, 7), conv5=L.Convolution2D(None, 16, 5), ... | DeepFace: Closing the Gap to Human-Level Performance in Face Verification
Yaniv Taigman, Ming Yang, Marc'Aurelio Ranzato, Lior Wolf
CVPR2014 | 62598f004a966d76dd5ed8bb |
class GettextLocale(Locale): <NEW_LINE> <INDENT> def __init__(self, code, translations): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.ngettext = translations.ungettext <NEW_LINE> self.gettext = translations.ugettext <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE> <INDENT> self.ngettext = translations.ngettex... | Locale implementation using the `gettext` module. | 62598f00ec188e330fdf7295 |
class LogitTransform(nn.Module): <NEW_LINE> <INDENT> def __init__(self, alpha=_DEFAULT_ALPHA): <NEW_LINE> <INDENT> nn.Module.__init__(self) <NEW_LINE> self.alpha = alpha <NEW_LINE> <DEDENT> def forward(self, x, logpx=None, reg_states=tuple(), reverse=False): <NEW_LINE> <INDENT> if reverse: <NEW_LINE> <INDENT> out = _si... | The proprocessing step used in Real NVP:
y = sigmoid(x) - a / (1 - 2a)
x = logit(a + (1 - 2a)*y) | 62598f004f88993c371ef9dd |
class _Worker(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, thread_pool, index): <NEW_LINE> <INDENT> super().__init__(name=f"Worker #{index}", daemon=True) <NEW_LINE> self.thread_pool = thread_pool <NEW_LINE> self.stopped = False <NEW_LINE> self.job_queue_condition = threading.Condition() <NEW_LINE> self.jo... | Run in a loop until stopped.
The loop pops one task from the threadpool and executes it. | 62598f002c8b7c6e89bd21ab |
class ListResolver(object): <NEW_LINE> <INDENT> def resolve(self, list, definition_context): <NEW_LINE> <INDENT> last = definition_context.attributes.get(list.name) <NEW_LINE> if last is not None and last.can_inherit(): <NEW_LINE> <INDENT> last.add(list) <NEW_LINE> last.inherit = list.inherit <NEW_LINE> definition_cont... | List Resolver | 62598f004f6381625f1989b0 |
class FilterModule(object): <NEW_LINE> <INDENT> def filters(self): <NEW_LINE> <INDENT> return { "lib_utils_oo_select_keys": lib_utils_oo_select_keys, "lib_utils_oo_select_keys_from_list": lib_utils_oo_select_keys_from_list, "lib_utils_oo_chomp_commit_offset": lib_utils_oo_chomp_commit_offset, "lib_utils_oo_collect": li... | Custom ansible filter mapping | 62598f00e1aae11d1e7cdd37 |
class DescribeConfigReleasesResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Result = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("Result") is not None: <NEW_LINE> <INDENT> self.Result = TsfPageConfi... | DescribeConfigReleases返回参数结构体
| 62598f00a219f33f346c5216 |
class RHBaseEvaluation( RHConferenceBaseDisplay ): <NEW_LINE> <INDENT> def _checkParams( self, params ): <NEW_LINE> <INDENT> RHConferenceBaseDisplay._checkParams(self, params) <NEW_LINE> self._evaluation = self._conf.getEvaluation() <NEW_LINE> <DEDENT> def _processIfActive( self ): <NEW_LINE> <INDENT> return "evaluatio... | Base for evaluation. | 62598f003317a56b869bda58 |
class AccessoryAidStorage: <NEW_LINE> <INDENT> def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None: <NEW_LINE> <INDENT> self.hass = hass <NEW_LINE> self.allocations = {} <NEW_LINE> self.allocated_aids = set() <NEW_LINE> self._entry = entry <NEW_LINE> self.store = None <NEW_LINE> self._entity_registry = ... | Holds a map of entity ID to HomeKit ID.
Will generate new ID's, ensure they are unique and store them to make sure they
persist over reboots. | 62598f004c34283577618cd2 |
class KeystoneClientV3(object): <NEW_LINE> <INDENT> def __init__(self, context): <NEW_LINE> <INDENT> self.context = context <NEW_LINE> self._client = None <NEW_LINE> self._session = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def auth_url(self): <NEW_LINE> <INDENT> return CONF.keystone_auth.auth_uri.replace('v2.0', '... | Keystone client wrapper so we can encapsulate logic in one place. | 62598f0097e22403b38398cf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.