code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class AddressChangeStatusView(generic.RedirectView): <NEW_LINE> <INDENT> url = reverse_lazy('customer:address-list') <NEW_LINE> permanent = False <NEW_LINE> def get(self, request, pk=None, action=None, *args, **kwargs): <NEW_LINE> <INDENT> address = get_object_or_404(UserAddress, user=self.request.user, pk=pk) <NEW_LIN...
Sets an address as default_for_(billing|shipping)
625990216e29344779b014fc
@HEADS.register_module() <NEW_LINE> class YOLACTSegmHead(nn.Module): <NEW_LINE> <INDENT> def __init__(self, num_classes, in_channels=256, loss_segm=dict( type='CrossEntropyLoss', use_sigmoid=True, loss_weight=1.0)): <NEW_LINE> <INDENT> super(YOLACTSegmHead, self).__init__() <NEW_LINE> self.in_channels = in_channels <NE...
YOLACT segmentation head used in https://arxiv.org/abs/1904.02689. Apply a semantic segmentation loss on feature space using layers that are only evaluated during training to increase performance with no speed penalty. Args: in_channels (int): Number of channels in the input feature map. num_classes (int): Nu...
62599021c432627299fa3e9d
class MockStrategy(BaseStrategy): <NEW_LINE> <INDENT> def __init__(self, ordering): <NEW_LINE> <INDENT> self.ordering = ordering <NEW_LINE> <DEDENT> def apply(self, item: FileInfo): <NEW_LINE> <INDENT> print(item.full_path) <NEW_LINE> <DEDENT> def process(self, duplicate_list): <NEW_LINE> <INDENT> duplicates = self.ord...
Just print affected paths
62599021bf627c535bcb2361
class TemplateController(BaseController): <NEW_LINE> <INDENT> def view(self, url): <NEW_LINE> <INDENT> abort(404)
The fallback controller for tinvent. By default, the final controller tried to fulfill the request when no other routes match. It may be used to display a template when all else fails, e.g.:: def view(self, url): return render('/%s' % url) Or if you're using Mako and want to explicitly send a 404 (Not Fo...
62599021796e427e5384f62b
class IClassVDigitWindow(VDigitWindow): <NEW_LINE> <INDENT> def __init__(self, parent, giface, map, properties): <NEW_LINE> <INDENT> VDigitWindow.__init__(self, parent=parent, giface=giface, Map=map, properties=properties) <NEW_LINE> <DEDENT> def _onLeftDown(self, event): <NEW_LINE> <INDENT> action = self.toolbar.GetAc...
Class similar to VDigitWindow but specialized for wxIClass.
6259902130c21e258be996c3
class LiveServerTestCase(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.host = '127.0.0.1' <NEW_LINE> cls.port = find_free_ports(1)[0] <NEW_LINE> cls.server_process = multiprocessing.Process( target=live_server_process, args=(cls.host, cls.port)) <NEW_LINE> ...
Base TestCase to inherit from which will run an HTTP server in a background thread.
6259902121bff66bcd723b11
class LoginSerializer(Serializer): <NEW_LINE> <INDENT> email = EmailField(required=True, label='email', max_length=512) <NEW_LINE> password = CharField(required=True, label='password', max_length=512, min_length=6)
Serializer class
62599021507cdc57c63a5c54
class Assignment(models.Model): <NEW_LINE> <INDENT> job = models.ForeignKey(Job, on_delete=models.CASCADE) <NEW_LINE> member = models.ForeignKey('Member', on_delete=models.PROTECT) <NEW_LINE> core_cache = models.BooleanField(_('Kernbereich'), default=False) <NEW_LINE> job_extras = models.ManyToManyField( JobExtra, rela...
Single assignment (work unit).
62599021925a0f43d25e8ef4
class TestBuildTwoTypeDef(TwoMixin, TypeDefMixin, BuildQuantityMixin, TestCase): <NEW_LINE> <INDENT> pass
Test building a group that has a nested type def with quantity 2
625990215e10d32532ce405d
class TopPortletRenderer(ColumnPortletManagerRenderer): <NEW_LINE> <INDENT> adapts(Interface, IDefaultBrowserLayer, IBrowserView, IThemeSchoolsPortlets) <NEW_LINE> template = ViewPageTemplateFile('templates/renderer.pt')
A renderer for the content-well portlets
6259902121a7993f00c66e2c
class ReverseProxied(object): <NEW_LINE> <INDENT> def __init__(self, app): <NEW_LINE> <INDENT> self.app = app <NEW_LINE> <DEDENT> def __call__(self, environ, start_response): <NEW_LINE> <INDENT> script_name = environ.get('HTTP_X_SCRIPT_NAME', '') <NEW_LINE> if script_name: <NEW_LINE> <INDENT> environ['SCRIPT_NAME'] = s...
Wrap the application in this middleware and configure the front-end server to add these headers, to let you quietly bind this to a URL other than / and to an HTTP scheme that is different than what is used locally. In nginx: location /myprefix { proxy_pass http://192.168.0.1:5001; proxy_set_header Host $host; ...
62599021796e427e5384f62f
class System(object): <NEW_LINE> <INDENT> def __init__(self, idnum, name, position, x, y, stype, extra): <NEW_LINE> <INDENT> self.is_quasispace = False <NEW_LINE> self.idnum = idnum <NEW_LINE> self.name = name <NEW_LINE> self.x = x <NEW_LINE> self.y = y <NEW_LINE> self.draw_x = int(x/10) <NEW_LINE> self.draw_y = 1000-i...
Class to hold information about a specific system. Most of the "fun" data in here is the aggregate data. We keep track of two sets of aggregates; one which holds the total value of the system, and one which holds the value which might be modified by safety filters.
62599021507cdc57c63a5c56
class PriorityQueue: <NEW_LINE> <INDENT> def __init__(self, items: list[Items], priority_function: PriorityFunction) -> None: <NEW_LINE> <INDENT> self.__items = items <NEW_LINE> self.__priority_function = priority_function <NEW_LINE> heapq.heapify(self.__items) <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT>...
Implementation of a priority queue data structure. Based on the heapq module, part of the standard library. This utility class encapsulates the most common interactions with the heapq module. Parameters ---------- items: list[Any] A list backing the priority queue, can be empty. priority_function : Callable[[Any]...
625990215166f23b2e244285
class _FakeUnitTestFileBackedSQSQueue(_FakeFileBackedSQSQueue): <NEW_LINE> <INDENT> _FAKE_AWS_ACCT = uuid.uuid4().hex <NEW_LINE> _FAKE_QUEUE_URL = f"https://fake-us-region.queue.amazonaws.com/{_FAKE_AWS_ACCT}/{UNITTEST_FAKE_QUEUE_NAME}" <NEW_LINE> _QUEUE_DATA_FILE = str(FAKE_QUEUE_DATA_PATH / f"{_FAKE_AWS_ACCT}_{UNITTE...
Subclass of the local file-backed queue used transiently during unit test sessions
6259902191af0d3eaad3acd7
class TypeEditPage(SchemaListingPage): <NEW_LINE> <INDENT> index = ViewPageTemplateFile('tabbed_forms.pt') <NEW_LINE> @property <NEW_LINE> def tabs(self): <NEW_LINE> <INDENT> return ( ('Fields', None), ('Behaviors', '@@behaviors'), ) <NEW_LINE> <DEDENT> @property <NEW_LINE> def form(self): <NEW_LINE> <INDENT> if self.c...
Form wrapper so we can get a form with layout. We define an explicit subclass rather than using the wrap_form method from plone.z3cform.layout so that we can inject the type name into the form label.
625990213eb6a72ae038b516
class MetadataDescription(object): <NEW_LINE> <INDENT> def __init__(self, entity_id): <NEW_LINE> <INDENT> self.entity_id = entity_id <NEW_LINE> self._organization = None <NEW_LINE> self._contact_person = [] <NEW_LINE> self._ui_info = None <NEW_LINE> <DEDENT> def set_organization(self, organization): <NEW_LINE> <INDENT>...
Description class for a backend module
6259902163f4b57ef00864cb
class DefinitionData(object): <NEW_LINE> <INDENT> deserialized_types = { 'catalog': 'ask_smapi_model.v1.skill.interaction_model.catalog.catalog_input.CatalogInput', 'vendor_id': 'str' } <NEW_LINE> attribute_map = { 'catalog': 'catalog', 'vendor_id': 'vendorId' } <NEW_LINE> supports_multiple_types = False <NEW_LINE> def...
Catalog request definitions. :param catalog: :type catalog: (optional) ask_smapi_model.v1.skill.interaction_model.catalog.catalog_input.CatalogInput :param vendor_id: The vendorId that the catalog should belong to. :type vendor_id: (optional) str
6259902121bff66bcd723b15
class ClipEntry: <NEW_LINE> <INDENT> def __init__(self, text = None, time = None, offset = -1, length = 0): <NEW_LINE> <INDENT> self.text = text <NEW_LINE> self.time = time if time is not None else sys_time() <NEW_LINE> self.offset = offset <NEW_LINE> self.length = length <NEW_LINE> <DEDENT> def info(self): <NEW_LINE> ...
Clip entry infomation
62599021bf627c535bcb2367
class FunctionTask(models.Model): <NEW_LINE> <INDENT> task = models.ForeignKey(TaskFlowInstance, related_name='function_task', help_text=_(u"职能化单")) <NEW_LINE> creator = models.CharField(_(u"提单人"), max_length=32) <NEW_LINE> create_time = models.DateTimeField(_(u"提单时间"), auto_now_add=True) <NEW_LINE> claimant = models.C...
职能化认领单
62599021287bf620b6272aa0
class StatusBar(ttk.Frame): <NEW_LINE> <INDENT> def __init__(self, parent, hide_status=False): <NEW_LINE> <INDENT> super().__init__(parent) <NEW_LINE> self.pack(side=tk.BOTTOM, padx=10, pady=2, fill=tk.X, expand=False) <NEW_LINE> self._message = tk.StringVar() <NEW_LINE> self._pbar_message = tk.StringVar() <NEW_LINE> s...
Status Bar for displaying the Status Message and Progress Bar at the bottom of the GUI. Parameters ---------- parent: tkinter object The parent tkinter widget that will hold the status bar hide_status: bool, optional ``True`` to hide the status message that appears at the far left hand side of the status ...
6259902163f4b57ef00864cc
class CertOptionNameAndValidPrincipalTypes(typing.NamedTuple): <NEW_LINE> <INDENT> name: str <NEW_LINE> valid_principal_types: typing.List[CertPrincipalType]
A certificate option's name and the types of certificate principals for which this certificate option is valid.
62599021d18da76e235b78a7
class ContainerWrapper: <NEW_LINE> <INDENT> def __init__(self, server_context: ServerContext): <NEW_LINE> <INDENT> self.server_context = server_context <NEW_LINE> <DEDENT> def create( self, name: str, container_path: str = None, description: str = None, folder_type: str = None, is_workbook: bool = None, title: str = No...
Wrapper for all of the API methods exposed in the container module. Used by the APIWrapper class.
62599021462c4b4f79dbc8be
class MockServices: <NEW_LINE> <INDENT> flag = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.id = "117" <NEW_LINE> self.name = "iptables" <NEW_LINE> self.description = "description" <NEW_LINE> self.type = "type" <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def create(name, service_type, description): <NE...
Mock of Services class
625990216fece00bbaccc86c
class LocalComponentBase(SageObject): <NEW_LINE> <INDENT> r <NEW_LINE> def __init__(self, newform, prime, twist_factor): <NEW_LINE> <INDENT> self._p = prime <NEW_LINE> self._f = newform <NEW_LINE> self._twist_factor = twist_factor <NEW_LINE> <DEDENT> @abstract_method <NEW_LINE> def species(self): <NEW_LINE> <INDENT> pa...
Base class for local components of newforms. Not to be directly instantiated; use the :func:`~LocalComponent` constructor function.
62599021a8ecb033258720d4
class CheckAnswerAPI(APIView): <NEW_LINE> <INDENT> permission_classes = (IsAuthenticated,) <NEW_LINE> def get(self, request, slug): <NEW_LINE> <INDENT> quiz = get_object_or_404(Quiz, slug=slug) <NEW_LINE> answer = get_object_or_404(QuestionAnswer, pk=request.GET.get('pk')) <NEW_LINE> quiz_manager, created = QuizManager...
API for checking answers. Find the quiz with given slug. Get a pk from the GET data and find the answer. If a user already completed the quiz call QuizManager.set_as_uncompleted() and remove_correct_answers(). User will pass the quiz from scratch. Check if the answer is correct -> increase the quiz manager correct_a...
6259902156b00c62f0fb3774
class CheckcveViewSet(mixins.ListModelMixin, mixins.CreateModelMixin, mixins.RetrieveModelMixin, mixins.DestroyModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> queryset = Checkcve.objects.all() <NEW_LINE> serializer_class = serializers.CheckcveSerializer <NEW_LINE> def update(self, request, pk=None): <NEW_LINE...
API endpoint that allows groups to be viewed or edited.
625990211d351010ab8f49cb
class Document: <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> self.enviroment_stack = {} <NEW_LINE> self.filename = filename <NEW_LINE> self.macrodict = {} <NEW_LINE> InputMacro(self) <NEW_LINE> self.environdict = {} <NEW_LINE> BeginEnvironmentMacro(self) <NEW_LINE> EndEnvironmentMacro(self) <NE...
6259902191af0d3eaad3acdb
class UserCreationSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> email = serializers.EmailField(validators=[UniqueValidator(queryset=User.objects.all())], label="이메일", style={'placeholder': "회원 이메일"}) <NEW_LINE> password1 = serializers.CharField(write_only=True, min_length=8, label="비밀번호(8자 이상)", style={'...
소셜 로그인이 아닌 일반 회원가입을 의미합니다.
62599021d18da76e235b78a8
class BaseCatalogueDecluster(object): <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> def decluster(self, catalogue, config): <NEW_LINE> <INDENT> return
Abstract base class for implementation of declustering algorithms
625990215e10d32532ce4060
class HighlightStyleMenu(Bubble): <NEW_LINE> <INDENT> scroll_view = ObjectProperty(None) <NEW_LINE> editor_container = ObjectProperty(None) <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(HighlightStyleMenu, self).__init__(**kwargs) <NEW_LINE> self.layout = GridLayout(cols=1, spacing=2, size_hint_y=N...
Highlight style menu used to select the style of the text (and :py:class:`editorcontainer.editor.editor.Editor`) displayed in the :py:class:`editorcontainer.editor.editor.Editor`.
62599021a8ecb033258720d6
@serializable <NEW_LINE> class CorProfilForApp(GenericRepository): <NEW_LINE> <INDENT> __tablename__ = "cor_profil_for_app" <NEW_LINE> __table_args__ = {"schema": "utilisateurs", "extend_existing": True} <NEW_LINE> id_application = db.Column( db.Integer, ForeignKey("utilisateurs.t_applications.id_application"), primary...
Classe de correspondance entre la table t_applications et la table t_profils
62599021287bf620b6272aa4
class FlowGoRelativeViscosityModelCosta1(pyflowgo.base.flowgo_base_relative_viscosity_model. FlowGoBaseRelativeViscosityModel): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._strain_rate = 1. <NEW_LINE> <DEDENT> def read_initial_condition_from_json_file(self, fil...
This methods permits to calculate the effect of crystal cargo on viscosity according to Costa et al [] This relationship considers the strain rate and allows to evalutate the effect of high crystal fraction (above maximum packing). The input parameters include the variable crystal fraction (phi) and other parameters de...
62599021d164cc6175821e2d
class DescribeRestoreJobTest(test_base_testcase.APITestCase): <NEW_LINE> <INDENT> @mock.patch('magnetodb.storage.describe_restore_job') <NEW_LINE> def test_describe_restore_job(self, describe_restore_job_mock): <NEW_LINE> <INDENT> headers = {'Content-Type': 'application/json', 'Accept': 'application/json'} <NEW_LINE> c...
The test for v1 ReST API DescribeRestoreJobController.
6259902163f4b57ef00864ce
class BaseDeleteView(DeletionMixin, BaseDetailView): <NEW_LINE> <INDENT> pass
Base view for deleting an object. Using this base class requires subclassing to provide a response mixin.
625990211d351010ab8f49ce
class Meta: <NEW_LINE> <INDENT> swappable = swapper.swappable_setting('kernel', 'JointFacultyMembership')
Meta class for JointFacultyMembership
625990216e29344779b01508
class Manifest(EqualityBase): <NEW_LINE> <INDENT> def __init__(self, default_client_spec=None, client_spec_list=None): <NEW_LINE> <INDENT> self.default_client_spec = default_client_spec <NEW_LINE> if not client_spec_list is None: <NEW_LINE> <INDENT> self.client_spec_list = client_spec_list[:] <NEW_LINE> <DEDENT> else: ...
Represents the manifest.
6259902266673b3332c312a5
class ComputeSnapshotsListRequest(_messages.Message): <NEW_LINE> <INDENT> filter = _messages.StringField(1) <NEW_LINE> maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) <NEW_LINE> orderBy = _messages.StringField(3) <NEW_LINE> pageToken = _messages.StringField(4) <NEW_LINE> project = ...
A ComputeSnapshotsListRequest object. Fields: filter: Filter expression for filtering listed resources. maxResults: Maximum count of results to be returned. orderBy: A string attribute. pageToken: Tag returned by a previous list request when that list was truncated to maxResults. Used to continue a previou...
6259902230c21e258be996cf
class ExactInference(InferenceModule): <NEW_LINE> <INDENT> def initializeUniformly(self, gameState): <NEW_LINE> <INDENT> self.beliefs = util.Counter() <NEW_LINE> for p in self.legalPositions: self.beliefs[p] = 1.0 <NEW_LINE> self.beliefs.normalize() <NEW_LINE> <DEDENT> def observe(self, observation, gameState): <NEW_LI...
The exact dynamic inference module should use forward-algorithm updates to compute the exact belief function at each time step.
62599022d164cc6175821e2f
class PublicUserApiTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = APIClient() <NEW_LINE> <DEDENT> def test_create_valid_user_success(self): <NEW_LINE> <INDENT> payload = { 'email': 'test@snikers.com', 'password': 'testpass', 'name': 'Test name', } <NEW_LINE> res = self.client.po...
Test the users API (public)
62599022462c4b4f79dbc8c4
class Ubuntu1404Mixin(DebianMixin): <NEW_LINE> <INDENT> OS_TYPE = os_types.UBUNTU1404
Class holding Ubuntu1404 specific VM methods and attributes.
6259902266673b3332c312a7
class LearningCurves(): <NEW_LINE> <INDENT> def __init__(self,X, y, estimator, validation, metric, step_size, shuffle=False, metric_name='metric'): <NEW_LINE> <INDENT> self.X = X <NEW_LINE> self.y = y <NEW_LINE> self.estimator = estimator <NEW_LINE> self.validation = validation <NEW_LINE> self.metric = metric <NEW_LINE...
Evaluates the performace of a machine learning estimator based on the increase of the sample size. parameters: X - Pandas dataframe. y - target. estimator - Algorithm or pipeline. validation - cross validation, it can be a integer number or a function like: KFold, RepeatedKFold, etc. metric - Metric chosen for th...
6259902230c21e258be996d1
class Renderer(base.Renderer): <NEW_LINE> <INDENT> @property <NEW_LINE> def available(self): <NEW_LINE> <INDENT> return bool(self.getApprofondimenti()) <NEW_LINE> <DEDENT> def getTitle(self): <NEW_LINE> <INDENT> path = self._getApprofondimentiPath(self.data.up_levels) <NEW_LINE> if path: <NEW_LINE> <INDENT> return self...
Portlet renderer.
62599022507cdc57c63a5c60
class ReplayBuffer: <NEW_LINE> <INDENT> def __init__(self, action_size, buffer_size, batch_size, seed): <NEW_LINE> <INDENT> self.action_size = action_size <NEW_LINE> self.memory = deque(maxlen=buffer_size) <NEW_LINE> self.batch_size = batch_size <NEW_LINE> self.experience = namedtuple("Experience", field_names=["state"...
Fixed-size buffer to store experience tuples.
62599022287bf620b6272aa8
@global_preferences_registry.register <NEW_LINE> class OrionServerRestUrl(LongStringPreference): <NEW_LINE> <INDENT> section = ORION_SERVER_CONN <NEW_LINE> name = 'orion_rest_url' <NEW_LINE> default = settings.ORION_URL <NEW_LINE> required = True <NEW_LINE> verbose_name = _('Orion Server REST API root URL')
Dynamic preferences class controlling the `URL` for the `REST` `API` provided by the `Orion server` This preference is used by several applications in this project to query the `Orion` server for data about `Orion` nodes. :access_key: 'orionserverconn__orion_rest_url'
625990225166f23b2e24428f
class SphericalKMeans(KMeans): <NEW_LINE> <INDENT> def __init__(self, n_clusters=8, init='k-means++', n_init=10, max_iter=300, tol=1e-4, n_jobs=1, verbose=0, random_state=None, copy_x=True): <NEW_LINE> <INDENT> self.n_clusters = n_clusters <NEW_LINE> self.init = init <NEW_LINE> self.max_iter = max_iter <NEW_LINE> self....
Spherical K-Means clustering Modfication of sklearn.cluster.KMeans where cluster centers are normalized (projected onto the sphere) in each iteration. Parameters ---------- n_clusters : int, optional, default: 8 The number of clusters to form as well as the number of centroids to generate. max_iter : int, d...
62599022925a0f43d25e8f00
class ReplyUncommitted(object): <NEW_LINE> <INDENT> def __init__(self, rtag, txn_ids): <NEW_LINE> <INDENT> self.rtag = rtag <NEW_LINE> self.txn_ids = txn_ids <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "ReplyUncommitted(rtag={!r}, txn_ids={!r})".format(self.rtag, self.txn_ids) <NEW_LINE> <DEDENT> ...
ReplyUncommitted(rtag: U64, txn_ids: Array[(txn_id: String])
625990221d351010ab8f49d1
class BaseCLIDriverTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.environ = { 'AWS_DATA_PATH': os.environ['AWS_DATA_PATH'], 'AWS_DEFAULT_REGION': 'us-east-1', 'AWS_ACCESS_KEY_ID': 'access_key', 'AWS_SECRET_ACCESS_KEY': 'secret_key', 'AWS_CONFIG_FILE': '', } <NEW_LINE> self.enviro...
Base unittest that use clidriver. This will load all the default plugins as well so it will simulate the behavior the user will see.
625990223eb6a72ae038b520
class Player(item.Item): <NEW_LINE> <INDENT> sprite = { 'left': "{#", 'right': "#}" } <NEW_LINE> heading = 'left' <NEW_LINE> missile = { "current": 0, "max": 10 } <NEW_LINE> def __init__(self, x, y, max_x, objects): <NEW_LINE> <INDENT> item.Item.__init__(self, x, y) <NEW_LINE> self.max_x = max_x <NEW_LINE> self.objects...
Player class
625990226e29344779b0150c
class DocID(models.Model): <NEW_LINE> <INDENT> doc_id = models.CharField(max_length=26, primary_key=True)
Model for a document id used to generate queries of certain sizes This model is used to store document ids. The document ids are used to generate query sets of certain sizes. These query sets are used to test the performance of generating word cloud data using ES in multiple management commands.
625990226fece00bbaccc874
class RingBuffer(np.ndarray): <NEW_LINE> <INDENT> def __new__(cls, input_array): <NEW_LINE> <INDENT> obj = np.asarray(input_array).view(cls) <NEW_LINE> return obj <NEW_LINE> <DEDENT> def __array_finalize__(self, obj): <NEW_LINE> <INDENT> if obj is None: return <NEW_LINE> <DEDENT> def __array_wrap__(self, out_arr, conte...
A multidimensional ring buffer.
62599022c432627299fa3ead
class Item: <NEW_LINE> <INDENT> def __init__(self, name, desc): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.desc = desc
An item in the game. Arguments: name (str): Name of the item. desc (str): Descripton of the item available to the player.
62599022d164cc6175821e34
class EndpointInfo(Model): <NEW_LINE> <INDENT> _attribute_map = { 'version_id': {'key': 'versionId', 'type': 'str'}, 'is_staging': {'key': 'isStaging', 'type': 'bool'}, 'endpoint_url': {'key': 'endpointUrl', 'type': 'str'}, 'region': {'key': 'region', 'type': 'str'}, 'assigned_endpoint_key': {'key': 'assignedEndpointKe...
The base class "ProductionOrStagingEndpointInfo" inherits from. :param version_id: The version ID to publish. :type version_id: str :param is_staging: Indicates if the staging slot should be used, instead of the Production one. :type is_staging: bool :param endpoint_url: The Runtime endpoint URL for this model versio...
6259902221bff66bcd723b21
class SignUp(CreateView): <NEW_LINE> <INDENT> form_class = forms.UserCreateForm <NEW_LINE> success_url = reverse_lazy("login") <NEW_LINE> template_name = "accounts/signup.html"
A handle of the sign up **Context** **Template:** :template:`accounts/signup.html`
62599022a8ecb033258720de
class PolicyContract(Resource): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'value': {'key': 'prop...
Policy Contract details. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartyp...
62599022287bf620b6272aac
class TabPanel(wx.Panel): <NEW_LINE> <INDENT> def __init__(self, tab_panel_stack): <NEW_LINE> <INDENT> super().__init__(tab_panel_stack) <NEW_LINE> self.tab_panel_stack = tab_panel_stack <NEW_LINE> <DEDENT> def save(self): <NEW_LINE> <INDENT> return {'subclass': self.__class__.__name__} <NEW_LINE> <DEDENT> @classmethod...
panel in a TabPanelStack
625990221d351010ab8f49d5
class SectionChoices: <NEW_LINE> <INDENT> all = 'all' <NEW_LINE> cars = 'cars' <NEW_LINE> sport = 'sport' <NEW_LINE> CHOICES = ( (all, "all"), (cars, "cars"), (sport, "sport") )
Разделы
62599022d164cc6175821e36
@ddt.ddt <NEW_LINE> class RadioProblemResetCorrectnessAfterChangingAnswerTest(RadioProblemTypeBase): <NEW_LINE> <INDENT> shard = 24 <NEW_LINE> @ddt.data(['correct', '1/1 point (ungraded)'], ['incorrect', '0/1 point (ungraded)']) <NEW_LINE> @ddt.unpack <NEW_LINE> def test_radio_score_after_answer_and_reset(self, correct...
Tests for Radio problem with changing answers
6259902230c21e258be996d7
class User(models.Model): <NEW_LINE> <INDENT> id = models.AutoField(primary_key=True) <NEW_LINE> username = models.CharField(max_length=255, db_index=True, unique=True) <NEW_LINE> pass_salt = models.TextField() <NEW_LINE> pass_hash = models.TextField() <NEW_LINE> type = models.TextField() <NEW_LINE> def se...
A user within the Authentication app.
625990228c3a8732951f7418
class CssIndent(Indent): <NEW_LINE> <INDENT> def events(self, block, tokens, prev_indents): <NEW_LINE> <INDENT> for t in tokens: <NEW_LINE> <INDENT> if t.action is Bracket: <NEW_LINE> <INDENT> if t == "{": <NEW_LINE> <INDENT> yield INDENT <NEW_LINE> <DEDENT> elif t == "}": <NEW_LINE> <INDENT> yield DEDENT
Indenter for Css.
625990223eb6a72ae038b526
class Function(use_metaclass(CachedMetaClass, pr.IsScope)): <NEW_LINE> <INDENT> def __init__(self, evaluator, func, is_decorated=False): <NEW_LINE> <INDENT> self._evaluator = evaluator <NEW_LINE> self.base_func = func <NEW_LINE> self.is_decorated = is_decorated <NEW_LINE> <DEDENT> @memoize_default(None) <NEW_LINE> def ...
Needed because of decorators. Decorators are evaluated here.
625990226e29344779b01512
class MedicinalProductIngredientSpecifiedSubstance(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = "MedicinalProductIngredientSpecifiedSubstance" <NEW_LINE> def __init__(self, jsondict=None, strict=True, **kwargs): <NEW_LINE> <INDENT> self.code = None <NEW_LINE> self.confidentiality = None <NEW_LI...
A specified substance that comprises this ingredient.
62599022462c4b4f79dbc8cd
class DiscoItems: <NEW_LINE> <INDENT> def __init__(self, items=None): <NEW_LINE> <INDENT> if (not items): <NEW_LINE> <INDENT> items = [] <NEW_LINE> <DEDENT> self.items = items <NEW_LINE> <DEDENT> def additem(self, jid, name=None, node=None): <NEW_LINE> <INDENT> jid = unicode(jid) <NEW_LINE> self.items.append( (jid, nam...
DiscoItems: A class which represents the results of a disco items query. It contains a list of items. DiscoItems(items=None) -- constructor. The *items* (if present) must be a list of (jid, name, node) tuples (where *name* and *node* may be None). Public methods: additem(jid, name=None, node=None) -- add a new item...
625990229b70327d1c57fc43
class CloudPoolPaged(Paged): <NEW_LINE> <INDENT> _attribute_map = { 'next_link': {'key': 'odata\\.nextLink', 'type': 'str'}, 'current_page': {'key': 'value', 'type': '[CloudPool]'} } <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(CloudPoolPaged, self).__init__(*args, **kwargs)
A paging container for iterating over a list of :class:`CloudPool <azure.batch.models.CloudPool>` object
62599022925a0f43d25e8f08
class Rectangle: <NEW_LINE> <INDENT> pass
Represents a rectangle in 2-D space. - width and height represent the rectangle's dimensions - corner is a Point object that specifies the lower-left corner of the rectangle
625990226fece00bbaccc87c
class Resource(ResourceMixin, WithMetrics, db.EmbeddedDocument): <NEW_LINE> <INDENT> on_added = signal('Resource.on_added') <NEW_LINE> on_deleted = signal('Resource.on_deleted')
Local file, remote file or API provided by the original provider of the dataset
62599022462c4b4f79dbc8cf
class VecTransposeImage(VecEnvWrapper): <NEW_LINE> <INDENT> def __init__(self, venv: VecEnv, skip: bool = False): <NEW_LINE> <INDENT> assert is_image_space(venv.observation_space) or isinstance( venv.observation_space, spaces.dict.Dict ), "The observation space must be an image or dictionary observation space" <NEW_LIN...
Re-order channels, from HxWxC to CxHxW. It is required for PyTorch convolution layers. :param venv: :param skip: Skip this wrapper if needed as we rely on heuristic to apply it or not, which may result in unwanted behavior, see GH issue #671.
6259902230c21e258be996da
class Square: <NEW_LINE> <INDENT> def __init__(self, size=0): <NEW_LINE> <INDENT> if type(size) is not int: <NEW_LINE> <INDENT> raise TypeError("size must be an integer") <NEW_LINE> <DEDENT> if size < 0: <NEW_LINE> <INDENT> raise ValueError("size must be >= 0") <NEW_LINE> <DEDENT> """attribute""" <NEW_LINE> self.__size...
Initialize
625990228c3a8732951f741c
class Fraction: <NEW_LINE> <INDENT> def __init__(self, numerator, denominator): <NEW_LINE> <INDENT> if not isinstance(numerator, int) or not isinstance(denominator, int): <NEW_LINE> <INDENT> raise TypeError <NEW_LINE> <DEDENT> elif denominator == 0: <NEW_LINE> <INDENT> raise ValueError <NEW_LINE> <DEDENT> self.__numera...
This class represents one single fraction that consists of numerator and denominator
625990228c3a8732951f741d
class BibIndexYearTokenizer(BibIndexDefaultTokenizer): <NEW_LINE> <INDENT> def __init__(self, stemming_language = None, remove_stopwords = False, remove_html_markup = False, remove_latex_markup = False): <NEW_LINE> <INDENT> BibIndexDefaultTokenizer.__init__(self, stemming_language, remove_stopwords, remove_html_markup,...
Year tokenizer. It tokenizes words from date tags or uses default word tokenizer.
625990226e29344779b01516
class M3DIllegalArgumentException(M3DException): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> super(M3DIllegalArgumentException, self).__init__(message)
Thrown to indicate that a method has been passed an illegal or inappropriate argument. For example, invalid char exception.
62599022bf627c535bcb237b
class HardTripletLoss(nn.Module): <NEW_LINE> <INDENT> def __init__(self, margin=0.1, hardest=False, squared=False): <NEW_LINE> <INDENT> super(HardTripletLoss, self).__init__() <NEW_LINE> self.margin = margin <NEW_LINE> self.hardest = hardest <NEW_LINE> self.squared = squared <NEW_LINE> <DEDENT> def forward(self, embedd...
Hard/Hardest Triplet Loss (pytorch implementation of https://omoindrot.github.io/triplet-loss) For each anchor, we get the hardest positive and hardest negative to form a triplet.
62599022d164cc6175821e3d
class connectedBox(QtGui.QGraphicsRectItem): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(connectedBox, self).__init__(*args) <NEW_LINE> self.setAcceptHoverEvents(True) <NEW_LINE> self._isHighlighted = False <NEW_LINE> <DEDENT> def hoverEnterEvent(self, e): <NEW_LINE> <INDENT> self...
docstring for connectedBox
6259902263f4b57ef00864d6
class Teacher(models.Model): <NEW_LINE> <INDENT> user = models.OneToOneField(User) <NEW_LINE> school = models.ForeignKey(School) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.first_name + " " + self.last_name
Override the user class
62599022ac7a0e7691f733b2
class devices: <NEW_LINE> <INDENT> def __init__(self, debug): <NEW_LINE> <INDENT> self.devices = {} <NEW_LINE> self.doi = None <NEW_LINE> self.secondary = None <NEW_LINE> self.debug = debug <NEW_LINE> <DEDENT> def register(self, info): <NEW_LINE> <INDENT> if "serial" in info and info["serial"].lower() not in self.devic...
A simple class with a register and unregister methods
625990226fece00bbaccc880
class ReturnView(DetailView): <NEW_LINE> <INDENT> model = Payment <NEW_LINE> def post(self, request, *args, **kwargs): <NEW_LINE> <INDENT> return self.get(request, *args, **kwargs) <NEW_LINE> <DEDENT> def render_to_response(self, context, **response_kwargs): <NEW_LINE> <INDENT> if self.request.POST['status'] == 'OK': <...
This view just redirects to standard backend success or failure link.
62599022a8ecb033258720e8
class CustomEmoticonsModule(Module): <NEW_LINE> <INDENT> @Module.event(['message']) <NEW_LINE> async def on_message(self, message: discord.Message): <NEW_LINE> <INDENT> if message.author.id == self.client.connection.user.id: <NEW_LINE> <INDENT> word, image = self.parse_message(message.content) <NEW_LINE> if word and im...
Automatically replaces messages with custom images if emoticon names are found in the text. Images are searched for in the ``/custom-emoticons`` directory relative to the directory of the ``__main__`` file. If a word replaceable with an emoticon is found, the message is deleted and replaced with a new message that inc...
625990225166f23b2e24429d
class StupidAi(GuessingGameAi): <NEW_LINE> <INDENT> def __init__(self, game): <NEW_LINE> <INDENT> super().__init__(game) <NEW_LINE> <DEDENT> def generate_guess(self) -> int: <NEW_LINE> <INDENT> guess = random.randrange(*self.game.number_range()) <NEW_LINE> return guess <NEW_LINE> <DEDENT> def receive_hint(self, hint: H...
StupidAi is a kind of GuessingGameAi. Each time it makes guesses randomly without remembering previous guesses. It also ignores the hints.
62599022d18da76e235b78b2
class CastsDeleteTestCase(BaseTestGenerator): <NEW_LINE> <INDENT> scenarios = [ ('Check Cast Node', dict(url='/browser/cast/obj/')) ] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.default_db = self.server["db"] <NEW_LINE> self.database_info = parent_node_dict['database'][-1] <NEW_LINE> self.db_name = self.databa...
This class will delete the cast node added under database node.
625990221d351010ab8f49e0
class FeedNewSampleSeries(FeedEntry): <NEW_LINE> <INDENT> sample_series = models.ForeignKey(SampleSeries, models.CASCADE, verbose_name=_("sample series")) <NEW_LINE> topic = models.ForeignKey(Topic, models.CASCADE, verbose_name=_("topic")) <NEW_LINE> subscribers = models.ManyToManyField(django.contrib.auth.models.User,...
Model for feed entries for new sample series.
62599022462c4b4f79dbc8d5
class AdalineGD(neuron.Neuron): <NEW_LINE> <INDENT> def fit(self, X, y): <NEW_LINE> <INDENT> self.fitted_weights_ = numpy.zeros(1 + X.shape[1]) <NEW_LINE> self.cost_ = [] <NEW_LINE> for i in range(self.epochs): <NEW_LINE> <INDENT> net_input = self.net_input(X) <NEW_LINE> output = self.activation(X) <NEW_LINE> errors = ...
Adaline Gradient Descent classifier
62599022507cdc57c63a5c70
class Authorization(Find, Post): <NEW_LINE> <INDENT> path = "v1/payments/authorization" <NEW_LINE> def capture(self, attributes): <NEW_LINE> <INDENT> return self.post('capture', attributes, Capture) <NEW_LINE> <DEDENT> def void(self): <NEW_LINE> <INDENT> return self.post('void', {}, self) <NEW_LINE> <DEDENT> def reauth...
Enables looking up, voiding and capturing authorization and reauthorize payments Helpful links:: https://developer.paypal.com/docs/api/#authorizations https://developer.paypal.com/docs/integration/direct/capture-payment/#authorize-the-payment Usage:: >>> authorization = Authorization.find("<AUTHORIZATION_ID>") ...
62599022796e427e5384f649
class ProjectBallotListView(ProjectMixin, PaginationMixin, DetailView): <NEW_LINE> <INDENT> context_object_name = 'project' <NEW_LINE> template_name = 'project/ballot-list.html' <NEW_LINE> paginate_by = 1000 <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super( ProjectBallotListView, sel...
List all ballots within in a project.
625990225166f23b2e24429f
class LagrangianPatchDataAll: <NEW_LINE> <INDENT> def __init__(self,cloudDirName): <NEW_LINE> <INDENT> self.dir=path.abspath(cloudDirName) <NEW_LINE> d=SolutionDirectory(self.dir,paraviewLink=False) <NEW_LINE> self.data={} <NEW_LINE> for t in d: <NEW_LINE> <INDENT> self.data[float(t.baseName())]=LagrangianPatchDataTime...
Read the lagrangian patch data for a cloud for a whole cloud (all times)
62599022287bf620b6272ab8
class CreatePTransformOverride(PTransformOverride): <NEW_LINE> <INDENT> def get_matcher(self): <NEW_LINE> <INDENT> return self.is_streaming_create <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def is_streaming_create(applied_ptransform): <NEW_LINE> <INDENT> from apache_beam import Create <NEW_LINE> from apache_beam.opti...
A ``PTransformOverride`` for ``Create`` in streaming mode.
62599022d164cc6175821e42
class twinrx_phase_offset_est(gr.hier_block2): <NEW_LINE> <INDENT> def __init__(self, num_ports=2, n_skip_ahead=8192): <NEW_LINE> <INDENT> gr.hier_block2.__init__( self, "TwinRx Phase Offset Estimate", gr.io_signaturev(num_ports, num_ports, gen_sig_io(num_ports,gr.sizeof_gr_complex)), gr.io_signaturev(num_ports-1, num_...
This block estimates the repeatable phase offset at the output of a USRP X310 equipped with two TwinRXs. The output is a value in [0, 2*pi).
62599022bf627c535bcb2381
class SawUp(Function): <NEW_LINE> <INDENT> def __init__(self, frequency=1.0, phase0=0.0): <NEW_LINE> <INDENT> Function.__init__(self) <NEW_LINE> self.frequency = frequency <NEW_LINE> self.T = None <NEW_LINE> self.phase0 = phase0 <NEW_LINE> <DEDENT> def __call__(self, t, f=None, phase0=None): <NEW_LINE> <INDENT> if f !=...
Saw-up wave translated in the [0,1] range
625990226fece00bbaccc884
class EasyServer(base.BaseServer): <NEW_LINE> <INDENT> def __init__(self, host, port, max_connection=1024, request_model=HTTPRequest, use_ipv6=False): <NEW_LINE> <INDENT> super().__init__(host, port, max_connection, request_model, use_ipv6) <NEW_LINE> <DEDENT> def process_request(self, request): <NEW_LINE> <INDENT> res...
一个简单的http服务器
62599022507cdc57c63a5c72
class Table(CallableLuaObject, LuaNamespace): <NEW_LINE> <INDENT> def __init__(self, ref_or_iterable=None): <NEW_LINE> <INDENT> if ref_or_iterable is None: <NEW_LINE> <INDENT> self._init_empty_table() <NEW_LINE> <DEDENT> elif isinstance(ref_or_iterable, int): <NEW_LINE> <INDENT> CallableLuaObject.__init__(self, ref_or_...
Class for representing Lua tables. :class:`Table` has a multifunctional constructor:: # Creating an empty table t = Table() # Converting a dict to a table d = {'a': 1, 'b': 2} t = Table(d) # Converting an iterable to a table i = [1, 2, 3] t = Table(i) .. note:: Members whose na...
625990225166f23b2e2442a1
class PuzzleNode: <NEW_LINE> <INDENT> def __init__(self, puzzle=None, children=None, parent=None): <NEW_LINE> <INDENT> self.puzzle, self.parent = puzzle, parent <NEW_LINE> if children is None: <NEW_LINE> <INDENT> self.children = [] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.children = children[:] <NEW_LINE> <DE...
A Puzzle configuration that refers to other configurations that it can be extended to.
62599022be8e80087fbbff44
class DuplicateContent(Exception): <NEW_LINE> <INDENT> def __init__(self, message, pids=[], pid_cmodels={}): <NEW_LINE> <INDENT> Exception.__init__(self, message) <NEW_LINE> self.pids = pids <NEW_LINE> self.pid_cmodels = pid_cmodels
Custom exception to prevent ingest when duplicate content is detected. The optional list of pids should be specified when possible, to allow investigating the objects detected as duplicates; a pid to content model mapping should also provided if possible, to allow exception handling to detect the object type of the du...
62599022d164cc6175821e44
class RoleClass(CAEXObject): <NEW_LINE> <INDENT> refBaseClassPath = EAttribute(eType=EString) <NEW_LINE> attribute = EReference(upper=-1, containment=True) <NEW_LINE> externalInterface = EReference(upper=-1, containment=True) <NEW_LINE> baseClass = EReference() <NEW_LINE> roleClass = EReference(upper=-1, containment=Tr...
Shall be used for RoleClass definition, provides base structures for a role class definition.
6259902230c21e258be996e4
class Solution: <NEW_LINE> <INDENT> def sortList(self, head): <NEW_LINE> <INDENT> if head is None: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> if head.next is None: <NEW_LINE> <INDENT> return head <NEW_LINE> <DEDENT> mid = self.findMid(head) <NEW_LINE> rightStart = mid.next <NEW_LINE> mid.next = None <NEW_LINE>...
@param head: The first node of the linked list. @return: You should return the head of the sorted linked list, using constant space complexity.
625990225e10d32532ce406c
class ImageClip(VideoClip): <NEW_LINE> <INDENT> def __init__(self, source, size): <NEW_LINE> <INDENT> super().__init__(source, VideoClipMetadata(size = size, frameCount = 1, fps = 30), isConstant = True) <NEW_LINE> self._image = None <NEW_LINE> <DEDENT> @memoizeHash <NEW_LINE> def __hash__(self): <NEW_LINE> <INDENT> re...
ImageClip(source, size) Represents a single image, e.g. a loaded png or some rendered text.
6259902291af0d3eaad3acf6
class TestERFATestCases: <NEW_LINE> <INDENT> def setup_class(cls): <NEW_LINE> <INDENT> cls.time_ut1 = Time(2400000.5, 53736.0, scale='ut1', format='jd') <NEW_LINE> cls.time_tt = Time(2400000.5, 53736.0, scale='tt', format='jd') <NEW_LINE> cls.time_ut1.delta_ut1_utc = 0. <NEW_LINE> cls.time_ut1.delta_ut1_utc = 24 * 3600...
Test that we reproduce the test cases given in erfa/src/t_erfa_c.c
625990226e29344779b01520
class OpenSecureChannelRequest(FrozenClass): <NEW_LINE> <INDENT> def __init__(self, binary=None): <NEW_LINE> <INDENT> if binary is not None: <NEW_LINE> <INDENT> self._binary_init(binary) <NEW_LINE> self._freeze = True <NEW_LINE> return <NEW_LINE> <DEDENT> self.TypeId = FourByteNodeId(ObjectIds.OpenSecureChannelRequest_...
Creates a secure channel with a server. :ivar TypeId: :vartype TypeId: NodeId :ivar RequestHeader: :vartype RequestHeader: RequestHeader :ivar Parameters: :vartype Parameters: OpenSecureChannelParameters
6259902221bff66bcd723b32
class SetViewSet(WgerOwnerObjectModelViewSet): <NEW_LINE> <INDENT> serializer_class = SetSerializer <NEW_LINE> is_private = True <NEW_LINE> ordering_fields = '__all__' <NEW_LINE> filterset_fields = ( 'exerciseday', 'order', 'sets', ) <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> return Set.objects.filter(exerc...
API endpoint for workout set objects
6259902230c21e258be996e6
class Entry(Model): <NEW_LINE> <INDENT> __tablename__ = "entry" <NEW_LINE> id = Column('id', Integer, primary_key=True) <NEW_LINE> feed_id = Column(Integer, ForeignKey("feed.id")) <NEW_LINE> published = Column(Integer) <NEW_LINE> updated = Column(Integer) <NEW_LINE> title = Column(String(1024)) <NEW_LINE> content = Col...
The basic model for all entries.
625990229b70327d1c57fc51
class MutationMeta(type): <NEW_LINE> <INDENT> def __new__(cls, name, bases, attrs): <NEW_LINE> <INDENT> if 'mutate' not in attrs: <NEW_LINE> <INDENT> raise AttributeError('mutation operator class must have mutate method') <NEW_LINE> <DEDENT> if 'pm' in attrs and (attrs['pm'] <= 0.0 or attrs['pm'] > 1.0): <NEW_LINE> <IN...
Metaclass for mutation operator class.
62599022925a0f43d25e8f16
class StringIDProvider(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.wordset = WordSet() <NEW_LINE> self.assoc = {} <NEW_LINE> <DEDENT> def _next(self, obj): <NEW_LINE> <INDENT> return self._escape(self.wordset.fresh(True, base = str(obj))) <NEW_LINE> <DEDENT> def _escape(self, string): <NEW...
simple class that provides unique identifiers for objects.
625990228c3a8732951f7428
class RoleConfig: <NEW_LINE> <INDENT> def __init__(self, name, namespace, api_groups, resources, verbs): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._namespace = namespace <NEW_LINE> self._api_groups = api_groups.split(',') <NEW_LINE> self._resources = resources.split(',') <NEW_LINE> self._verbs = verbs.split...
Configuration builder for Kubernetes RBAC roles
625990226fece00bbaccc88a