code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TestPasswordPostedSmoke(BaseTestPassword): <NEW_LINE> <INDENT> @property <NEW_LINE> def password(self): <NEW_LINE> <INDENT> return self._backend.instance_password() <NEW_LINE> <DEDENT> @test_util.requires_service('http') <NEW_LINE> def test_password_set_posted(self): <NEW_LINE> <INDENT> self.is_password_set(passw...
Test that the password was set and posted to the metadata service This will attempt a WinRM login on the instance, which will use the password which was correctly set by the underlying cloud initialization software.
6259906e167d2b6e312b81bc
class BaseSerializer(metaclass=MetaSerializer): <NEW_LINE> <INDENT> @property <NEW_LINE> def fields(self): <NEW_LINE> <INDENT> return getattr(self, self.__class__._fields_storage_key) <NEW_LINE> <DEDENT> def to_representation(self, obj): <NEW_LINE> <INDENT> representation = {} <NEW_LINE> for name, field in self.fields....
Base serializer class for describing internal object serialization. Example: .. code-block:: python from graceful.serializers import BaseSerializer from graceful.fields import RawField, IntField, FloatField class CatSerializer(BaseSerializer): species = RawField("non normalized cat species") ...
6259906e3d592f4c4edbc73d
class KeynoteFormatter(Formatter): <NEW_LINE> <INDENT> def __init__(self, styles): <NEW_LINE> <INDENT> Formatter.__init__(self) <NEW_LINE> def style_name(item): <NEW_LINE> <INDENT> name, style = item <NEW_LINE> if name == 'Paragraph': <NEW_LINE> <INDENT> style = 'SFWPParagraphStyle-%s' % str(style) <NEW_LINE> <DEDENT> ...
Pygments formatter that outputs XML for Keynote slides.
6259906e3346ee7daa33828c
class VertexReplaceError(ArangoRequestError): <NEW_LINE> <INDENT> pass
Failed to replace the vertex.
6259906e435de62698e9d662
class SystemInformation: <NEW_LINE> <INDENT> SECTOR_SYSTEM = 1 <NEW_LINE> SECTOR = 2 <NEW_LINE> SYSTEM = 3 <NEW_LINE> FACTION = 4 <NEW_LINE> def __init__(self, system=VS.getSystemFile()): <NEW_LINE> <INDENT> self.system = system <NEW_LINE> self.faction = VS.GetGalaxyFaction(self.system) <NEW_LINE> <DEDENT> def getInfo(...
A class the provides a query mechanism, for each instance, that will return the specified system's faction, name, or parent sector.
6259906e23849d37ff852912
class DdosProtectionPlanListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[DdosProtectionPlan]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Opti...
A list of DDoS protection plans. Variables are only populated by the server, and will be ignored when sending a request. :param value: A list of DDoS protection plans. :type value: list[~azure.mgmt.network.v2020_11_01.models.DdosProtectionPlan] :ivar next_link: The URL to get the next set of results. :vartype next_li...
6259906ef7d966606f7494ea
class Game(NamedTuple): <NEW_LINE> <INDENT> teams: Tuple[str, str] <NEW_LINE> match_format: str <NEW_LINE> match_id: int = None <NEW_LINE> stage: str = None <NEW_LINE> start_time: datetime = None <NEW_LINE> game_id: int = None <NEW_LINE> game_number: int = None <NEW_LINE> map_name: str = None <NEW_LINE> score: Tuple[in...
Describe a single game.
6259906eb7558d5895464b60
class Articles: <NEW_LINE> <INDENT> def __init__(self, author, title, description, url, urlToImage, publishedAt): <NEW_LINE> <INDENT> self.author = author <NEW_LINE> self.title = title <NEW_LINE> self.description = description <NEW_LINE> self.url = url <NEW_LINE> self.urlToImage = urlToImage <NEW_LINE> self.publishedAt...
Article class to define article Objects
6259906ef548e778e596cdea
class Misty: <NEW_LINE> <INDENT> def __init__( self, ip: str, custom_info: Dict = {}, custom_actions: Dict = {}, custom_data: Dict = {}, rest_protocol: str = "http", websocket_protocol: str = "ws", websocket_endpoint: str = "pubsub", ) -> None: <NEW_LINE> <INDENT> self.ip = ip <NEW_LINE> self.infos = Info(ip, rest_prot...
A class representing a Misty robot. Attributes: ip (str): The IP address of this Misty robot. infos (Info): The object of Info class that belongs to this Misty. actions (Action): The object of Action class that belongs to this Misty. events (dict): A dictionary of active event subscriptions (keys being...
6259906e2c8b7c6e89bd5043
class ResultDefault(object): <NEW_LINE> <INDENT> def test(self, req_handler): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> def act(self, req_handler): <NEW_LINE> <INDENT> raise ServerException("unknown object '{0}'".format(req_handler.path))
default case
6259906e99cbb53fe6832744
class DocumentLinkInfoViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = DocumentLinkInfo.objects.all() <NEW_LINE> serializer_class = DocumentLinkInfoSerializer
Document DocumentLinkInfo endpoint to `list`, `create`, `retrieve`, `update` and `destroy` actions for document links
6259906ea219f33f346c8065
class PlotGrid(object): <NEW_LINE> <INDENT> def __init__(self, sizes=(15,5,1)): <NEW_LINE> <INDENT> size = sum(sizes)/2.0 <NEW_LINE> fig = plt.figure(figsize=(size, size)) <NEW_LINE> gridsize = sum(sizes) <NEW_LINE> gs = plt.GridSpec(gridsize, gridsize) <NEW_LINE> js = sizes[1]+sizes[2] <NEW_LINE> ms = sizes[2] <NEW_LI...
sns.JointGrid-like grid modified to our desires Not used yet...
6259906e4428ac0f6e659d90
@register_ensembler("voting") <NEW_LINE> class Voting(BaseEnsembler): <NEW_LINE> <INDENT> def __init__(self, ensemble_size=10, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.ensemble_size = ensemble_size <NEW_LINE> <DEDENT> def fit(self, predictions, label, identifiers, feval, *args, **kwargs)...
An ensembler using the voting method. Parameters ---------- ensemble_size : int The number of base models selected by the voter. These selected models can be redundant. Default as 10.
6259906e66673b3332c31c5a
class ColumnProperties(proto.Message): <NEW_LINE> <INDENT> class HorizontalAlignment(proto.Enum): <NEW_LINE> <INDENT> HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0 <NEW_LINE> LEADING = 1 <NEW_LINE> CENTER = 2 <NEW_LINE> TRAILING = 3 <NEW_LINE> <DEDENT> header = proto.Field(proto.STRING, number=1,) <NEW_LINE> horizontal_alignmen...
Column properties for [TableCard][google.cloud.dialogflow.v2beta1.Intent.Message.TableCard]. Attributes: header (str): Required. Column heading. horizontal_alignment (google.cloud.dialogflow_v2beta1.types.Intent.Message.ColumnProperties.HorizontalAlignment): Optional. Defines text alignment for...
6259906e7d43ff2487428040
class STDLogger(object): <NEW_LINE> <INDENT> def __init__(self, log): <NEW_LINE> <INDENT> if log not in SuiteLog.ALL_LOGS: <NEW_LINE> <INDENT> raise Exception('Unknown logger provided "{0}"'.format(log)) <NEW_LINE> <DEDENT> self.log_ = log <NEW_LINE> self.logger = logging.getLogger(log) <NEW_LINE> self.update_time = ti...
Stand-in for the OUT, ERR loggers which logs messages to the out, err logs if present otherwise to stdout, stderr. For use in code which can be run be run within a suite or standalone. If used with the LOG logger then output will only be printed if suite logging has been set up.
6259906e16aa5153ce401d37
class EdgeWithZeroProbabilityError(GraphError): <NEW_LINE> <INDENT> def __init__(self, edge): <NEW_LINE> <INDENT> msg = ("The edge '%s' has a probability of 0.0 and isn't of any use " "to the Graph!") % (edge) <NEW_LINE> super().__init__(msg)
Raised if an edge has the probability of 0.0.
6259906e2ae34c7f260ac946
class V1NodeSelectorTerm(object): <NEW_LINE> <INDENT> def __init__(self, match_expressions=None): <NEW_LINE> <INDENT> self.swagger_types = { 'match_expressions': 'list[V1NodeSelectorRequirement]' } <NEW_LINE> self.attribute_map = { 'match_expressions': 'matchExpressions' } <NEW_LINE> self._match_expressions = match_exp...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
6259906e97e22403b383c761
class HTTPRequestError(RemoteRetrieveError): <NEW_LINE> <INDENT> errno = 4035 <NEW_LINE> format = _('Request failed with status %(status)s: %(reason)s')
**4035** Raised when an HTTP request fails. Includes the response status in the ``status`` attribute.
6259906eaad79263cf430013
class CourseContentDetail(SecureAPIView): <NEW_LINE> <INDENT> def get(self, request, course_id, content_id): <NEW_LINE> <INDENT> response_data = {} <NEW_LINE> child_descriptor = None <NEW_LINE> base_uri = generate_base_uri(request) <NEW_LINE> response_data['uri'] = base_uri <NEW_LINE> course_descriptor, course_key, cou...
**Use Case** CourseContentDetail returns a JSON collection for a specified CourseContent entity. If the specified CourseContent is the Course, the course representation is returned. You can use the uri values in the children collection in the JSON response to get details for that content entity. ...
6259906ea17c0f6771d5d7d8
class IPageBreadcrumbsDirective(IContentDirective): <NEW_LINE> <INDENT> name = zope.schema.TextLine( title=u"The name of the content provider.", required=False, default=u'breadcrumbs') <NEW_LINE> permission = Permission( title=u"Permission", description=u"The permission needed to use the view.", required=False, ) <NEW_...
Define breadcrumbs content for a page.
6259906e097d151d1a2c28ce
class AdadeltaOptimizer(Optimizer): <NEW_LINE> <INDENT> _avg_squared_grad_acc_str = "_avg_squared_grad" <NEW_LINE> _avg_squared_update_acc_str = "_avg_squared_update" <NEW_LINE> def __init__(self, learning_rate, epsilon=1.0e-6, rho=0.95, **kwargs): <NEW_LINE> <INDENT> if learning_rate is None: <NEW_LINE> <INDENT> raise...
**Adadelta Optimizer** Simple Adadelta optimizer with average squared grad state and average squared update state. The details of adadelta please refer to this `ADADELTA: AN ADAPTIVE LEARNING RATE METHOD <http://www.matthewzeiler.com/pubs/googleTR2012/googleTR2012.pdf>`_. .. math:: E(g_t^2) &= \rho * E(g_{t-1}^2...
6259906e7d847024c075dc3b
class InitialTempoFeature(featuresModule.FeatureExtractor): <NEW_LINE> <INDENT> id = 'R30' <NEW_LINE> def __init__(self, dataOrStream=None, *arguments, **keywords): <NEW_LINE> <INDENT> featuresModule.FeatureExtractor.__init__(self, dataOrStream=dataOrStream, *arguments, **keywords) <NEW_LINE> self.name = 'Initial Temp...
>>> from music21 import * >>> s = corpus.parse('hwv56/movement3-05.md') >>> fe = features.jSymbolic.InitialTempoFeature(s) >>> f = fe.extract() >>> f.vector # a default [120.0] >>> s = corpus.parse('hwv56/movement2-09.md') # has a tempos >>> fe = features.jSymbolic.InitialTempoFeature(s) >>> f = fe.extract() >>> f.vec...
6259906ecc0a2c111447c700
class PorePressureLineSource(Source): <NEW_LINE> <INDENT> discretized_source_class = meta.DiscretizedPorePressureSource <NEW_LINE> pp = Float.T( default=1.0, help='initial excess pore pressure in [Pa]') <NEW_LINE> length = Float.T( default=0.0, help='length of the line source [m]') <NEW_LINE> azimuth = Float.T( default...
Excess pore pressure line source. The line source is centered at (north_shift, east_shift, depth).
6259906e91f36d47f2231abe
class FetchOptions(object): <NEW_LINE> <INDENT> _DEFAULT_CIPHERLIST = "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RS...
HTTP fetcher options like timeouts.
6259906ebe8e80087fbc08ec
class NotDashboardContextException(Exception): <NEW_LINE> <INDENT> pass
To be raised when a context has no faceted view defined on it.
6259906ed486a94d0ba2d81e
class SendTrytesCommand(FilterCommand): <NEW_LINE> <INDENT> command = 'sendTrytes' <NEW_LINE> def get_request_filter(self): <NEW_LINE> <INDENT> return SendTrytesRequestFilter() <NEW_LINE> <DEDENT> def get_response_filter(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def _execute(self, request): <NEW_LINE> <INDENT...
Executes `sendTrytes` extended API command. See :py:meth:`iota.api.IotaApi.send_trytes` for more info.
6259906e009cb60464d02d95
class InvalidKubeHostnameError(CouchDiscGeneralError): <NEW_LINE> <INDENT> _msg = ("The Hostname: {host} doesn't match the signature of a kubernetes" " statefulset hostname.")
Invalid kubernetes hostname Raised when a host doesn't match the signature of a kubernetes statefulset hostname. Provides a `_msg` that includes the host passed in as a kwarg. Example: >>> raise InvalidKubeHostnameError(host='google.com') InvalidKubeHostnameError: The Hostname: google.com doesn't match the signature...
6259906e7d43ff2487428041
class RegisterForm(ModelForm): <NEW_LINE> <INDENT> password = forms.CharField(widget=forms.PasswordInput()) <NEW_LINE> cpassword = forms.CharField(widget=forms.PasswordInput(), label="Confirm password") <NEW_LINE> email = forms.CharField() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Patient <NEW_LINE> fields = [...
RegisterForm for a user registering an account Patients use this while doctors and nurses must be added via a system administrator
6259906e97e22403b383c763
class PageLayout(AbstractPageLayout): <NEW_LINE> <INDENT> orientation = Vertical <NEW_LINE> def updatePagePositions(self): <NEW_LINE> <INDENT> if self.orientation == Vertical: <NEW_LINE> <INDENT> width = max((p.width for p in self), default=0) + self.margin * 2 <NEW_LINE> top = self.margin <NEW_LINE> for page in self: ...
A basic layout that shows pages from right to left or top to bottom. Additional instance attribute: `orientation`: Horizontal or Vertical (default)
6259906e67a9b606de5476d2
class Solution: <NEW_LINE> <INDENT> def maxPathSum(self, root): <NEW_LINE> <INDENT> maxRootToAny, maxAnyToAny = self._maxPathSum(root) <NEW_LINE> return maxAnyToAny <NEW_LINE> <DEDENT> def _maxPathSum(self, root): <NEW_LINE> <INDENT> if root is None: <NEW_LINE> <INDENT> return (float("-inf"), float("-inf")) <NEW_LINE> ...
@param root: The root of binary tree. @return: An integer
6259906e76e4537e8c3f0de3
class Modified_Resnet50(nn.Module): <NEW_LINE> <INDENT> def __init__(self, num_classs=100): <NEW_LINE> <INDENT> super(Modified_Resnet50, self).__init__() <NEW_LINE> model = torchvision.models.resnet50(pretrained=True) <NEW_LINE> self.num_classs = num_classs <NEW_LINE> temp = [] <NEW_LINE> for i, m in enumerate(model.ch...
docstring for ClassName
6259906ef9cc0f698b1c5efb
class Foot_Pound( Unit ): <NEW_LINE> <INDENT> standard= Joule <NEW_LINE> name= "ft.lb." <NEW_LINE> factor= 0.73756215
Foot-Pound
6259906e56b00c62f0fb412f
class ComputeInstancesSetMachineTypeRequest(_messages.Message): <NEW_LINE> <INDENT> instance = _messages.StringField(1, required=True) <NEW_LINE> instancesSetMachineTypeRequest = _messages.MessageField('InstancesSetMachineTypeRequest', 2) <NEW_LINE> project = _messages.StringField(3, required=True) <NEW_LINE> requestId...
A ComputeInstancesSetMachineTypeRequest object. Fields: instance: Name of the instance scoping this request. instancesSetMachineTypeRequest: A InstancesSetMachineTypeRequest resource to be passed as the request body. project: Project ID for this request. requestId: An optional request ID to identify reques...
6259906e7047854f46340c16
class ASTNode(object): <NEW_LINE> <INDENT> def __init__(self, parent, value, n_type): <NEW_LINE> <INDENT> self._parent = parent <NEW_LINE> self.value = value <NEW_LINE> self.n_type = n_type <NEW_LINE> self.child_nodes = [] <NEW_LINE> <DEDENT> def add_child(self, node, set_parent=True): <NEW_LINE> <INDENT> if set_parent...
A Node in our AST
6259906e76e4537e8c3f0de4
class Action: <NEW_LINE> <INDENT> def __init__(self, type): <NEW_LINE> <INDENT> self._type = type <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self._type
This class represents a move in the puzzle. Depending on the state from which the agent chooses the move - type of the action can be 'r', 'l', 'u', 'd', 't'
6259906eb7558d5895464b62
class StateCompiler(object): <NEW_LINE> <INDENT> def __init__(self, root: str, environment: str = ObjectResolver.DEFAULT_ENV): <NEW_LINE> <INDENT> self._root = root <NEW_LINE> self._environment = environment <NEW_LINE> self._tasks = self._object_tree = None <NEW_LINE> <DEDENT> def _get_state_tasks(self) -> list: <NEW_L...
State Compiler class.
6259906e92d797404e38978b
class Shape: <NEW_LINE> <INDENT> def __init__(self, renderer): <NEW_LINE> <INDENT> self.renderer = renderer <NEW_LINE> <DEDENT> def draw(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def resize(self, factor): <NEW_LINE> <INDENT> pass
The bridge class
6259906e2c8b7c6e89bd5046
class AbstractPartitionDiagrams(Parent, UniqueRepresentation): <NEW_LINE> <INDENT> Element = AbstractPartitionDiagram <NEW_LINE> def __init__(self, order, category=None): <NEW_LINE> <INDENT> if category is None: <NEW_LINE> <INDENT> category = FiniteEnumeratedSets() <NEW_LINE> <DEDENT> Parent.__init__(self, category=cat...
This is an abstract base class for partition diagrams. The primary use of this class is to serve as basis keys for diagram algebras, but diagrams also have properties in their own right. Furthermore, this class is meant to be extended to create more efficient contains methods. INPUT: - ``order`` -- integer or intege...
6259906e8da39b475be04a4e
class LaserStimulus(object): <NEW_LINE> <INDENT> id = int() <NEW_LINE> description = str() <NEW_LINE> num_lasers = int() <NEW_LINE> odorvalves = [] <NEW_LINE> flows = [] <NEW_LINE> dillution=int() <NEW_LINE> laserstims = [] <NEW_LINE> within_block_repeats = int() <NEW_LINE> trial_type = str() <NEW_LINE> def __init__(se...
Objects representing a stimulus set
6259906ea219f33f346c8069
class RequestHeaderMatchConditionParameters(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'odata_type': {'required': True, 'constant': True}, 'operator': {'required': True}, } <NEW_LINE> _attribute_map = { 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, 'selector': {'key': 'selector', 'type': ...
Defines the parameters for RequestHeader match conditions. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar odata_type: Required. Default value: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderCo...
6259906e4f88993c371f1150
class Trajectory: <NEW_LINE> <INDENT> def __init__(self, object_id, points=list(), timestamps=list()): <NEW_LINE> <INDENT> self.object_id = object_id <NEW_LINE> self.raw_points = points <NEW_LINE> self.timestamps = timestamps <NEW_LINE> self.length = len(points) <NEW_LINE> <DEDENT> def add_...
Trajectory class for pre-processing
6259906e32920d7e50bc78a7
class RenderCommentListNode(CommentListNode): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def handle_token(cls, parser, token): <NEW_LINE> <INDENT> tokens = token.contents.split() <NEW_LINE> if tokens[1] != 'for': <NEW_LINE> <INDENT> raise template.TemplateSyntaxError("Second argument in %r tag must be 'for'" % tokens[...
Render the comments list.
6259906ea8370b77170f1c28
class PreparedStatement(object): <NEW_LINE> <INDENT> column_metadata = None <NEW_LINE> query_id = None <NEW_LINE> query_string = None <NEW_LINE> keyspace = None <NEW_LINE> routing_key_indexes = None <NEW_LINE> consistency_level = None <NEW_LINE> serial_consistency_level = None <NEW_LINE> def __init__(self, column_metad...
A statement that has been prepared against at least one Cassandra node. Instances of this class should not be created directly, but through :meth:`.Session.prepare()`. A :class:`.PreparedStatement` should be prepared only once. Re-preparing a statement may affect performance (as the operation requires a network roundt...
6259906e3d592f4c4edbc741
class Hmp4030: <NEW_LINE> <INDENT> def __init__(self, rm, visaName): <NEW_LINE> <INDENT> self.rm = rm <NEW_LINE> self.visaName = visaName <NEW_LINE> self.handle = None <NEW_LINE> <DEDENT> def open(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.handle = self.rm.get_instrument(self.visaName) <NEW_LINE> self.han...
Class implementing SCPI control of Hameg HMP4030 power source control via Agilent IO Libraries and VISA interface
6259906e4428ac0f6e659d94
class ClientList(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._data = {} <NEW_LINE> self.lock = Lock("ClientList") <NEW_LINE> self._nextid = 0 <NEW_LINE> <DEDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> return self._data.get(key) <NEW_LINE> <DEDENT> def __delitem__(self, clientid): ...
Manage mapping of clientids to server data. Handles the handing out of clientids, the mapping of client supplied ownerid to server supplied clientid, and the mapping of either to ClientRecords, where all of the server's state data related to the client can be accessed.
6259906e7d43ff2487428042
class TemperatureMeasurement(object): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(TemperatureMeasurement, self).__init__(*args, **kwargs) <NEW_LINE> cls = 'IviDmm' <NEW_LINE> grp = 'TemperatureMeasurement' <NEW_LINE> ivi.add_group_capability(self, cls+grp) <NEW_LINE> self._tempera...
Extension IVI methods for DMMs that can take temperature measurements
6259906e4527f215b58eb5d0
class Base32(object): <NEW_LINE> <INDENT> def encode(self, s): <NEW_LINE> <INDENT> return base64.b32encode(s) <NEW_LINE> <DEDENT> def decode(self, s): <NEW_LINE> <INDENT> return base64.b32decode(s)
AUTHORS: v0.2.0+ --> pydsigner
6259906e71ff763f4b5e9008
class cmd_list(Command): <NEW_LINE> <INDENT> synopsis = "%prog [options]" <NEW_LINE> takes_options = [ Option("-H", "--URL", help="LDB URL for database or target server", type=str, metavar="URL", dest="H"), Option("--full-dn", dest="full_dn", default=False, action='store_true', help="Display DNs including the base DN."...
List all organizational units. Example: samba-tool ou listobjects The example shows how an administrator would list all organizational units.
6259906efff4ab517ebcf07b
class KeypressPrompt(Prompt): <NEW_LINE> <INDENT> _ui_data = UIData.title['prompts']['keypress'] <NEW_LINE> _rel_vert_loc = _ui_data['relative vertical location'] <NEW_LINE> _width = _ui_data['width'] <NEW_LINE> _height = _ui_data['height'] <NEW_LINE> _texts = _ui_data['texts'] <NEW_LINE> def __init__(self, text_key): ...
prompt that asks the user for a single keypress.
6259906ea8370b77170f1c29
@ejit <NEW_LINE> class ArithmeticError(StandardError): <NEW_LINE> <INDENT> pass
Base class for arithmetic errors.
6259906eaad79263cf430017
class UtilsError(STDError): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(UtilsError, self).__init__(*args, **kwargs)
Raised for Uploader exceptions
6259906e3539df3088ecdafe
class DBRatings(mysqlpool.MysqlPool): <NEW_LINE> <INDENT> pass
This class contains only methods used by responder on certain queries
6259906ea17c0f6771d5d7da
class UserAvatar(db.Model, BaseModel): <NEW_LINE> <INDENT> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> b64string = db.Column(db.String) <NEW_LINE> mimetype = db.Column(db.String(16)) <NEW_LINE> user_id = db.Column(db.Integer, db.ForeignKey("user.id")) <NEW_LINE> @staticmethod <NEW_LINE> def from_raw_image(r...
Модель аватара пользователя
6259906e38b623060ffaa484
class NotifyOptions(BaseOptions): <NEW_LINE> <INDENT> optParameters = [ ['port', 'p', 8000, 'The port number to listen on.'], ['iface', None, 'localhost', 'The interface to listen on.'], ]
Options global to everything.
6259906edd821e528d6da5b2
class MySqlConnector: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.my_db = Db.connect(**config) <NEW_LINE> self.cursor = self.my_db.cursor() <NEW_LINE> <DEDENT> except Db.Error as err: <NEW_LINE> <INDENT> raise Exception(err) <NEW_LINE> <DEDENT> <DEDENT> def get_db_cursor(se...
Class to connect and interact with mysql
6259906ecc0a2c111447c702
class MachineTypesScopedList(messages.Message): <NEW_LINE> <INDENT> class WarningValue(messages.Message): <NEW_LINE> <INDENT> class CodeValueValuesEnum(messages.Enum): <NEW_LINE> <INDENT> DEPRECATED_RESOURCE_USED = 0 <NEW_LINE> DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 1 <NEW_LINE> INJECTED_KERNELS_DEPRECATED = 2 <NEW_LINE> N...
A MachineTypesScopedList object. Messages: WarningValue: [Output Only] An informational warning that appears when the machine types list is empty. Fields: machineTypes: [Output Only] List of machine types contained in this scope. warning: [Output Only] An informational warning that appears when the mach...
6259906eaad79263cf430018
class IYafowilLayer(IDefaultBrowserLayer): <NEW_LINE> <INDENT> pass
YAFOWIL related browser layer.
6259906e92d797404e38978c
class Redactor(DependencyProvider): <NEW_LINE> <INDENT> def worker_setup(self, worker_ctx): <NEW_LINE> <INDENT> entrypoint = worker_ctx.entrypoint <NEW_LINE> args = worker_ctx.args <NEW_LINE> kwargs = worker_ctx.kwargs <NEW_LINE> redacted.update(get_redacted_args(entrypoint, *args, **kwargs))
Example DependencyProvider that redacts `sensitive_arguments` on entrypoints during the worker lifecycle.
6259906e4f88993c371f1151
class StrikeRow(BoxLayout): <NEW_LINE> <INDENT> _row_cache = {} <NEW_LINE> def __init__(self, strike, **kwargs): <NEW_LINE> <INDENT> super().__init__(orientation='horizontal', **kwargs) <NEW_LINE> self.strike = strike <NEW_LINE> self._sub_rows = {} <NEW_LINE> self._widgets_added = False <NEW_LINE> <DEDENT> def append_s...
A 'row' composed of two ``Row``s sandwiching a ``StrikeCell`.
6259906ebf627c535bcb2d2d
class header_read_values_test(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.pri = header().default() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> del self.pri <NEW_LINE> <DEDENT> def test_read_values(self): <NEW_LINE> <INDENT> print(self.__class__.__name__) <NEW_LINE> ...
Is the list of values in the header read correctly?
6259906e44b2445a339b7590
class PermanentView(View): <NEW_LINE> <INDENT> def __init__(self, uri, name, wrapper=None, session=None): <NEW_LINE> <INDENT> View.__init__(self, uri, wrapper=wrapper, session=session) <NEW_LINE> self.name = name <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '<%s %r>' % (type(self).__name__, self.n...
Representation of a permanent view on the server.
6259906e4527f215b58eb5d1
class APITestCase(TestCase): <NEW_LINE> <INDENT> def login(self, username, password): <NEW_LINE> <INDENT> r = self.client.post(path=api_url + "/auth/login", data=json.dumps({'username': username, 'password': password}), content_type="application/json") <NEW_LINE> if 'x-auth-token' in r._headers: <NEW_LINE> <INDENT> sel...
Subclass of Django's TestCase that includes login()
6259906e9c8ee82313040db9
class DrawActorsAction(Action): <NEW_LINE> <INDENT> def __init__(self, output_service): <NEW_LINE> <INDENT> self.output_service = output_service <NEW_LINE> <DEDENT> def execute(self, cast): <NEW_LINE> <INDENT> self.output_service.clear_screen() <NEW_LINE> if cast["paddle"]: <NEW_LINE> <INDENT> self.output_service.draw_...
This class will handle the displaying of object on the screen.
6259906e7d43ff2487428043
@method_decorator(user_passes_test(is_departaments), name="dispatch") <NEW_LINE> class DepartamentTfgDetailView(DetailView): <NEW_LINE> <INDENT> model = Tfgs <NEW_LINE> teamplate_name = "tfgs/tfgs_detail" <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> queryset = super().get_queryset().filter( tutor1__userinfos_...
Controlador para mostrar un TFG en detalle. Atributos: model(model.Model): Modelo que se va a mostrar en la vista. template_name(str): Nombre del template donde se va a renderizar la vista.
6259906e66673b3332c31c60
class Flipud(Augmenter): <NEW_LINE> <INDENT> def __init__(self, p=0, name=None, deterministic=False, random_state=None): <NEW_LINE> <INDENT> super(Flipud, self).__init__(name=name, deterministic=deterministic, random_state=random_state) <NEW_LINE> if ia.is_single_number(p): <NEW_LINE> <INDENT> self.p = Binomial(p) <NEW...
Flip/mirror input images vertically.
6259906e2ae34c7f260ac94c
class Plugin(EncoderPlugin): <NEW_LINE> <INDENT> def __init__(self, context): <NEW_LINE> <INDENT> super().__init__('HEX (shell)', "Thomas Engel", ["codecs"], context) <NEW_LINE> <DEDENT> def run(self, text): <NEW_LINE> <INDENT> if text: <NEW_LINE> <INDENT> import codecs <NEW_LINE> output = codecs.encode(text.encode('ut...
Encodes to hex shell code. Example: Input: abcdefghijklmnopqrstuvwxyz ^°!"§$%&/()=?´`<>| ,.-;:_#+'*~ 0123456789 Output: \x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e \ \x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x0a\x5e \ \xc2\xb0\x21\x22\xc2\xa...
6259906e56ac1b37e6303914
class RegistrationMenu: <NEW_LINE> <INDENT> def __init__(self, phone_number, session_id, user_response): <NEW_LINE> <INDENT> self.session_id = session_id <NEW_LINE> self.user = User.query.filter_by(phone_number=phone_number).first() <NEW_LINE> self.session = SessionLevel.query.filter_by(session_id=self.session_id).firs...
Serves registration callbacks
6259906e67a9b606de5476d4
class SBSCommentParser(Parser): <NEW_LINE> <INDENT> def set_com_id(self): <NEW_LINE> <INDENT> self.com_id = self.comment.get("id") <NEW_LINE> <DEDENT> def set_com_type_and_depth(self): <NEW_LINE> <INDENT> com_class = self.comment.get("class") <NEW_LINE> self.node_attr['com_type'] = com_class[0] <NEW_LINE> self.node_att...
Comment-data for comments on SBS-blog
6259906e1f037a2d8b9e549c
class Step: <NEW_LINE> <INDENT> def __init__(self, stepId: int, title=None): <NEW_LINE> <INDENT> self.stepId = stepId <NEW_LINE> self.nexts = dict() <NEW_LINE> self.previouses = dict() <NEW_LINE> self.title = title if title else 'step '+str(stepId) <NEW_LINE> <DEDENT> def getNexts(self): <NEW_LINE> <INDENT> return list...
The Step class defines a step in a workflow. It may be seen as a node in a graph with oriented edges: previous and next steps. Since a workflow is an oriented graph, step may be defined as first (ie without previous step) or last (ie wihtout next step)
6259906e3539df3088ecdb00
class ConditionalWrapper(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, estimator, cols=None, na_values=None, col_name=None, drop=True): <NEW_LINE> <INDENT> self.estimator = estimator <NEW_LINE> self.cols = cols <NEW_LINE> self.na_values = na_values <NEW_LINE> self.col_name = col_name <NEW_LIN...
A conditional wrapper that makes a Scikit-Learn transformer only works on part of the data where X is not missing.
6259906ee76e3b2f99fda265
class StochasticDistributor(AbstractBaseDistributor): <NEW_LINE> <INDENT> def assign_group(self, subjects): <NEW_LINE> <INDENT> pass
Uses law of large numbers principle and random assignment for the treatment groups. The assignment method for this subclass is stochastic and generally should be used when the law of large numbers is observable for each group, namely, when there is a large quantity of experimentation subjects on each group.
6259906e4a966d76dd5f074d
class Style: <NEW_LINE> <INDENT> numberRex = re.compile('(\d+)(.*)') <NEW_LINE> def __init__(self, name, family, defaults=None, outlineLevel=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.family = family <NEW_LINE> self.displayName = name <NEW_LINE> self.styleClass = None <NEW_LINE> self.fontSize = None <N...
Represents an ODF style. Either parsed from an ODF file or used for dumping a style into an ODF file.
6259906e167d2b6e312b81c0
class PandasFeatureUnion(FeatureUnion): <NEW_LINE> <INDENT> def merge_dataframes_by_column(self, Xs) -> pd.DataFrame: <NEW_LINE> <INDENT> return pd.concat(Xs, axis="columns", copy=False) <NEW_LINE> <DEDENT> def transform(self, X: pd.DataFrame) -> pd.DataFrame: <NEW_LINE> <INDENT> Xs = Parallel(n_jobs=self.n_jobs)( dela...
Scikit-learn feature union with support for pandas DataFrames.
6259906e460517430c432c88
@dataclass(frozen=True) <NEW_LINE> class FeatureMatrix: <NEW_LINE> <INDENT> names: List[str] <NEW_LINE> scales: List[float] <NEW_LINE> selections: numpy.ndarray <NEW_LINE> compute_in_2d: numpy.ndarray
Provides OpFeatureSelection compatible interface Attributes: names: List of feature ids scales: List of feature scales selections: Boolean matrix where rows are feature names and scales are columuns True value means feature is enabled compute_in_2d: 1d array for each scale reflecting if feature...
6259906ecb5e8a47e493cdb4
class Command(BaseCommand): <NEW_LINE> <INDENT> def handle(self, *args, **options): <NEW_LINE> <INDENT> collections = BiologicalCollectionRecord.objects.all() <NEW_LINE> for record in collections: <NEW_LINE> <INDENT> print('Update record : %s' % record.original_species_name) <NEW_LINE> update_fish_collection_record(rec...
Update Fish Collection Record.
6259906e1f5feb6acb164455
class Slew(Filter): <NEW_LINE> <INDENT> __documentation_section__ = 'Filter UGens' <NEW_LINE> __slots__ = () <NEW_LINE> _ordered_input_names = ( 'source', 'up', 'dn', ) <NEW_LINE> _valid_calculation_rates = None <NEW_LINE> def __init__( self, calculation_rate=None, dn=1, source=None, up=1, ): <NEW_LINE> <INDENT> Filter...
A slew rate limiter. :: >>> source = ugentools.In.ar(bus=0) >>> slew = ugentools.Slew.ar( ... dn=1, ... source=source, ... up=1, ... ) >>> slew Slew.ar()
6259906e3346ee7daa338290
class EndPointDetailSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> time_left_before_expiry = serializers.SerializerMethodField() <NEW_LINE> time_after_hitting_url = serializers.SerializerMethodField() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = endpoint_models.EndPointDetail <NEW_LINE> fields = ['r...
Serializer for EndPointDetail Model
6259906eb7558d5895464b64
class PersistentPineapple(object): <NEW_LINE> <INDENT> settings = {} <NEW_LINE> def __init__(self, path, woc=True, lofc=True): <NEW_LINE> <INDENT> self.path = path <NEW_LINE> self.woc = woc <NEW_LINE> self.lofc = lofc <NEW_LINE> self._settings_copy = None <NEW_LINE> self._pre_context_woc = None <NEW_LINE> if path and p...
An interface to the project settings.
6259906e435de62698e9d66a
class ListCreateAPIMixedPermission(permissions.BasePermission): <NEW_LINE> <INDENT> def has_permission(self, request, view): <NEW_LINE> <INDENT> if request.method in permissions.SAFE_METHODS: <NEW_LINE> <INDENT> if request.user.is_authenticated: <NEW_LINE> <INDENT> if request.user.is_staff or is_user_in_groups(request....
Permission class for ListCreate views that want to allow read-only access to some groups and read-write to others. GET users must be either (a) staff or (b) in the Limited API group. POST users must be staff.
6259906e92d797404e38978d
class XincaAuthorizationError(XincaError): <NEW_LINE> <INDENT> pass
Credentials have inadequate authorization to perform operation
6259906ed268445f2663a78f
class TestViews(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = Client() <NEW_LINE> self.other_client = Client() <NEW_LINE> self.user = get_user_model().objects.create_user( username='test_user', email='test@gmail.com', password='top_secret' ) <NEW_LINE> self.other_user = get_user_mode...
Includes tests for all the functionality associated with Views
6259906ed486a94d0ba2d824
class Feature(namedtuple('Feature', 'ls rs lo ro w t n n_ w_')): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return self.__repr__() <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '(%s)' % ', '.join(['{}={}'.format(k,v) for k,v in self._asdict().items()])
Usage ----- >>> feature = Feature(True, False, False, False, '아이오아이', 'Noun', 5, 5, '아이오아이') >>> print(feature) $ (ls=True, rs=False, lo=False, ro=False, w=아이오아이, t=Noun, n=5, n_=5, w_=아이오아이)
6259906eac7a0e7691f73d4d
class Button(tk.Button): <NEW_LINE> <INDENT> def __init__(self, master, image, **kwargs): <NEW_LINE> <INDENT> super().__init__(master, **kwargs) <NEW_LINE> self.image = image <NEW_LINE> self['image'] = self.image <NEW_LINE> self['relief'] = tk.FLAT <NEW_LINE> self['overrelief'] = tk.RIDGE
Ribbon Button
6259906e44b2445a339b7591
class CrawlShard(db.Model): <NEW_LINE> <INDENT> crawl = db.Reference(Crawl) <NEW_LINE> feed = db.Reference(Feed) <NEW_LINE> url = db.TextProperty() <NEW_LINE> is_done = db.BooleanProperty(default=False) <NEW_LINE> started = db.DateTimeProperty() <NEW_LINE> finished = db.DateTimeProperty() <NEW_LINE> error = db.TextProp...
Single atom of crawl work, which is a URL.
6259906e9c8ee82313040dba
class MobBlock(nn.Module): <NEW_LINE> <INDENT> def __init__(self, c, wide=None, kernel=3): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> wide = 6 * c if wide is None else wide <NEW_LINE> padding = int(math.floor(kernel/2)) <NEW_LINE> self.convs = nn.Sequential( nn.Conv2d(c, wide, kernel_size=1), nn.ReLU6(), nn.Con...
Inverted residual block (as in mobilenetv2)
6259906efff4ab517ebcf07f
class Sequential(Module): <NEW_LINE> <INDENT> def __init__(self, *args): <NEW_LINE> <INDENT> super(Sequential, self).__init__() <NEW_LINE> if len(args) == 1 and isinstance(args[0], OrderedDict): <NEW_LINE> <INDENT> for key, module in args[0].items(): <NEW_LINE> <INDENT> self.add_module(key, module) <NEW_LINE> <DEDENT> ...
一个顺序的容器. 模块将按照它们在构造函数中传递的顺序添加到它. 或者, 也可以传入模块的有序字典. 为了更容易理解, 列举小例来说明 :: # 使用 Sequential 的例子 model = nn.Sequential( nn.Conv2d(1,20,5), nn.ReLU(), nn.Conv2d(20,64,5), nn.ReLU() ) # 与 OrderedDict 一起使用 Sequential 的例子 model = nn.Sequential...
6259906e71ff763f4b5e900c
class Branch(BlobVisualData): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.newStreamSeqNum = 0 <NEW_LINE> self.newPredictionSeqNum = 0 <NEW_LINE> self.newPC = 0 <NEW_LINE> self.reason = "NoBranch" <NEW_LINE> self.id = Id() <NEW_LINE> <DEDENT> def from_string(self, string): <NEW_LINE> <INDENT> m = re...
Branch data new stream and prediction sequence numbers, a branch reason and a new PC
6259906e7c178a314d78e81e
class TestRequestsConnectorCookie(unittest.TestCase): <NEW_LINE> <INDENT> pass
Test RequestConnector's cookie settings.
6259906eaad79263cf43001b
class Authorization(object): <NEW_LINE> <INDENT> def __init__(self, domain, username, password, request_id_prefix = ''): <NEW_LINE> <INDENT> self.domain = domain <NEW_LINE> self.username = username <NEW_LINE> self.password = password <NEW_LINE> self.proto = 'https://' <NEW_LINE> self.verify = True <NEW_LINE> self._requ...
Manages basic authorization for accessing the socrata API. This is passed into the `Socrata` object once, which is the entry point for all operations. auth = Authorization( "data.seattle.gov", os.environ['SOCRATA_USERNAME'], os.environ['SOCRATA_PASSWORD'] ) publishing = Socrata(auth...
6259906ee76e3b2f99fda267
class RequestResetEvent(BasicAuditEvent): <NEW_LINE> <INDENT> implements(IAuditEvent) <NEW_LINE> def __init__(self, context, id, d, userInfo, siteInfo, instanceDatum): <NEW_LINE> <INDENT> super(RequestResetEvent, self).__init__(context, id, REQUEST, d, userInfo, userInfo, siteInfo, None, instanceDatum, None, SUBSYSTEM)...
An audit-trail event representing a person requesting a password reset.
6259906e8a43f66fc4bf39f9
class HacsMigration(HacsBase): <NEW_LINE> <INDENT> old = None <NEW_LINE> async def validate(self): <NEW_LINE> <INDENT> self.old = await self.storage.get() <NEW_LINE> if not self.old: <NEW_LINE> <INDENT> await self.update_repositories() <NEW_LINE> <DEDENT> elif "schema" not in self.old["hacs"]: <NEW_LINE> <INDENT> sourc...
HACS data migration handler.
6259906e3346ee7daa338291
class FTPRequest(Packet): <NEW_LINE> <INDENT> name = "ftp" <NEW_LINE> fields_desc = [FTPReqField("command", "", "H"), StrField("argument", "", "H")]
class for dissecting the ftp requests @attention: it inherets Packet class from Scapy library
6259906e21bff66bcd7244cd
class ApproveRevisionInLocaleEvent(_RevisionConstructor, _LocaleAndProductFilter, Event): <NEW_LINE> <INDENT> event_type = 'approved wiki in locale'
Event fed to a union when any revision in a certain locale is approved Not intended to be fired individually
6259906e7047854f46340c1d
class House: <NEW_LINE> <INDENT> def __init__(self, house_type, area): <NEW_LINE> <INDENT> self.house_type = house_type <NEW_LINE> self.area = area <NEW_LINE> self.free_area = area <NEW_LINE> self.list_item = [] <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "户型:%s, 面积:%.2f, 剩余面积:%.2f, 家具:%s" %( self...
定义一个房子类
6259906edd821e528d6da5b4
class TestDistroArchSeriesWebservice(TestCaseWithFactory): <NEW_LINE> <INDENT> layer = LaunchpadFunctionalLayer <NEW_LINE> def _makeDistroArchSeries(self): <NEW_LINE> <INDENT> distro = self.factory.makeDistribution() <NEW_LINE> distroseries = self.factory.makeDistroSeries( distribution=distro) <NEW_LINE> self.factory.m...
Unit Tests for 'DistroArchSeries' Webservice.
6259906e2ae34c7f260ac94f
class NotificationForm(forms.ModelForm): <NEW_LINE> <INDENT> author = forms.ModelChoiceField( label=_("Autor"), queryset=User.objects.all().order_by('username'), widget=forms.Select(), help_text=u'De parte de') <NEW_LINE> destinario = forms.ModelChoiceField( label=_("Destinatario"), queryset=User.objects.all().order_by...
Formuilario del admin para las notificaciones Se modifico el __init__ para permitir crear notificaciones para todos los usuarios
6259906ee5267d203ee6cff0
class CreatePhotoView(AddOrEditMixin, CreateView): <NEW_LINE> <INDENT> model = Photo <NEW_LINE> fields = ['albums', 'img_file', 'title', 'description', 'published'] <NEW_LINE> own_queryset_name = 'photos' <NEW_LINE> rel_queryset_name = 'albums'
Create a new Photo to the database.
6259906e4428ac0f6e659d99
class CLIPositionalParameter(CLIParseTreeNode): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> self._value = value <NEW_LINE> self._quoted = False <NEW_LINE> super(CLIPositionalParameter, self).__init__() <NEW_LINE> logging.debug('CLIPositionalParameter created: value=' + str(value)) <NEW_LINE> <DED...
A CLI positional parameter
6259906e442bda511e95d98b
@base.vectorize <NEW_LINE> class movc(base.Instruction): <NEW_LINE> <INDENT> __slots__ = ["code"] <NEW_LINE> code = base.opcodes['MOVC'] <NEW_LINE> arg_format = ['cw', 'c'] <NEW_LINE> def execute(self): <NEW_LINE> <INDENT> self.args[0].value = self.args[1].value
Assigns register c_i the value in the register c_j. This instruction is vectorizable
6259906e99cbb53fe683274e
class BakeClient(): <NEW_LINE> <INDENT> def __init__(self, mid): <NEW_LINE> <INDENT> self._client = _pybakeclient.client_init(mid._mid) <NEW_LINE> <DEDENT> def create_provider_handle(self, addr, provider_id): <NEW_LINE> <INDENT> ph = _pybakeclient.provider_handle_create(self._client, addr._hg_addr, provider_id) <NEW_LI...
The BakeClient class wraps a bake_client_t structure at C level. It registers the RPCs necessary to interact with a Bake provider. It can be used to create provider handles pointing to Bake providers.
6259906ecc0a2c111447c704