code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class MatanFormulaCaptchaTask(MatanCaptchaTask): <NEW_LINE> <INDENT> _formula = None <NEW_LINE> def get(self): <NEW_LINE> <INDENT> return str(self._formula)
Matan task with default representation as a formula
62599034d6c5a102081e3243
class SoyoungSpider: <NEW_LINE> <INDENT> def __init__(self, keyword): <NEW_LINE> <INDENT> self.keyword = keyword <NEW_LINE> self.hospital_url = r'http://www.soyoung.com/searchNew/hospital?keyword={}&page={}' <NEW_LINE> query = {'cityId': 1, 'page_size': 100, '_json': 1, 'sort': 3} <NEW_LINE> self.hospital_url = self.ho...
docstring for SoyoungSpider
625990341f5feb6acb163d0f
class RecursiveA: <NEW_LINE> <INDENT> def __init__(self, url): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> <DEDENT> @rpc() <NEW_LINE> def status(self) -> List[str]: <NEW_LINE> <INDENT> return ['running', 'pending'] <NEW_LINE> <DEDENT> @rpc() <NEW_LINE> def poll(self, name: str = 'running') -> int: <NEW_LINE> <INDENT>...
Call `RecursiveB` in order to return
6259903426238365f5fadc71
class StorageBucketAccessControlsDeleteRequest(_messages.Message): <NEW_LINE> <INDENT> bucket = _messages.StringField(1, required=True) <NEW_LINE> entity = _messages.StringField(2, required=True) <NEW_LINE> userProject = _messages.StringField(3)
A StorageBucketAccessControlsDeleteRequest object. Fields: bucket: Name of a bucket. entity: The entity holding the permission. Can be user-userId, user- emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. userProject: The project to be billed for this request. Required f...
625990348c3a8732951f7676
class VerticaLinkedService(LinkedService): <NEW_LINE> <INDENT> _validation = { 'type': {'required': True}, } <NEW_LINE> _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, 'type': {'key': 'type', 'type': 'str'}, 'connect_via': {'key': 'connectVia', 'type': 'IntegrationRuntimeReference'}, 'descr...
Vertica linked service. All required parameters must be populated in order to send to Azure. :param additional_properties: Unmatched properties from the message are deserialized to this collection. :type additional_properties: dict[str, object] :param type: Required. Type of linked service.Constant filled by server....
6259903415baa723494630b8
class Gamma(Prior): <NEW_LINE> <INDENT> domain = _POSITIVE <NEW_LINE> _instances = [] <NEW_LINE> def __new__(cls, a=1, b=.5): <NEW_LINE> <INDENT> if cls._instances: <NEW_LINE> <INDENT> cls._instances[:] = [instance for instance in cls._instances if instance()] <NEW_LINE> for instance in cls._instances: <NEW_LINE> <INDE...
Implementation of the Gamma probability function, coupled with random variables. :param a: shape parameter :param b: rate parameter (warning: it's the *inverse* of the scale) .. Note:: Bishop 2006 notation is used throughout the code
625990344e696a045264e6b1
class MemArchive(Archive): <NEW_LINE> <INDENT> def __init__(self, items, mode='r'): <NEW_LINE> <INDENT> self.dic = {} <NEW_LINE> for name, csvstr in items: <NEW_LINE> <INDENT> self.add(name, csvstr) <NEW_LINE> <DEDENT> self.opened = set() <NEW_LINE> <DEDENT> def add(self, name, csvstr): <NEW_LINE> <INDENT> self.dic[nam...
Provides an archive interface over FileObjects in memory
625990348c3a8732951f7677
class BaseXMLSchemaValidator: <NEW_LINE> <INDENT> def __init__(self, schema_loader=None, parser=None, translator=None): <NEW_LINE> <INDENT> self._schema_loader = schema_loader or XMLSchemaFileLoader() <NEW_LINE> self._parser = parser or etree.XMLParser() <NEW_LINE> self._translator = translator or Libxml2Translator() <...
Validate XML fragments against XML Schema (XSD).
625990348e05c05ec3f6f6ea
class CannotChangeSubscription(BaseSubscriptionErrors): <NEW_LINE> <INDENT> pass
The subscription change cannot be fulfilled. This is raised when the person is not a allowed to change their subscription address. For example, this is raised when the person is not a member of the team linked to this mailing list, when `person` is a team, or when `person` does not own the given email address.
6259903423e79379d538d629
class MainDriver: <NEW_LINE> <INDENT> def __init__(self, prmMngr): <NEW_LINE> <INDENT> self.prmMngr = prmMngr <NEW_LINE> <DEDENT> def executeRuns(self): <NEW_LINE> <INDENT> self.prmMngr.resetUsedParmsList() <NEW_LINE> logstream.mstOut.resetStreamContent(); <NEW_LINE> sectionNameList = self.prmMngr.getSectionNames() <NE...
Simple driver for executing a series of *Run* sections as specified by a :obj:`InputParmManager` object.
625990348a349b6b4368735e
class StreamCollectionEmbedded(object): <NEW_LINE> <INDENT> swagger_types = { 'streams': 'list[Stream]' } <NEW_LINE> attribute_map = { 'streams': 'streams' } <NEW_LINE> def __init__(self, streams=None): <NEW_LINE> <INDENT> self._streams = None <NEW_LINE> if streams is not None: <NEW_LINE> <INDENT> self.streams = stream...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
6259903407d97122c4217dc6
class AbstractChannel(object): <NEW_LINE> <INDENT> def __init__(self, connection, channel_id): <NEW_LINE> <INDENT> self.connection = connection <NEW_LINE> self.channel_id = channel_id <NEW_LINE> connection.channels[channel_id] = self <NEW_LINE> self.method_queue = [] <NEW_LINE> self.auto_encode_decode = False <NEW_LINE...
Superclass for both the Connection, which is treated as channel 0, and other user-created Channel objects. The subclasses must have a _METHOD_MAP class property, mapping between AMQP method signatures and Python methods.
6259903463f4b57ef0086603
class CommercialTests(support.tests.SupportTests): <NEW_LINE> <INDENT> def test_remove_gpl(self): <NEW_LINE> <INDENT> pyfile = 'python2/mysql/connector/connection.py' <NEW_LINE> tmpfile = tempfile.NamedTemporaryFile(mode='w+') <NEW_LINE> tmpfile.write(open(pyfile, 'r').read()) <NEW_LINE> commercial.remove_gpl(tmpfile.n...
Test functionality regarding commercial releases
625990345e10d32532ce4193
class FakeUser(models.User): <NEW_LINE> <INDENT> def __init__( self, name, id, have_access_to_free_instances=True, is_super_user=False, is_blocked=False, shape=None, default_coord=None, ): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.login = name <NEW_LINE> self.type = 'with_free_instances' <NEW_LINE> if not have_a...
We create a user independent from a database
625990348c3a8732951f7679
class LoginView(APIView): <NEW_LINE> <INDENT> authentication_classes = api_settings.DEFAULT_AUTHENTICATION_CLASSES <NEW_LINE> serializer_class = LogInSerializer <NEW_LINE> def post(self, request, format=None): <NEW_LINE> <INDENT> serializer = LogInSerializer( data=request.data, context={'request': request}) <NEW_LINE> ...
Login View
625990349b70327d1c57fea5
class BatchedDiffPoolLayer(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_feats, out_feats, assign_dim, batch_size, dropout=0.5, link_pred_loss=True, entropy_loss=True): <NEW_LINE> <INDENT> super(BatchedDiffPoolLayer, self).__init__() <NEW_LINE> self.assign_dim = assign_dim <NEW_LINE> self.dropout = dropout <NEW...
DIFFPOOL from paper `"Hierarchical Graph Representation Learning with Differentiable Pooling" <https://arxiv.org/pdf/1806.08804.pdf>`__. .. math:: X^{(l+1)} = S^{l)}^T Z^{(l)} A^{(l+1)} = S^{(l)}^T A^{(l)} S^{(l)} Z^{(l)} = GNN_{l, embed}(A^{(l)}, X^{(l)}) S^{(l)} = softmax(GNN_{l,pool}(A^{(l)}, X^{(l)...
6259903407d97122c4217dc8
class OrderItem(BaseContent): <NEW_LINE> <INDENT> implements(IOrderItem) <NEW_LINE> security = ClassSecurityInfo() <NEW_LINE> _at_rename_after_creation = True <NEW_LINE> schema = BaseSchema.copy() + schema.copy() <NEW_LINE> security.declarePublic('getProduct') <NEW_LINE> def getProduct(self): <NEW_LINE> <INDENT> try: <...
An order item holds price, tax and products informations from the moment the customer has buyed aka checked out its cart. This means it doesn't need any calculations any more.
62599034d4950a0f3b1116cf
class Function(object): <NEW_LINE> <INDENT> def __init__(self, func, *args, **kwargs): <NEW_LINE> <INDENT> self.func = func <NEW_LINE> self.args = args <NEW_LINE> self.kwargs = kwargs <NEW_LINE> self.result = None <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> self.result = self.func(*self.args, **self.kwargs...
Provides an interface to define and call a function. Usage: f = Function(self.do_this, path) f.run()
6259903491af0d3eaad3af50
class KnnModel(object): <NEW_LINE> <INDENT> def __init__(self, data, k=20, similarity="euclidean"): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.k = k <NEW_LINE> self.similarity = similarity <NEW_LINE> self.getsimilarityfunc() <NEW_LINE> <DEDENT> def getsimilarityfunc(self): <NEW_LINE> <INDENT> if not hasattr(s...
K近邻算法模型
6259903466673b3332c31514
class Config(File): <NEW_LINE> <INDENT> pass
.git/config
62599034711fe17d825e152c
class NumpyDataLoader: <NEW_LINE> <INDENT> def __init__(self, *inputs): <NEW_LINE> <INDENT> self.inputs = inputs <NEW_LINE> self.n_inputs = len(inputs) <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return self.inputs[0].shape[0] <NEW_LINE> <DEDENT> def __getitem__(self, item): <NEW_LINE> <INDENT> if self.n...
Convert numpy arrays into a dataloader. :param numpy.array *inputs: Numpy arrays.
62599034e76e3b2f99fd9b2d
class Base(object): <NEW_LINE> <INDENT> def __init__(self, state, stateCallback = None, name = "", ): <NEW_LINE> <INDENT> self._state = state <NEW_LINE> self._reason = "" <NEW_LINE> if stateCallback: <NEW_LINE> <INDENT> self._stateCallbackList = [stateCallback] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self._stateC...
Base class for BaseSocket and BaseServer Subclasses may wish to override class variables: - _AllStates: a set of states (strings) - _DoneStates: a set of states indicating the object is done (e.g. Closed or Failed) - _ReadyStates: a set of states indicating the object is ready for use (e.g. Connected)
6259903576d4e153a661db02
class HtmlPageView(DetailView): <NEW_LINE> <INDENT> model = HtmlPage <NEW_LINE> template_name = 'html_page.html' <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super(HtmlPageView, self).get_context_data(**kwargs) <NEW_LINE> context['title_tag'] = self.object.title_tag <NEW_LINE> context[...
View for render a HtmlPage object.
625990355e10d32532ce4194
class TestSourceTypes(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testSourceTypes(self): <NEW_LINE> <INDENT> model = smartrecruiters_python_client.models.source_types.SourceTypes()
SourceTypes unit test stubs
62599035c432627299fa4119
class ExpQWeightedPolicy(snt.Module): <NEW_LINE> <INDENT> def __init__(self, actor_network: snt.Module, critic_network: snt.Module, beta: float = 1.0, num_action_samples: int = 16): <NEW_LINE> <INDENT> super().__init__(name='ExpQWeightedPolicy') <NEW_LINE> self._actor_network = actor_network <NEW_LINE> self._critic_net...
Exponentially Q-weighted policy. Given a stochastic policy and a critic, returns a (stochastic) policy which samples multiple actions from the underlying policy, computes the Q-values for each action, and chooses the final action among the sampled ones with probability proportional to the exponentiated Q values, tempe...
625990353eb6a72ae038b789
class StringToTime(ElementFilter): <NEW_LINE> <INDENT> def __init__(self, obj): <NEW_LINE> <INDENT> super(StringToTime, self).__init__(obj) <NEW_LINE> <DEDENT> def process(self, obj, key, valDict, fmt="%Y%m%d%H%M%SZ"): <NEW_LINE> <INDENT> if type(valDict[key]['value'] is not None): <NEW_LINE> <INDENT> valDict[key]['val...
Converts a string object into a datetime.datetime object.. =========== =========================== Key Description =========== =========================== fmt The format string. E.g. '%Y%m%d%H%M%SZ' =========== =========================== e.g.: >>> <FilterEntry> >>> <Filter> >>> <Name>StringToTime<...
62599035d164cc6175822095
class ColorPickerWidget(JinjaWidget): <NEW_LINE> <INDENT> def __init__(self, show_field=True): <NEW_LINE> <INDENT> super().__init__('forms/color_picker_widget.html', single_line=True, show_field=show_field) <NEW_LINE> <DEDENT> def __call__(self, field, **kwargs): <NEW_LINE> <INDENT> return super().__call__(field, input...
Render a colorpicker input field.
62599035d99f1b3c44d067c5
class FlagTestCase(TestCaseBase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(FlagTestCase, self).setUp() <NEW_LINE> self.user = user(save=True) <NEW_LINE> self.question = question(creator=self.user, save=True) <NEW_LINE> self.client.login(username=self.user.username, password='testpass') <NEW_LINE> ...
Test the flag view.
625990351d351010ab8f4c3d
@base.Hidden <NEW_LINE> @base.ReleaseTracks(base.ReleaseTrack.ALPHA) <NEW_LINE> class Update(base.UpdateCommand): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> flags.FolderIdArg('you want to update.').AddToParser(parser) <NEW_LINE> parser.add_argument( '--display-name', required=Tru...
Update the display name of a folder. Updates the given folder with new folder name. This command can fail for the following reasons: * There is no folder with the given ID. * The active account does not have permission to update the given folder. * The new display name is taken by another folder und...
6259903530c21e258be99930
class OrgTeacherView(View): <NEW_LINE> <INDENT> def get(self, request, org_id): <NEW_LINE> <INDENT> course_org = CourseOrg.objects.get(id=int(org_id)) <NEW_LINE> has_fav = False <NEW_LINE> if request.user.is_authenticated(): <NEW_LINE> <INDENT> if UserFavorite.objects.filter(user=request.user, fav_id=course_org.id, fav...
机构讲师页
6259903591af0d3eaad3af52
class Timestamp(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=30, primary_key=True) <NEW_LINE> ts = models.DateTimeField(null=False) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return '%s: %s' % (self.name, self.ts)
Model to hold metadata about the collection of external data. This model is a hash table mapping a timestamp name to the timestamp value. All timestamps values are in UTC. The utility function rpki.gui.app.timestmap.update(name) should be used to set timestamps rather than updating this model directly.
625990358a43f66fc4bf32ae
class MediaStatus(EnumTable): <NEW_LINE> <INDENT> def delete(self): <NEW_LINE> <INDENT> self.item_set.all().update(mediaStatus=self.delete_replacement()) <NEW_LINE> return super(MediaStatus, self).delete()
If an item requires some media as well, what is the status of the provision of that media
62599035be383301e0254938
class Natural_Breaks(Map_Classifier): <NEW_LINE> <INDENT> def __init__(self, y, k=K, initial=100): <NEW_LINE> <INDENT> self.k = k <NEW_LINE> self.initial = initial <NEW_LINE> Map_Classifier.__init__(self, y) <NEW_LINE> self.name = 'Natural_Breaks' <NEW_LINE> <DEDENT> def _set_bins(self): <NEW_LINE> <INDENT> x = self.y....
Natural Breaks Map Classification Parameters ---------- y : array (n,1), values to classify k : int number of classes required initial : int number of initial solutions to generate, (default=100) Attributes ---------- yb : array (n,1), bin ids for observations...
625990356e29344779b01774
class Streamer(): <NEW_LINE> <INDENT> def __init__(self, environment='live', heartbeat=1.0): <NEW_LINE> <INDENT> if environment == 'live': <NEW_LINE> <INDENT> self.api_url = 'https://coincheck.com/api/ticker' <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> self.heartbeat = heartbeat <NEW_LINE> se...
Provides functionality for HTTPS Streaming
625990350a366e3fb87ddb0a
class Action: <NEW_LINE> <INDENT> def __init__(self, action_name , parameter_list = [], preconditions_dict = {},pos_effects_dict = {},neg_effects_dict = {}): <NEW_LINE> <INDENT> self.action_name = str.lower(action_name) <NEW_LINE> self.parameter_list = parameter_list <NEW_LINE> self.preconditions_set = set(convert_dict...
Contains information about a LIFTED action such as preconditions and effects. Has functions that when given a state dict, and parameter instantiation, will give the resultant state dict
62599035287bf620b6272d0d
class PreResBottleneck(nn.Layer): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, strides, conv1_stride, data_format="channels_last", **kwargs): <NEW_LINE> <INDENT> super(PreResBottleneck, self).__init__(**kwargs) <NEW_LINE> mid_channels = out_channels // 4 <NEW_LINE> self.conv1 = pre_conv1x1_block( i...
PreResNet bottleneck block for residual path in PreResNet unit. Parameters: ---------- in_channels : int Number of input channels. out_channels : int Number of output channels. strides : int or tuple/list of 2 int Strides of the convolution. conv1_stride : bool Whether to use stride in the first or the...
625990358c3a8732951f767d
class JWTSerializer(serializers.Serializer): <NEW_LINE> <INDENT> token = serializers.CharField() <NEW_LINE> user = UserSerializer()
Serializer for JWT authentication.
6259903550485f2cf55dc0a2
class DataSet(object): <NEW_LINE> <INDENT> def __init__(self, people=[], groups=[], clubs=[]): <NEW_LINE> <INDENT> self.people = people <NEW_LINE> self.groups = groups <NEW_LINE> self.clubs = clubs <NEW_LINE> <DEDENT> def findPersonById(self, ident): <NEW_LINE> <INDENT> for p in self.people: <NEW_LINE> <INDENT> if p.id...
Holds a list of clubs, a list of persons and a list of groups
625990356fece00bbacccace
class Breed(models.Model): <NEW_LINE> <INDENT> breed = models.CharField(max_length=75) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return f"{self.breed}"
Defines an animal's breed (e.g. domestic short hair). Returns __str__ breed
6259903515baa723494630bf
class FakeSession: <NEW_LINE> <INDENT> statuses = None <NEW_LINE> content = [b"first", b"second", None] <NEW_LINE> @asynccontextmanager <NEW_LINE> async def request(self, method, url, **kwargs): <NEW_LINE> <INDENT> async def _fake_text(): <NEW_LINE> <INDENT> return method <NEW_LINE> <DEDENT> async def _fake_json(): <NE...
Aiohttp session mock.
6259903521bff66bcd723d8b
class StaticTzInfo(BaseTzInfo): <NEW_LINE> <INDENT> def fromutc(self, dt): <NEW_LINE> <INDENT> return (dt + self._utcoffset).replace(tzinfo=self) <NEW_LINE> <DEDENT> def utcoffset(self, dt, is_dst=None): <NEW_LINE> <INDENT> return self._utcoffset <NEW_LINE> <DEDENT> def dst(self, dt, is_dst=None): <NEW_LINE> <INDENT> r...
A timezone that has a constant offset from UTC These timezones are rare, as most locations have changed their offset at some point in their history
62599035d4950a0f3b1116d1
class ContextGusNotFound(GLException): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> GLException.error_message = "Not found a Context with the specified GUS identifier" <NEW_LINE> GLException.error_code = 12 <NEW_LINE> GLException.http_status = 404
The context_gus used do not exist in the database.
6259903566673b3332c31518
class VelocitySetter(PositionalControlNeedy): <NEW_LINE> <INDENT> def on_first_run(self, *args, **kwargs): <NEW_LINE> <INDENT> super().on_first_run(*args, **kwargs) <NEW_LINE> self.relative_to_current_setter = RelativeToCurrentSetter() <NEW_LINE> <DEDENT> def on_run(self, velocity, desire_setter, current, default_error...
Generic setter that simulates velocity controller using a positional controller
62599035cad5886f8bdc590e
class FrameStack4(gym.Wrapper): <NEW_LINE> <INDENT> STACK_SIZE = 4 <NEW_LINE> def __init__(self, env: gym.Env): <NEW_LINE> <INDENT> super(FrameStack4, self).__init__(env) <NEW_LINE> self._env = env <NEW_LINE> self._frames = collections.deque(maxlen=FrameStack4.STACK_SIZE) <NEW_LINE> space = self._env.observation_space ...
Stack previous four frames (must be applied to Gym env, not our envs).
625990351f5feb6acb163d17
class List(BaseContainerColumn): <NEW_LINE> <INDENT> def __init__(self, value_type, default=list, **kwargs): <NEW_LINE> <INDENT> self.db_type = 'list<{}>'.format(value_type.db_type) <NEW_LINE> return super(List, self).__init__(value_type=value_type, default=default, **kwargs) <NEW_LINE> <DEDENT> def validate(self, valu...
Stores a list of ordered values http://www.datastax.com/documentation/cql/3.1/cql/cql_using/use_list_t.html
625990356e29344779b01776
class TestUserViews(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> create_app().testing = True <NEW_LINE> self.app = create_app(config_class=config["test"]).test_client() <NEW_LINE> self.data = { "username": "pato", "name": "PitPat", "email": "patf@mail.com", "role": "Admin", "phone": "073...
Test the views for all http methods availed on test views.
62599035b830903b9686ed0c
class ObjectNode(SyntaxNodeBase): <NEW_LINE> <INDENT> def __init__(self, name, item, **kwargs): <NEW_LINE> <INDENT> super(ObjectNode, self).__init__(name, **kwargs) <NEW_LINE> self.__description = item['description'] <NEW_LINE> self.__parameters = item['parameters'] <NEW_LINE> self.__groups = dict() <NEW_LINE> self._lo...
Base class for nodes associated with C++ objects (Action, MooseObjectAction, or MooseObject).
625990350a366e3fb87ddb0c
class evd_manager_2D(evd_manager_base): <NEW_LINE> <INDENT> def __init__(self, _file=None): <NEW_LINE> <INDENT> super(evd_manager_2D, self).__init__(_file) <NEW_LINE> self._drawableItems = datatypes.drawableItems() <NEW_LINE> <DEDENT> def redrawProduct(self, product, producer, view_manager): <NEW_LINE> <INDENT> if prod...
Class to handle the 2D specific aspects of viewer
6259903550485f2cf55dc0a3
class EqualityMixin(object): <NEW_LINE> <INDENT> def __eq__(self, other): <NEW_LINE> <INDENT> if other: <NEW_LINE> <INDENT> return vars(self) == vars(other) <NEW_LINE> <DEDENT> return False
Mixin for simple object equality testing -- ensures equality matches if all attributes match
62599035d164cc6175822099
class Sizeof(CExpression): <NEW_LINE> <INDENT> def __init__(self, base_type): <NEW_LINE> <INDENT> self.base_type = base_type <NEW_LINE> <DEDENT> def add_includes(self, program): <NEW_LINE> <INDENT> self.base_type.add_includes(program) <NEW_LINE> <DEDENT> def to_c_string(self, root=False): <NEW_LINE> <INDENT> return f"s...
The C sizeof operator
62599035c432627299fa411d
class JsonGetter(object): <NEW_LINE> <INDENT> json = {} <NEW_LINE> def get(self, name, default=None): <NEW_LINE> <INDENT> return self.json.get(name, default) <NEW_LINE> <DEDENT> def dump(self, out_json_file, indent=2, **kwargs): <NEW_LINE> <INDENT> if hasattr(out_json_file, 'read'): <NEW_LINE> <INDENT> json.dump(self.j...
override getters to also check its json property
625990355e10d32532ce4196
class PostDetailView(DetailView): <NEW_LINE> <INDENT> model = Post <NEW_LINE> template_name = "blog/detail.html" <NEW_LINE> context_object_name = "post" <NEW_LINE> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> response = super(PostDetailView, self).get(request, *args, **kwargs) <NEW_LINE> self.object.inc...
单条详情数据需要继承自DetailView类
62599035d99f1b3c44d067c9
class GoogleSheets: <NEW_LINE> <INDENT> def __init__(self, auth_mode, client_secrets, delegated_email_address=None, local_server_port=None): <NEW_LINE> <INDENT> oauth2_scopes = [ "https://www.googleapis.com/auth/spreadsheets" ] <NEW_LINE> credentials = get_credentials( auth_mode=auth_mode, client_secrets=client_secrets...
Class to create and manage a Google Sheets resources. Args: auth_mode (str): Mode of authentication & authorization. Valid values are only 'server_side' and 'service_account'. client_secrets (str): The path to the credentials json file or credentials information in json format (only for auth_mode=service_accou...
62599035a8ecb03325872345
class Filters(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def keep_missing(events): <NEW_LINE> <INDENT> return events <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def ignore_missing(events): <NEW_LINE> <INDENT> good = list() <NEW_LINE> for i in events: <NEW_LINE> <INDENT> if is_valid(i): <NEW_LINE> <INDENT> g...
Filter functions to pass to aggregation function factory methods. These all control how the underlying aggregators handle missing/invalid values. Can pass things through (the default to all agg functions), ignore any bad values, transform any bad values to zero, or make the entire aggregation fail if there are any ba...
62599035d18da76e235b79e2
class ChannelsError(MoopyError): <NEW_LINE> <INDENT> pass
The base channels error.
62599035be8e80087fbc01a6
class FeedbackNode(mdp.Node): <NEW_LINE> <INDENT> def __init__(self, n_timesteps=1, input_dim=None, dtype=None): <NEW_LINE> <INDENT> super(FeedbackNode, self).__init__(input_dim=input_dim, output_dim=input_dim, dtype=dtype) <NEW_LINE> self.n_timesteps = n_timesteps <NEW_LINE> self.last_value = None <NEW_LINE> self.curr...
FeedbackNode creates the ability to feed back a certain part of a flow as input to the flow. It both implements the Node API and the generator API and can thus be used as input for a flow. The duration that the feedback node feeds back data can be given. Prior to using the node as data generator, it should be execut...
6259903571ff763f4b5e88c1
class ScaleApply(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "object.dazstudio_apply_scale" <NEW_LINE> bl_label = "Apply Scale" <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <INDENT> return (context.active_object is not None) <NEW_LINE> <DEDENT> def execute(self, context): <NEW_LINE> <I...
Apply scale transforms of the selected objects
6259903596565a6dacd2d820
class MyData(Dataset): <NEW_LINE> <INDENT> def __init__(self, data, labels, return_perturb=False, sample_size=None, augmentation=None, training=False): <NEW_LINE> <INDENT> self.labels = labels <NEW_LINE> self.data = data <NEW_LINE> self.return_perturb = return_perturb <NEW_LINE> self.augmentation = augmentation <NEW_LI...
Characterizes a dataset for PyTorch
62599035287bf620b6272d11
class BaseTransport: <NEW_LINE> <INDENT> def __init__(self, extra=None): <NEW_LINE> <INDENT> if extra is None: <NEW_LINE> <INDENT> extra = {} <NEW_LINE> <DEDENT> self._extra = extra <NEW_LINE> <DEDENT> def get_extra_info(self, name, default=None): <NEW_LINE> <INDENT> return self._extra.get(name, default) <NEW_LINE> <DE...
Base class for transports.
6259903523e79379d538d633
class KaKe(object): <NEW_LINE> <INDENT> def __init__(self, a, b, c): <NEW_LINE> <INDENT> self.a, self.b, self.c = a, b, c <NEW_LINE> <DEDENT> def __call__(self, forbidden, Ha): <NEW_LINE> <INDENT> return (self.a / np.log10(forbidden / Ha) + self.b) + self.c <NEW_LINE> <DEDENT> def classify(self, forbidden, Ha, Oiii, Hb...
Kauffmann-Kewley-style separation line log(Oiii / Hb) = (a / log(forbidden / Ha) + b) + c
6259903530c21e258be99935
class Hand: <NEW_LINE> <INDENT> def __init__(self, name="Dealer"): <NEW_LINE> <INDENT> self.__name = name <NEW_LINE> self.__hand = [] <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> if len(self.__hand) == 0: <NEW_LINE> <INDENT> show = "empty" <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> show = "" <NEW_LINE>...
defines Hand class
6259903566673b3332c3151c
class Swarm(object): <NEW_LINE> <INDENT> def __init__(self, opts): <NEW_LINE> <INDENT> self.opts = opts <NEW_LINE> self.confs = set() <NEW_LINE> <DEDENT> def mkconf(self): <NEW_LINE> <INDENT> fd_, path = tempfile.mkstemp() <NEW_LINE> path = '{0}{1}'.format( path, hashlib.md5(str(random.randint(0, 999999))).hexdigest())...
Create a swarm of minions
625990351f5feb6acb163d1b
class Halt(Exception): <NEW_LINE> <INDENT> pass
big red stop button
6259903550485f2cf55dc0a7
class LambdaEventSourceMapping(AwsObject): <NEW_LINE> <INDENT> def __init__(self, dict_src, from_cache=False): <NEW_LINE> <INDENT> self.vpc_config = None <NEW_LINE> self._region = None <NEW_LINE> self.function_identification = None <NEW_LINE> super().__init__(dict_src) <NEW_LINE> if from_cache: <NEW_LINE> <INDENT> self...
lambda_event_source_mapping representation class
62599035ac7a0e7691f73612
class InstanceDouble(ObjectDouble): <NEW_LINE> <INDENT> def __init__(self, path, **kwargs): <NEW_LINE> <INDENT> module_path, class_name = get_path_components(path) <NEW_LINE> module = get_module(module_path, path) <NEW_LINE> self._doubles_target = _get_doubles_target(module, class_name, path) <NEW_LINE> for k, v in kwa...
A pure double representing an instance of the target class. Any kwargs supplied will be set as attributes on the instance that is created. :: user = InstanceDouble('myapp.User', name='Bob Barker') :param str path: The absolute module path to the class.
6259903596565a6dacd2d821
class VolumeClient(BaseClient): <NEW_LINE> <INDENT> service_type = "volume" <NEW_LINE> def __init__(self, http_client, extensions=None): <NEW_LINE> <INDENT> super(VolumeClient, self).__init__(http_client, extensions=extensions) <NEW_LINE> self.volumes = volumes.VolumeManager(self) <NEW_LINE> self.volume_snapshots = vol...
Client for the OpenStack Volume v2.0 API.
625990356fece00bbacccad4
class LetIn(AST): <NEW_LINE> <INDENT> def __init__(self, var, exp, body): <NEW_LINE> <INDENT> self.var = var <NEW_LINE> self.exp = exp <NEW_LINE> self.body = body
local variable declaration let var = exp in body
6259903515baa723494630c4
class AccountInfo(object): <NEW_LINE> <INDENT> def __init__(self, account_id, name, email, username): <NEW_LINE> <INDENT> self.account_id = account_id <NEW_LINE> self.name = name <NEW_LINE> self.email = email <NEW_LINE> self.username = username <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_dict(cls, dict_): <NEW...
http://192.168.10.48/Documentation/rest-api-accounts.html#account-info parsed output example: {u'_account_id': 1000261, u'email': u'qijie.gao@reallytek.com', u'name': u'Gao Qijie(\u9ad8\u542f\u6770)', u'username': u'qijie.gao'}
62599035ac7a0e7691f73614
class QHelpSearchEngine(__PyQt5_QtCore.QObject): <NEW_LINE> <INDENT> def cancelIndexing(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def cancelSearching(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def childEvent(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def connectNotify(self, ...
QHelpSearchEngine(QHelpEngineCore, parent: QObject = None)
625990355e10d32532ce4199
class Transport(ReadTransport, WriteTransport): <NEW_LINE> <INDENT> pass
ABC representing a bidirectional transport. There may be several implementations, but typically, the user does not implement new transports; rather, the platform provides some useful transports that are implemented using the platform's best practices. The user never instantiates a transport directly; they call a util...
62599035d99f1b3c44d067cf
class Operator(Generic[T], ABC): <NEW_LINE> <INDENT> symbol: str <NEW_LINE> operations: List[T] <NEW_LINE> @abstractmethod <NEW_LINE> def __init__(self, symbol: str, operations: List[T]) -> None: <NEW_LINE> <INDENT> self.symbol = symbol <NEW_LINE> self.operations = operations <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE...
Abstract operator, be it unary or binary.
6259903530c21e258be99939
class NoResource(ErrorPage): <NEW_LINE> <INDENT> def __init__(self, message="Sorry. No luck finding that resource."): <NEW_LINE> <INDENT> ErrorPage.__init__(self, http.NOT_FOUND, "No Such Resource", message)
L{NoResource} is a specialization of L{ErrorPage} which returns the HTTP response code I{NOT FOUND}.
625990358da39b475be0431c
class UpdateDashboardStatsHandler(request_handler.RequestHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> datastore_hooks.SetPrivilegedRequest() <NEW_LINE> _FetchDashboardStats()
A simple request handler to refresh the cached test suites info.
6259903566673b3332c31520
class Context(cl.Context): <NEW_LINE> <INDENT> def __init__(self, devices=None, properties=None, dev_type=None, cache_dir=None): <NEW_LINE> <INDENT> super(Context, self).__init__(devices, properties, dev_type, cache_dir) <NEW_LINE> self.device_list = [] <NEW_LINE> self.program = None <NEW_LINE> for d in devices: <NEW_L...
OpenCL Context Derived from pyopencl.Context Context can be created on one or more devices Properties: devices, num_devices, properties, reference_count
6259903573bcbd0ca4bcb3b5
class TestCmd(Command): <NEW_LINE> <INDENT> def do_discovery(self, *args): <NEW_LINE> <INDENT> hub_obj.discovery() <NEW_LINE> return 'Discovery Started' <NEW_LINE> <DEDENT> def do_broadcast(self, *args): <NEW_LINE> <INDENT> message = hub_obj.get_action('routing_table_request') <NEW_LINE> hub_obj.send_message(message, h...
This sets up the commands that commander will look for and what to do. The commands are - discovery - broadcast - nodes list * nodes <device_id> rename string - nodes <device_id> state [0/1] * nodes <device_id> mode [normal|range|locked|silent] * nodes <device_id> attributes ? * nodes <device_id> type * nodes...
62599035cad5886f8bdc5912
class RSScriptWrapper(object): <NEW_LINE> <INDENT> def __init__(self, script_name): <NEW_LINE> <INDENT> self.name = os.path.basename(script_name) <NEW_LINE> self.inRS = 'IronPython' in sys.version <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> if self.inRS: <NEW_LINE> <INDENT> self.start = datetime.dateti...
Wraps the execution of any script imported in RayStation. As convention, every script imported to RayStation should use this wrapper object around its code. This wrapper has two purposes: 1. It logs the start and end of every script launched in RayStation. 2. It prevents execution of the code if the script is launc...
6259903550485f2cf55dc0ab
class ErrorType(StructType): <NEW_LINE> <INDENT> def __init__(self, name, fields, binding_class=None): <NEW_LINE> <INDENT> StructType.__init__(self, name, fields, binding_class)
Representation of Error IDL type in Python Binding :type definition: :class:`vmware.vapi.data.ErrorDefinition` :ivar definition: type representation in the API runtime :type name: :class:`str` :ivar name: Name of the structure :type binding_class: :class:`vmware.vapi.bindings.error.VapiError` :ivar binding_class: Refe...
62599035287bf620b6272d16
class ValidationError(object): <NEW_LINE> <INDENT> def __init__(self, document_path, schema_path, code, rule, constraint, value, info): <NEW_LINE> <INDENT> self.document_path = document_path <NEW_LINE> self.schema_path = schema_path <NEW_LINE> self.code = code <NEW_LINE> self.rule = rule <NEW_LINE> self.constraint = co...
A simple class to store and query basic error information.
62599035c432627299fa4125
class Common(object): <NEW_LINE> <INDENT> _CODE_TO_LOCATION = 'https://api.weibo.com/2/common/code_to_location.json' <NEW_LINE> _GET_CITY = 'https://api.weibo.com/2/common/get_city.json' <NEW_LINE> _GET_PROVINCE = 'https://api.weibo.com/2/common/get_province.json' <NEW_LINE> _GET_COUNTRY = 'https://api.weibo.com/2/comm...
公共服务接口
6259903596565a6dacd2d823
class DownloadPageMethodInjectionTests( MethodInjectionTestsMixin, unittest.SynchronousTestCase, ): <NEW_LINE> <INDENT> def attemptRequestWithMaliciousMethod(self, method): <NEW_LINE> <INDENT> uri = b'http://twisted.invalid' <NEW_LINE> client.downloadPage(uri, file=io.BytesIO(), method=method)
Test L{client.getPage} against HTTP method injections.
625990356fece00bbacccad8
class xpsiError(Exception): <NEW_LINE> <INDENT> pass
Base exception for xpsi-specific runtime errors.
6259903530c21e258be9993b
class TestIncludeTokenize(TestIncludeBase): <NEW_LINE> <INDENT> def testToken(self): <NEW_LINE> <INDENT> for i in range(4): <NEW_LINE> <INDENT> ast = self.root(i).ast <NEW_LINE> self.assertIsInstance(ast(0), tokens.Paragraph) <NEW_LINE> self.assertIsInstance(ast(0)(0), tokens.Word) <NEW_LINE> self.assertIsInstance(ast(...
Test tokenization of Include
6259903523e79379d538d639
@override_settings(MODULESTORE=TEST_DATA_MONGO_MODULESTORE) <NEW_LINE> class MongoViewInStudioTest(ViewInStudioTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(MongoViewInStudioTest, self).setUp() <NEW_LINE> <DEDENT> def test_view_in_studio_link_studio_course(self): <NEW_LINE> <INDENT> self.setup_m...
Test the 'View in Studio' link visibility in a mongo backed course.
62599035a8ecb0332587234d
class InvalidName(SchemaParseException): <NEW_LINE> <INDENT> pass
User attempted to parse a schema with an invalid name.
6259903507d97122c4217dd6
class LifetimeWarning(Warning): <NEW_LINE> <INDENT> pass
Lifetime has been exceeded and is no longer supported.
62599035287bf620b6272d19
class DistributeVertices(bpy.types.Operator, VertexOperator): <NEW_LINE> <INDENT> bl_idname = "mesh.vertex_distribute" <NEW_LINE> bl_label = "Vertex Distribute" <NEW_LINE> bl_description = "Distribute selected vertices evenly along their loop" <NEW_LINE> def action(self, mesh): <NEW_LINE> <INDENT> distribute_vertices(m...
Distribute vertices evenly along interpolated shape of their polyline
625990351d351010ab8f4c4a
class FileWrapper(FileLikeBase): <NEW_LINE> <INDENT> _append_requires_overwrite = False <NEW_LINE> def __init__(self,wrapped_file,mode=None): <NEW_LINE> <INDENT> self.__closing = False <NEW_LINE> super(FileWrapper,self).__init__() <NEW_LINE> self.wrapped_file = wrapped_file <NEW_LINE> if mode is None: <NEW_LINE> <INDEN...
Base class for objects that wrap a file-like object. This class provides basic functionality for implementing file-like objects that wrap another file-like object to alter its functionality in some way. It takes care of house-keeping duties such as flushing and closing the wrapped file. Access to the wrapped file is...
6259903550485f2cf55dc0ae
class VirtualMachineScaleSetVMInstanceView(Model): <NEW_LINE> <INDENT> _attribute_map = { 'platform_update_domain': {'key': 'platformUpdateDomain', 'type': 'int'}, 'platform_fault_domain': {'key': 'platformFaultDomain', 'type': 'int'}, 'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'}, 'vm_agent': {'key': 'vmA...
The instance view of a virtual machine scale set VM. :param platform_update_domain: The Update Domain count. :type platform_update_domain: int :param platform_fault_domain: The Fault Domain count. :type platform_fault_domain: int :param rdp_thumb_print: The Remote desktop certificate thumbprint. :type rdp_thumb_print:...
62599035b57a9660fecd2bb0
class DlpProjectsJobTriggersListRequest(_messages.Message): <NEW_LINE> <INDENT> orderBy = _messages.StringField(1) <NEW_LINE> pageSize = _messages.IntegerField(2, variant=_messages.Variant.INT32) <NEW_LINE> pageToken = _messages.StringField(3) <NEW_LINE> parent = _messages.StringField(4, required=True)
A DlpProjectsJobTriggersListRequest object. Fields: orderBy: Optional comma separated list of triggeredJob fields to order by, followed by 'asc/desc' postfix, i.e. `"create_time asc,name desc,schedule_mode asc"`. This list is case-insensitive. Example: `"name asc,schedule_mode desc, status desc"` Suppo...
625990358c3a8732951f7689
class DCTCoefSWFilter(BaseStatSWFilter): <NEW_LINE> <INDENT> __logger = logging.getLogger(__name__) <NEW_LINE> def aggregate_windows(self, window_seq, coef=0, **kwargs): <NEW_LINE> <INDENT> for window in window_seq: <NEW_LINE> <INDENT> window_len = len(window) <NEW_LINE> spectrum = dct(window) <NEW_LINE> yield list(spe...
Implements 1D Fast Discrete COS transform. Only for experiment.
6259903521bff66bcd723d97
class Identifier(fhirelement.FHIRElement): <NEW_LINE> <INDENT> resource_name = "Identifier" <NEW_LINE> def __init__(self, jsondict=None): <NEW_LINE> <INDENT> self.assigner = None <NEW_LINE> self.period = None <NEW_LINE> self.system = None <NEW_LINE> self.type = None <NEW_LINE> self.use = None <NEW_LINE> self.value = No...
An identifier intended for computation. A technical identifier - identifies some entity uniquely and unambiguously.
62599035596a897236128dce
class TestUtil(InstanceRepresentation): <NEW_LINE> <INDENT> pass
Abstract class for all test util classes.
62599035796e427e5384f8ac
class Operations: <NEW_LINE> <INDENT> models = _models <NEW_LINE> def __init__(self, client, config, serializer, deserializer) -> None: <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._serialize = serializer <NEW_LINE> self._deserialize = deserializer <NEW_LINE> self._config = config <NEW_LINE> <DEDENT> @dist...
Operations async 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.iothub.v2021_07_01.models :param client: ...
62599035e76e3b2f99fd9b3d
class MappingPagedResponse(ModelNormal): <NEW_LINE> <INDENT> allowed_values = { } <NEW_LINE> validations = { } <NEW_LINE> additional_properties_type = None <NEW_LINE> _nullable = False <NEW_LINE> @cached_property <NEW_LINE> def openapi_types(): <NEW_LINE> <INDENT> lazy_import() <NEW_LINE> return { 'total': (int,), 'off...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Attributes: allowed_values (dict): The key is the tuple path to the attribute and the for var_name this is (var_name,). The value is a dict with a capitalized key describing the a...
6259903573bcbd0ca4bcb3b9
class GetSharedDataRequest(rpc.Request): <NEW_LINE> <INDENT> def __init__(self, msg): <NEW_LINE> <INDENT> self.msg = msg <NEW_LINE> <DEDENT> def __getstate__(self): <NEW_LINE> <INDENT> return self.msg <NEW_LINE> <DEDENT> def __setstate__(self, state): <NEW_LINE> <INDENT> self.msg = state <NEW_LINE> <DEDENT> def process...
Send a signal (just a short string message) to get the meta data of shared-tensor from server. Parameters ---------- msg : string string message
62599035d53ae8145f919595
class ReceivablesListAPIView(TotalAnnotateMixin, SmartTransactionListMixin, ReceivablesQuerysetMixin, ListAPIView): <NEW_LINE> <INDENT> serializer_class = TransactionSerializer <NEW_LINE> pagination_class = TotalPagination
Lists provider receivables Returns a list of {{PAGE_SIZE}} transactions marked as receivables associated to to ``{organization}`` while the profile acts as a provider. The queryset can be further refined to match a search filter (``q``) and/or a range of dates ([``start_at``, ``ends_at``]), and sorted on specific fie...
62599035be8e80087fbc01b0
class UnexpectedMovement(object): <NEW_LINE> <INDENT> __slots__ = ( '_timestamp', '_movementType', ) <NEW_LINE> @property <NEW_LINE> def timestamp(self): <NEW_LINE> <INDENT> return self._timestamp <NEW_LINE> <DEDENT> @timestamp.setter <NEW_LINE> def timestamp(self, value): <NEW_LINE> <INDENT> self._timestamp = msgbuffe...
Generated message-passing message.
62599035cad5886f8bdc5914
class CommentSerializer(NotEditableFieldsMixin, serializers.ModelSerializer): <NEW_LINE> <INDENT> content_type = serializers.PrimaryKeyRelatedField(queryset=ContentType.objects.filter(CONTENT_TYPE_CHOICES), required=True) <NEW_LINE> self_content_type = serializers.IntegerField(read_only=True) <NEW_LINE> user = UserSeri...
Serializer for present and save Comment model.
625990358c3a8732951f768a
class Log(BaseOps): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> temp_behav = [BehaviorFull(" 0 00:00.00 null either ")] <NEW_LINE> self.full = temp_behav <NEW_LINE> self.marks = [Mark(0, timedelta(0), "")] <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_log(cls, log: "Log") -> "Log": <NE...
Store a parsed version of a log file This version stores only the information contained in the log, not any information tied to a particular file (e.g. file name, reference to file, number of spaces separating columns). Attributes: full: A list of :py:class:`BehaviorFull` objects, each representing a line...
6259903571ff763f4b5e88cb
@python_2_unicode_compatible <NEW_LINE> class GlobalPagePermission(AbstractPagePermission): <NEW_LINE> <INDENT> can_recover_page = models.BooleanField(_("can recover pages"), default=True, help_text=_("can recover any deleted page")) <NEW_LINE> sites = models.ManyToManyField(Site, null=True, blank=True, help_text=_('If...
Permissions for all pages (global).
62599035ec188e330fdf99c7