code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class BaseProd(object): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> def __init__(self, pub_key: str = '', version_major: int = current_version_major, version_minor: int = current_version_minor, version_patch: int = current_version_patch, name: str = '', signature: str = ''): <NEW_LINE> <INDENT> if not pu...
The Base class for Producer and Product
62598f9f1f5feb6acb162a38
class TableError(Error): <NEW_LINE> <INDENT> pass
On operation on a table failed.
62598f9f24f1403a926857bd
class django_salted_md5_test(HandlerCase, _DjangoHelper): <NEW_LINE> <INDENT> handler = hash.django_salted_md5 <NEW_LINE> max_django_version = (1,9) <NEW_LINE> django_has_encoding_glitch = True <NEW_LINE> known_correct_hashes = [ ("password", 'md5$123abcdef$c8272612932975ee80e8a35995708e80'), ("test", 'md5$3OpqnFAHW...
test django_salted_md5
62598f9fe5267d203ee6b723
class UpdateGroupCall(TLObject): <NEW_LINE> <INDENT> __slots__: List[str] = ["chat_id", "call"] <NEW_LINE> ID = 0xa45eb99b <NEW_LINE> QUALNAME = "types.UpdateGroupCall" <NEW_LINE> def __init__(self, *, chat_id: int, call: "raw.base.GroupCall") -> None: <NEW_LINE> <INDENT> self.chat_id = chat_id <NEW_LINE> self.call = c...
This object is a constructor of the base type :obj:`~pyrogram.raw.base.Update`. Details: - Layer: ``122`` - ID: ``0xa45eb99b`` Parameters: chat_id: ``int`` ``32-bit`` call: :obj:`GroupCall <pyrogram.raw.base.GroupCall>`
62598f9f7047854f4633f1fa
class ResponseBuilder(object): <NEW_LINE> <INDENT> base_response = eval(RAW_RESPONSE) <NEW_LINE> @classmethod <NEW_LINE> def create_response(self, message=None, end_session=False, card_obj=None, reprompt_message=None, is_ssml=None): <NEW_LINE> <INDENT> response = self.base_response <NEW_LINE> if message: <NEW_LINE> <IN...
Simple class to help users to build responses
62598f9f6e29344779b00472
class Token: <NEW_LINE> <INDENT> def __init__(self, parent: 'GcdConnector', credentials: Credentials): <NEW_LINE> <INDENT> self.parent = parent <NEW_LINE> self.credentials = credentials <NEW_LINE> self._lock = asyncio.Lock() <NEW_LINE> <DEDENT> async def get(self): <NEW_LINE> <INDENT> async with self._lock: <NEW_LINE> ...
Wrapper around Credentials to replace aiogcd Token
62598f9f66656f66f7d5a207
class CreateLists: <NEW_LINE> <INDENT> def org_list(file): <NEW_LINE> <INDENT> olist = [] <NEW_LINE> olist.append('') <NEW_LINE> o = open(file) <NEW_LINE> x = csv.reader(o) <NEW_LINE> for org in x: <NEW_LINE> <INDENT> org = str(org) <NEW_LINE> org = org.replace("'", "") <NEW_LINE> org = org.replace("[", "") <NEW_LINE> ...
Use this class to create various lists need for the related scripts.
62598f9f2ae34c7f260aaef7
class CustomPropertiesType(GeneratedsSuper): <NEW_LINE> <INDENT> subclass = None <NEW_LINE> superclass = None <NEW_LINE> def __init__(self, Property=None): <NEW_LINE> <INDENT> if Property is None: <NEW_LINE> <INDENT> self.Property = [] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.Property = Property <NEW_LINE> <D...
The CustomPropertiesType enables the specification of a set of custom Object Properties that may not be defined in existing Properties schemas.
62598f9f8e71fb1e983bb8cd
class ProxyCaller: <NEW_LINE> <INDENT> def __init__(self, c_path=os.path.join(syspaths.CONFIG_DIR, "proxy"), mopts=None): <NEW_LINE> <INDENT> import salt.minion <NEW_LINE> self.opts = mopts or salt.config.proxy_config(c_path) <NEW_LINE> self.sminion = salt.minion.SProxyMinion(self.opts) <NEW_LINE> <DEDENT> def cmd(self...
``ProxyCaller`` is the same interface used by the :command:`salt-call` with the args ``--proxyid <proxyid>`` command-line tool on the Salt Proxy Minion. Importing and using ``ProxyCaller`` must be done on the same machine as a Salt Minion and it must be done using the same user that the Salt Minion is running as. Usa...
62598f9f01c39578d7f12b94
class ModelInheritanceTestCase(ModelsBaseTestCase): <NEW_LINE> <INDENT> def test_abstract(self): <NEW_LINE> <INDENT> from django.db import models <NEW_LINE> class CommonInfo(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=100) <NEW_LINE> age = models.PositiveIntegerField() <NEW_LINE> class Meta: <...
Tests for L{Django model inheritance<http://docs.djangoproject.com/en/dev/topics/db/models/#model-inheritance>}
62598f9feab8aa0e5d30bb9d
class MigrationItem(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'}, 'location': {'key': 'lo...
Migration item. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource Id. :vartype id: str :ivar name: Resource Name. :vartype name: str :ivar type: Resource Type. :vartype type: str :param location: Resource Location. :type location: str :param properties: The mig...
62598f9f99cbb53fe6830ce9
class OutgoingAckProtocolEntity(AckProtocolEntity): <NEW_LINE> <INDENT> def __init__(self, _id, _class, _type, to, participant = None): <NEW_LINE> <INDENT> super(OutgoingAckProtocolEntity, self).__init__(_id, _class) <NEW_LINE> self.setOutgoingData(_type, to, participant) <NEW_LINE> <DEDENT> def setOutgoingData(self, _...
<ack type="{{delivery | read}}" class="{{message | receipt | ?}}" id="{{MESSAGE_ID}} to={{TO_JID}}"> </ack> <ack to="{{GROUP_JID}}" participant="{{JID}}" id="{{MESSAGE_ID}}" class="receipt" type="{{read | }}"> </ack>
62598f9f07f4c71912baf262
class ISmartLinkControlPanelForm(IPloneControlPanelForm): <NEW_LINE> <INDENT> pass
Interface for configuration panel inside SmartLink
62598f9fadb09d7d5dc0a3a1
class MemeSimGUI(): <NEW_LINE> <INDENT> def __init__(self, master): <NEW_LINE> <INDENT> self._master = master <NEW_LINE> self._master.title("Welcome to the MemeSimGUI") <NEW_LINE> self._master.geometry('950x500') <NEW_LINE> self._frame = tk.Frame(self._master) <NEW_LINE> self._memelbl = tk.Label(self._frame, text="A me...
Class that handles all GUI related activity. On instantiation, provide a reference to the tkinter root.
62598f9f56b00c62f0fb26c7
class LoadButton(Button): <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> super(LoadButton, self).__init__(x, y, 'Load Game', ['Load a game which you saved previously']) <NEW_LINE> <DEDENT> def activate(self): <NEW_LINE> <INDENT> name = get_input("Enter the name of the saved game.") <NEW_LINE> if name...
A button for loading a saved game.
62598f9fbaa26c4b54d4f0c6
class InfoType2(InfoType) : <NEW_LINE> <INDENT> infoType = "2" <NEW_LINE> @property <NEW_LINE> def protocols_Id(self): <NEW_LINE> <INDENT> return ["2"] <NEW_LINE> <DEDENT> @property <NEW_LINE> def dmgDevice_Id(self): <NEW_LINE> <INDENT> if self.data['header']['protocol'] in self.protocols_Id: <NEW_LINE> <INDENT> return...
Info Type for VISONIC protocol
62598f9fa8370b77170f01fb
class Attention(Layer): <NEW_LINE> <INDENT> def __init__(self, step_dim, W_regularizer=None, b_regularizer=None, W_constraint=None, b_constraint=None, bias=True, **kwargs): <NEW_LINE> <INDENT> self.supports_masking = True <NEW_LINE> self.init = initializers.get('glorot_uniform') <NEW_LINE> self.W_regularizer = regulari...
定义注意力层
62598f9f4527f215b58e9cfb
class CourseStructureTestCase(TransformerRegistryTestMixin, ModuleStoreTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(CourseStructureTestCase, self).setUp() <NEW_LINE> self.password = 'test' <NEW_LINE> self.user = UserFactory.create(password=self.password) <NEW_LINE> self.staff = UserFactory....
Helper for test cases that need to build course structures.
62598f9f8e71fb1e983bb8ce
class ClusterStub(object): <NEW_LINE> <INDENT> def __init__(self, channel): <NEW_LINE> <INDENT> self.ClusterInfo = channel.unary_stream( '/Cluster/ClusterInfo', request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, response_deserializer=ClusterDescription.FromString, )
Cluster service gives some descriptions about the cluster where the service is running.
62598f9f8e7ae83300ee8eb7
class LogPage: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRUCT, 'batch', (LogBatch, LogBatch.thrift_spec), None, ), (2, TType.STRUCT, 'next_page_token', (LogPageToken, LogPageToken.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, batch=None, next_page_token=None,): <NEW_LINE> <INDENT> self.batch = batc...
Attributes: - batch - next_page_token
62598f9f596a897236127a93
class Meta: <NEW_LINE> <INDENT> verbose_name_plural='Tags'
> when user clicks on tags, call Meta then the class funcs
62598f9f91af0d3eaad39c23
class RichTextWidget(BaseWidget, patextfield_RichTextWidget): <NEW_LINE> <INDENT> _base = TextareaWidget <NEW_LINE> implementsOnly(IRichTextWidget) <NEW_LINE> pattern_options = BaseWidget.pattern_options.copy() <NEW_LINE> @property <NEW_LINE> def pattern(self): <NEW_LINE> <INDENT> registry = getUtility(IRegistry) <NEW_...
TinyMCE widget for z3c.form.
62598f9f1f037a2d8b9e3eff
class InProgressWithETA(InProgress): <NEW_LINE> <INDENT> def __init__(self, size: int, started: datetime, rate: SummaryStat, *args, **kwargs) -> None: <NEW_LINE> <INDENT> rate_mean, rate_stderr = rate <NEW_LINE> self._eta = started + timedelta(seconds=size / rate_mean), int(rate_stderr) <NEW_LINE> super().__init__(*arg...
Interrupt raised when data fetching is in progress, with ETA
62598f9f009cb60464d0133c
@six.add_metaclass(abc.ABCMeta) <NEW_LINE> class BGPVPNDriverDBMixin(BGPVPNDriverBase): <NEW_LINE> <INDENT> def __init__(self, service_plugin): <NEW_LINE> <INDENT> super(BGPVPNDriverDBMixin, self).__init__(service_plugin) <NEW_LINE> self.bgpvpn_db = bgpvpn_db.BGPVPNPluginDb() <NEW_LINE> <DEDENT> def create_bgpvpn(self,...
BGPVPNDriverDB Mixin to provision the database on behalf of the driver That driver interface persists BGPVPN data in its database and forward the result to postcommit methods
62598f9f3eb6a72ae038a459
class PPrint(BaseAdapter): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(PPrint, self).__init__(*args, **kwargs) <NEW_LINE> self.pp = pprint.PrettyPrinter(indent=4) <NEW_LINE> <DEDENT> def process(self, item): <NEW_LINE> <INDENT> self.pp.pprint(item)
Just prints payload to stdout.
62598f9f4428ac0f6e658343
class Beat(HubService): <NEW_LINE> <INDENT> def __init__(self, dmd, instance): <NEW_LINE> <INDENT> HubService.__init__(self, dmd, instance) <NEW_LINE> self.beat() <NEW_LINE> <DEDENT> def beat(self): <NEW_LINE> <INDENT> secs = time.time() <NEW_LINE> for listener in self.listeners: <NEW_LINE> <INDENT> d = listener.callRe...
Example service which sends a simple heartbeat to keep a client connection alive.
62598f9f1f5feb6acb162a3a
class CategoriesSelectMultiple(forms.CheckboxSelectMultiple): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(self.__class__, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def render(self, name, value, attrs=None): <NEW_LINE> <INDENT> value = value or [] <NEW_LINE> has_id = attrs and 'id' in ...
Widget that formats the Categories checkboxes.
62598f9f627d3e7fe0e06cc3
class Env(object): <NEW_LINE> <INDENT> action_space = None <NEW_LINE> observation_space = None <NEW_LINE> def step(self, action): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def reset(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def render(self, mode='human'): <NEW_LINE...
The main OpenAI Gym class. It encapsulates an environment with arbitrary behind-the-scenes dynamics. An environment can be partially or fully observed. The main API methods that users of this class need to know are: step reset render close seed And set the following attributes: action_space:...
62598f9fe5267d203ee6b726
class DteWork(Work, MergeDdb): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_scf_task(cls, scf_task, ddk_tolerance=None, manager=None): <NEW_LINE> <INDENT> if not isinstance(scf_task, ScfTask): <NEW_LINE> <INDENT> raise TypeError("task `%s` does not inherit from ScfTask" % scf_task) <NEW_LINE> <DEDENT> new = cls...
Work for the computation of the third derivative of the energy. This work consists of DDK tasks and electric field perturbation. It provides the callback method (on_all_ok) that calls mrgddb to merge the partial DDB files produced .. rubric:: Inheritance Diagram .. inheritance-diagram:: DteWork
62598f9f63b5f9789fe84f8d
class KNXBinarySensor(BinarySensorDevice): <NEW_LINE> <INDENT> def __init__(self, device): <NEW_LINE> <INDENT> self.device = device <NEW_LINE> self.automations = [] <NEW_LINE> <DEDENT> @callback <NEW_LINE> def async_register_callbacks(self): <NEW_LINE> <INDENT> async def after_update_callback(device): <NEW_LINE> <INDEN...
Representation of a KNX binary sensor.
62598f9f090684286d5935e6
class EmailCommseqStatResponse(object): <NEW_LINE> <INDENT> swagger_types = { 'error': 'Error', 'metadata': 'ResponseMetadata', 'stats': 'EmailCommseqStat', 'success': 'bool', 'warning': 'Warning' } <NEW_LINE> attribute_map = { 'error': 'error', 'metadata': 'metadata', 'stats': 'stats', 'success': 'success', 'warning':...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f9f60cbc95b06364165
class Dataset(object): <NEW_LINE> <INDENT> def __init__(self, dim, contents=None): <NEW_LINE> <INDENT> self._dim = dim <NEW_LINE> if contents == None: <NEW_LINE> <INDENT> self._contents = [] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> result = [] <NEW_LINE> for x in contents: <NEW_LINE> <INDENT> mycopy = [] <NEW_LINE...
A class representing a dataset for k-means clustering. The data is stored as a list of list of numbers (ints or floats). Each component list is a data point. INSTANCE ATTRIBUTES: _dimension: the point dimension for this dataset [int > 0. Value never changes after initialization] _contents: t...
62598f9f8c0ade5d55dc359b
class PkgRepoOptionsBundle(OptionsBundle): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(PkgRepoOptionsBundle, self).__init__() <NEW_LINE> self.opt_remove_missing.description += _('; defaults to false') <NEW_LINE> d = _('distribution releases (suites or codenames) to sync; defaults to stable') <NEW_...
Contains small modifications to the default option descriptions, and additional options.
62598f9fa79ad16197769e7d
class Float(Base): <NEW_LINE> <INDENT> fmt = '<f' <NEW_LINE> def __init__(self, value): <NEW_LINE> <INDENT> self.value = value
Convert raw bytes to an floating point number.
62598f9f4e4d56256637223c
class DetailView(generic.DetailView): <NEW_LINE> <INDENT> model = User <NEW_LINE> context_object_name = "user_object" <NEW_LINE> def get_object(self, queryset=None): <NEW_LINE> <INDENT> return get_object_or_404(User, username=self.kwargs["pk"])
User Detail View
62598f9f97e22403b383ad24
@tf_export('keras.layers.GaussianDropout') <NEW_LINE> class GaussianDropout(Layer): <NEW_LINE> <INDENT> def __init__(self, rate, **kwargs): <NEW_LINE> <INDENT> super(GaussianDropout, self).__init__(**kwargs) <NEW_LINE> self.supports_masking = True <NEW_LINE> self.rate = rate <NEW_LINE> self._can_use_graph_functions = T...
Apply multiplicative 1-centered Gaussian noise. As it is a regularization layer, it is only active at training time. Arguments: rate: float, drop probability (as with `Dropout`). The multiplicative noise will have standard deviation `sqrt(rate / (1 - rate))`. Input shape: Arbitrary. Use the k...
62598f9f2c8b7c6e89bd35df
class Customer(BaseModel): <NEW_LINE> <INDENT> customer_id = CharField(primary_key=True, max_length=30) <NEW_LINE> first_name = CharField(max_length=30) <NEW_LINE> last_name = CharField(max_length=40) <NEW_LINE> home_address = CharField(max_length=100) <NEW_LINE> phone_number = CharField(max_length=20) <NEW_LINE> email...
This creates a customer model
62598f9f3cc13d1c6d465584
class PluginsRegistry(collections.Mapping): <NEW_LINE> <INDENT> def __init__(self, plugins): <NEW_LINE> <INDENT> self._plugins = collections.OrderedDict(sorted(six.iteritems(plugins))) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def find_all(cls): <NEW_LINE> <INDENT> plugins = {} <NEW_LINE> entry_points = itertools.cha...
Plugins registry.
62598f9f925a0f43d25e7e55
class CephPrefix(CephArgtype): <NEW_LINE> <INDENT> def __init__(self, prefix=''): <NEW_LINE> <INDENT> self.prefix = prefix <NEW_LINE> <DEDENT> def valid(self, s, partial=False): <NEW_LINE> <INDENT> if partial: <NEW_LINE> <INDENT> if self.prefix.startswith(s): <NEW_LINE> <INDENT> self.val = s <NEW_LINE> return <NEW_LINE...
CephPrefix: magic type for "all the first n fixed strings"
62598f9f07f4c71912baf264
class Roles(IntEnum): <NEW_LINE> <INDENT> ADMIN = 10 <NEW_LINE> REGISTERED = 5 <NEW_LINE> UNREGISTERED = 1 <NEW_LINE> SIGNED_OUT = 0
Enumaration of possible roles (access levels)
62598f9f66673b3332c301e0
class DescribeAutoScalingInstancesResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.AutoScalingInstanceSet = None <NEW_LINE> self.TotalCount = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("AutoScalingI...
DescribeAutoScalingInstances返回参数结构体
62598f9fadb09d7d5dc0a3a3
class WMS13GetMapTIFFDatasetTestCase(wmsbase.WMS13GetMapTestCase): <NEW_LINE> <INDENT> layers = ("mosaic_MER_FRS_1PNPDE20060822_092058_000001972050_00308_23408_0077_RGB_reduced",) <NEW_LINE> bbox = (8.5, 32.2, 25.4, 46.3) <NEW_LINE> frmt = "image/tiff"
Test a GetMap request with a dataset series.
62598f9f76e4537e8c3ef3d0
class SiteWeight(models.Model): <NEW_LINE> <INDENT> site_type = models.ForeignKey(SiteType, related_name='weights') <NEW_LINE> sysclass = models.IntegerField(choices=[(1, "C1"), (2, "C2"), (3, "C3"), (4, "C4"), (5, "C5"), (6, "C6"), (7, "High Sec"), (8, "Low Sec"), (9, "Null Sec")]) <NEW_LINE> raw_points = models.Integ...
Represents the raw points available for a site type / system class combo
62598f9f5f7d997b871f92ec
class RegOrgUnitExternalID(models.Model): <NEW_LINE> <INDENT> org_unit = models.ForeignKey(RegOrgUnit) <NEW_LINE> identifier_type_id = models.CharField(max_length=4) <NEW_LINE> identifier_value = models.CharField(max_length=255, null=True) <NEW_LINE> is_void = models.BooleanField(default=False) <NEW_LINE> class Meta: <...
Model for Organisational units external IDs.
62598f9f0a50d4780f7051f3
class UserViewSet(ModelViewSet): <NEW_LINE> <INDENT> queryset = get_user_model().objects.filter(is_active=True) <NEW_LINE> serializer_class = UserSerializer <NEW_LINE> filter_backends = (SearchFilter,OrderingFilter,DjangoFilterBackend) <NEW_LINE> filter_fields=('gender','is_admin') <NEW_LINE> search_fields = ('username...
所有用户视图
62598f9fcc0a2c111447ae26
class ComputeVmPropertiesFragment(Model): <NEW_LINE> <INDENT> _attribute_map = { 'statuses': {'key': 'statuses', 'type': '[ComputeVmInstanceViewStatusFragment]'}, 'os_type': {'key': 'osType', 'type': 'str'}, 'vm_size': {'key': 'vmSize', 'type': 'str'}, 'network_interface_id': {'key': 'networkInterfaceId', 'type': 'str'...
Properties of a virtual machine returned by the Microsoft.Compute API. :param statuses: Gets the statuses of the virtual machine. :type statuses: list of :class:`ComputeVmInstanceViewStatusFragment <azure.mgmt.devtestlabs.models.ComputeVmInstanceViewStatusFragment>` :param os_type: Gets the OS type of the virtual mac...
62598f9fe1aae11d1e7ce731
class StackdriverDeleteNotificationChannelOperator(BaseOperator): <NEW_LINE> <INDENT> template_fields = ( 'name', 'impersonation_chain', ) <NEW_LINE> ui_color = "#e5ffcc" <NEW_LINE> @apply_defaults <NEW_LINE> def __init__( self, *, name: str, retry: Optional[str] = DEFAULT, timeout: Optional[float] = DEFAULT, metadata:...
Deletes a notification channel. .. seealso:: For more information on how to use this operator, take a look at the guide: :ref:`howto/operator:StackdriverDeleteNotificationChannelOperator` :param name: The alerting policy to delete. The format is: ``projects/[PROJECT_ID]/notificationChannels/[...
62598f9f462c4b4f79dbb825
class Resource(resource.Resource): <NEW_LINE> <INDENT> def __init__(self, *args, get=None, put=None, post=None, delete=None, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> if get is not None: <NEW_LINE> <INDENT> self.render_get = get <NEW_LINE> <DEDENT> if put is not None: <NEW_LINE> <INDEN...
Generic resource class
62598f9f097d151d1a2c0e42
class SectionListHeader(SectionList): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.header = {} <NEW_LINE> <DEDENT> def read_lines(self, lines): <NEW_LINE> <INDENT> sections = [] <NEW_LINE> for line_no, line in enumerate(lines): <NEW_LINE> <INDENT> if ( re.sub(r"^\s*|\s*...
class for sections with subsections (Primary and secondary contacts) and header values
62598f9fcc0a2c111447ae27
class TestInspector(GitSweepTestCase, InspectorTestCase): <NEW_LINE> <INDENT> def test_no_branches(self): <NEW_LINE> <INDENT> self.assertEqual([], self.inspector.merged_refs()) <NEW_LINE> <DEDENT> def test_filtered_refs(self): <NEW_LINE> <INDENT> for i in range(1, 4): <NEW_LINE> <INDENT> self.command('git checkout -b b...
Inspector can find merged branches and present them for cleaning.
62598f9f67a9b606de545de3
class HealthOfficerRegisterSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = HealthOfficer <NEW_LINE> fields = ( 'user', ) <NEW_LINE> def create(self,validated_data): <NEW_LINE> <INDENT> new_health_officer = HealthOfficer( user = validated_data['user'], ) <NEW_LINE> ne...
Description: SERializer to be used during the registering of a health officer.
62598f9ffff4ab517ebcd608
class PendingQuestTable(tables.Table): <NEW_LINE> <INDENT> owner = UserColumn(accessor='relation.owner') <NEW_LINE> title = tables.LinkColumn('quests:detail', args=[A('pk')]) <NEW_LINE> description = DescriptionColumn() <NEW_LINE> rating = RatingColumn() <NEW_LINE> accept = AcceptColumn(accessor="pk", orderable=False) ...
Table layout for showing quests pending for a user.
62598f9f3eb6a72ae038a45b
class LoginFormMiddleware(MiddlewareMixin): <NEW_LINE> <INDENT> def process_request(self, request): <NEW_LINE> <INDENT> if request.method == 'POST' and 'login-modal' in request.POST: <NEW_LINE> <INDENT> form = AuthenticationForm(data=request.POST, prefix="login") <NEW_LINE> if form.is_valid(): <NEW_LINE> <INDENT> from ...
Middleware to load login form on every page
62598f9f57b8e32f52508029
class ParameterStore: <NEW_LINE> <INDENT> def __init__(self, region, role): <NEW_LINE> <INDENT> self.client = role.client('ssm', region_name=region, config=SSM_CONFIG) <NEW_LINE> <DEDENT> def put_parameter(self, name, value): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> current_value = self.fetch_parameter(name) <NEW_L...
Class used for modeling Parameters
62598f9f24f1403a926857bf
class PlaceOrderView(LoginRequiredMixin,View): <NEW_LINE> <INDENT> def post(self,request): <NEW_LINE> <INDENT> sku_ids = request.POST.getlist('sku_ids') <NEW_LINE> count = request.POST.get('count') <NEW_LINE> if not sku_ids: <NEW_LINE> <INDENT> return redirect(reverse('cart:info')) <NEW_LINE> <DEDENT> skus = [] <NEW_LI...
的订单确认
62598f9f7b25080760ed72c2
class EmailView(UpdateAPIView): <NEW_LINE> <INDENT> permission_classes = [IsAuthenticated] <NEW_LINE> serializer_class = EmailSerializer <NEW_LINE> def get_object(self): <NEW_LINE> <INDENT> return self.request.user
PUT /users/emails 保存邮箱
62598f9fb7558d5895463448
class ImageCodeCheckSerializer(serializers.Serializer): <NEW_LINE> <INDENT> image_code_id=serializers.UUIDField() <NEW_LINE> text=serializers.CharField(max_length=4,min_length=4) <NEW_LINE> def validate(self, attrs): <NEW_LINE> <INDENT> image_code_id = attrs['image_code_id'] <NEW_LINE> text = attrs['text'] <NEW_LINE> r...
图片验证码序列化器
62598f9f99cbb53fe6830cec
class TokenCertificate(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'expiry': {'key': 'expiry', 'type': 'iso-8601'}, 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, 'encoded_pem_certificate': {'key': 'encodedPemCertificate', 'type': 'str'}, } <NEW_LINE>...
The properties of a certificate used for authenticating a token. :ivar name: Possible values include: "certificate1", "certificate2". :vartype name: str or ~azure.mgmt.containerregistry.v2021_06_01_preview.models.TokenCertificateName :ivar expiry: The expiry datetime of the certificate. :vartype expiry: ~datetime.dat...
62598f9f379a373c97d98e30
class PositionalEncoding(nn.Module): <NEW_LINE> <INDENT> def __init__(self, d_model, max_len=10000, dropout=0.1): <NEW_LINE> <INDENT> super(PositionalEncoding, self).__init__() <NEW_LINE> if d_model % 2 != 0: <NEW_LINE> <INDENT> d_model += 1 <NEW_LINE> <DEDENT> pe = torch.zeros([max_len, d_model]) <NEW_LINE> pos = torc...
Encode relative positional information into the input sequence tensor Attributes ---------- pe : 2d tensor (max_len, d_model - if even OR d_model + 1 - if odd)
62598f9fd268445f26639a90
class button_manuel(Frame): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> Frame.__init__(self, parent, width=768, height=576) <NEW_LINE> self.parent = parent <NEW_LINE> """def Button""" <NEW_LINE> self.Button_open = tkinter.Button(self, text ="OPEN", command = self.parent.open_file) <NEW_LINE> se...
Notre fenetre principale. Tous les widgets sont stockes comme attributs de cette fenetre.
62598f9f435de62698e9bc0d
class CaseEdit(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = _("Case edit") <NEW_LINE> verbose_name_plural = _("Case edits") <NEW_LINE> <DEDENT> case = models.ForeignKey(Case, related_name='edits') <NEW_LINE> TYPE_MIGRATION_URL = 'migration-url' <NEW_LINE> TYPE_MIGRATION_REVIEWED = '...
Bug tracking system case edit.
62598f9fdd821e528d6d8d4f
@pytest.mark.django_db <NEW_LINE> class TestArmy(): <NEW_LINE> <INDENT> def test_natural_key(self, army): <NEW_LINE> <INDENT> assert army.natural_key() == (army.name,)
Unit tests for the ``Army`` model.
62598f9f3cc13d1c6d465586
class V1TypedLocalObjectReference(object): <NEW_LINE> <INDENT> openapi_types = { 'api_group': 'str', 'kind': 'str', 'name': 'str' } <NEW_LINE> attribute_map = { 'api_group': 'apiGroup', 'kind': 'kind', 'name': 'name' } <NEW_LINE> def __init__(self, api_group=None, kind=None, name=None, local_vars_configuration=None): <...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598f9f9b70327d1c57ebb9
class PerspectiveAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = ['name']
Perspective backend definition
62598f9f442bda511e95c276
class PacketFilterRelation(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.PacketFilterConfig = None <NEW_LINE> self.InstanceDetailList = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("PacketFilterConfig") is not None: <NEW_LINE> <INDENT> sel...
特征过滤相关信息
62598f9f01c39578d7f12b98
class UserProfile(BaseHandler): <NEW_LINE> <INDENT> @asynchronous <NEW_LINE> @coroutine <NEW_LINE> def post(self, *_args, **_kwargs): <NEW_LINE> <INDENT> _params = self.check_auth(2) <NEW_LINE> if not _params: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> args = self.parse_json_arguments(name=ENFORCED) <NEW_LINE> exis...
Handler account info stuff.
62598f9f32920d7e50bc5e70
class ArgScheme(object): <NEW_LINE> <INDENT> def type(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def serialize_header(self, obj): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def deserialize_header(self, obj): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LI...
ArgScheme defines interface on how to serialize/deserialize header and body. Customized ArgScheme subclass must implement all methods:: def type() def serialize_header(obj) def deserialize_header(obj) def serialize_body(obj) def deserialize_body(obj)
62598f9f8e71fb1e983bb8d1
class ProjectDefinitionTest(test_lib.BaseTestCase): <NEW_LINE> <INDENT> def testIsPython2Only(self): <NEW_LINE> <INDENT> project_definition = projects.ProjectDefinition('test') <NEW_LINE> result = project_definition.IsPython2Only() <NEW_LINE> self.assertFalse(result)
Tests for the project definition.
62598f9f4a966d76dd5eecfc
class CustomEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, complex): <NEW_LINE> <INDENT> return OrderedDict([ ("__class__", "complex"), ("real", obj.real), ("imag", obj.imag), ]) <NEW_LINE> <DEDENT> if isinstance(obj, Fraction): <NEW_LINE> <INDENT> return O...
This custom JSON encoder can handle complex and Fraction and BoundaryCondition types.
62598f9f1b99ca400228f43b
class DotTicker: <NEW_LINE> <INDENT> def __init__(self, pattern='.', max_length=3): <NEW_LINE> <INDENT> self.length = 0 <NEW_LINE> self.pattern = pattern <NEW_LINE> self.max_length = max_length <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> result = self.pattern * self.length <NEW_LINE> self.tick() <NEW_LIN...
Simple throbber-like object for showing unknown amounts of progress
62598f9f56b00c62f0fb26cb
class AccountPaymentSepaEsTestCase(ModuleTestCase): <NEW_LINE> <INDENT> module = 'account_payment_sepa_es' <NEW_LINE> @with_transaction() <NEW_LINE> def test_sepa_identifier(self): <NEW_LINE> <INDENT> pool = Pool() <NEW_LINE> Party = pool.get('party.party') <NEW_LINE> Identifier = pool.get('party.identifier') <NEW_LINE...
Test Account Payment Sepa Es module
62598f9f76e4537e8c3ef3d2
class Trace(object): <NEW_LINE> <INDENT> def __init__(self, points, code, pair, net): <NEW_LINE> <INDENT> self.points = points <NEW_LINE> self.code = code <NEW_LINE> self.pseudoPair = None <NEW_LINE> self.net = net
Trace objects repesent the generated connections between routed pins. It is classified as one of two types: 1.principal trace, which connects either a net of size 2 or could be the main connection made to route a net of 3+. 2. auxiliary trace, which connects a pin to a principal trace in a net of 3+. p...
62598f9f21a7993f00c65d9e
class Patologia(models.Model): <NEW_LINE> <INDENT> contenedora = models.ForeignKey("rubricas.Patologia", null=True, on_delete=models.SET_NULL) <NEW_LINE> codigo = models.CharField(max_length=20, unique=True, blank=False) <NEW_LINE> nombre = models.CharField(max_length=150, unique=True, blank=False) <NEW_LINE> descripci...
Esta clase sirve para representar una patología que se estudie en uno o muchos cursos
62598f9fbaa26c4b54d4f0ca
class Bfa(): <NEW_LINE> <INDENT> def __init__(self, conjunto="abc"): <NEW_LINE> <INDENT> self.__conjunto = conjunto <NEW_LINE> <DEDENT> def subConjuntos(self, s): <NEW_LINE> <INDENT> self.subConjuntosAux("", s) <NEW_LINE> <DEDENT> def subConjuntosAux(self, respuesta, pregunta): <NEW_LINE> <INDENT> if len(pregunta) == 0...
Implementacion de fuerza bruta (Brutal force algoritmo)
62598f9f44b2445a339b687b
class TableCell(Element): <NEW_LINE> <INDENT> __slots__ = ['_content', 'alignment', 'rowspan', 'colspan', 'identifier', 'classes', 'attributes'] <NEW_LINE> _children = ['content'] <NEW_LINE> def __init__(self, *args, alignment='AlignDefault', rowspan=1, colspan=1, identifier='', classes=[], attributes={}): <NEW_LINE> <...
Table Cell :param args: elements :type args: :class:`Block` :param alignment: row alignment (either 'AlignLeft', 'AlignRight', 'AlignCenter' or 'AlignDefault'). :type alignment: :class:`str` :param rowspan: number of rows occupied by a cell (height of a cell) :type rowspan: :class:`int` :param colspan: number of c...
62598f9ffbf16365ca793ed5
class Tool(benchexec.tools.template.BaseTool2): <NEW_LINE> <INDENT> REQUIRED_PATHS = ["bin", "lib"] <NEW_LINE> def executable(self, tool_locator): <NEW_LINE> <INDENT> return tool_locator.find_executable("brick", subdir="bin") <NEW_LINE> <DEDENT> def name(self): <NEW_LINE> <INDENT> return "BRICK" <NEW_LINE> <DEDENT> def...
Tool info for BRICK https://github.com/brick-tool-dev/brick-tool
62598f9f91af0d3eaad39c27
class KeyValueType (pyxb.binding.basis.complexTypeDefinition): <NEW_LINE> <INDENT> _TypeDefinition = None <NEW_LINE> _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_MIXED <NEW_LINE> _Abstract = False <NEW_LINE> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'KeyValueType') <NEW_LINE> _XSDLocation...
Complex type {http://www.w3.org/2000/09/xmldsig#}KeyValueType with content type MIXED
62598f9f596a897236127a97
class FieldDescriptorPacket(MysqlPacket): <NEW_LINE> <INDENT> def __init__(self, *args): <NEW_LINE> <INDENT> MysqlPacket.__init__(self, *args) <NEW_LINE> self.__parse_field_descriptor() <NEW_LINE> <DEDENT> def __parse_field_descriptor(self): <NEW_LINE> <INDENT> self.catalog = self.read_length_coded_string() <NEW_LINE> ...
A MysqlPacket that represents a specific column's metadata in the result. Parsing is automatically done and the results are exported via public attributes on the class such as: db, table_name, name, length, type_code.
62598f9f097d151d1a2c0e44
class Event(object): <NEW_LINE> <INDENT> def __init__(self, start=None, end=None, name=None, scanpath=None): <NEW_LINE> <INDENT> self.start = start <NEW_LINE> self.end = end <NEW_LINE> self.name = name <NEW_LINE> self.scanpath = scanpath <NEW_LINE> <DEDENT> def valid(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> ...
The generic stimulus event, providing start time, end time, and name. Can also contain viewing data (Is this a good idea?)
62598f9f1f037a2d8b9e3f03
class Socket: <NEW_LINE> <INDENT> def __init__(self, device: Device, index: int) -> None: <NEW_LINE> <INDENT> self.device = device <NEW_LINE> self.index = index <NEW_LINE> <DEDENT> @property <NEW_LINE> def state(self) -> bool: <NEW_LINE> <INDENT> return self.raw.state == 1 <NEW_LINE> <DEDENT> @property <NEW_LINE> def r...
Represent a socket.
62598f9fd53ae8145f9182aa
class Lockin(Instrument): <NEW_LINE> <INDENT> def __init__(self, resource=None, sim_mode=False, backend="@py", query='GPIB?*::INSTR', name=None, path='./'): <NEW_LINE> <INDENT> Instrument.__init__(self, resource, sim_mode, backend, query, name, path) <NEW_LINE> if not self._name == 'Stanford_Research_Systems-SR830': <N...
Class for PyVISA control of Lock-in Amplifier SR830.
62598f9f1f5feb6acb162a3e
class cp(Action): <NEW_LINE> <INDENT> expected_param = {"src": [str, list], "dst_dir": str} <NEW_LINE> optional_param = {"new_file_name": str} <NEW_LINE> expected_result = {"job_param": {"result_files": list}} <NEW_LINE> def cp(self, file_path, dst_dir, new_file_name=None): <NEW_LINE> <INDENT> if new_file_name: <NEW_LI...
This is similar to the Unix command cp -p. src - can be file path or list of file paths {"src": "xxx.xxx", "dst_dir": "xxx.xxx"}
62598f9fd486a94d0ba2bdf1
class FancyStrMixin: <NEW_LINE> <INDENT> showAttributes = () <NEW_LINE> def __str__(self) -> str: <NEW_LINE> <INDENT> r = ['<', getattr(self, 'fancybasename', self.__class__.__name__)] <NEW_LINE> for attr in self.showAttributes: <NEW_LINE> <INDENT> if isinstance(attr, str): <NEW_LINE> <INDENT> r.append(' %s=%r' % (attr...
Mixin providing a flexible implementation of C{__str__}. C{__str__} output will begin with the name of the class, or the contents of the attribute C{fancybasename} if it is set. The body of C{__str__} can be controlled by overriding C{showAttributes} in a subclass. Set C{showAttributes} to a sequence of strings nami...
62598f9fbd1bec0571e14fd1
class QtValueMap: <NEW_LINE> <INDENT> def __init__(self, mapping): <NEW_LINE> <INDENT> self.mapping = mapping <NEW_LINE> <DEDENT> def __contains__(self, qwidget): <NEW_LINE> <INDENT> return qwidget.__class__ in self.mapping <NEW_LINE> <DEDENT> def __getitem__(self, qwidget): <NEW_LINE> <INDENT> return getattr(qwidget, ...
Maps a Qt Widget class to its corresponding attribute
62598f9fa8ecb03325871029
class ShowIpBgpRouteDistributer(MetaParser): <NEW_LINE> <INDENT> cli_command = ['show ip bgp {route}', 'show ip bgp {address_family}'] <NEW_LINE> def cli(self, route=None, address_family=None, output=None): <NEW_LINE> <INDENT> if route: <NEW_LINE> <INDENT> cmd = self.cli_command[0].format(route=route) <NEW_LINE> <DEDEN...
Parser for: * 'show ip bgp {route}' * 'show ip bgp {address_family}'
62598f9fe5267d203ee6b729
class ModelReferenced1(Document): <NEW_LINE> <INDENT> ref_param1 = StringField(required=True) <NEW_LINE> ref_param2 = StringField(default="Referenced second param")
Class to be referenced
62598f9f63b5f9789fe84f91
class ScaleFileSerializerV6(ScaleFileBaseSerializerV6): <NEW_LINE> <INDENT> from batch.serializers import BatchBaseSerializerV6 <NEW_LINE> from job.job_type_serializers import JobTypeBaseSerializerV6 <NEW_LINE> from recipe.serializers import RecipeTypeBaseSerializerV6 <NEW_LINE> workspace = WorkspaceBaseSerializer() <N...
Converts Scale file model fields to REST output
62598f9f656771135c48949f
class Schedule(BaseAPI): <NEW_LINE> <INDENT> def __init__(self, api_key: Optional[str] = None, timeout: Optional[int] = None): <NEW_LINE> <INDENT> super().__init__(api_key, timeout) <NEW_LINE> <DEDENT> def schedule_today(self, markets: Optional[Union[int, List[int]]] = None, bookmakers: Optional[Union[int, List[int]]] ...
Schedule (today) Class
62598f9f851cf427c66b80e4
class Rollback(object): <NEW_LINE> <INDENT> __slots__ = '_rollbacks' <NEW_LINE> def __init__(self, rollback=None): <NEW_LINE> <INDENT> if rollback is None: <NEW_LINE> <INDENT> self._rollbacks = [] <NEW_LINE> <DEDENT> elif isinstance(rollback, (list, tuple)): <NEW_LINE> <INDENT> self._rollbacks = rollback <NEW_LINE> <DE...
When called, rollbacks all the patches and changes the :func:`weave` has done.
62598f9f236d856c2adc9348
class L3_interfacesArgs(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> argument_spec = { 'config': { 'elements': 'dict', 'options': { 'ipv4': { 'mutually_exclusive': [['addresses', 'anycast_addresses']], 'options': { 'addresses': { 'elements': 'dict', 'options': ...
The arg spec for the sonic_l3_interfaces module
62598f9f6e29344779b00478
class ApacheLogParserError(Exception): <NEW_LINE> <INDENT> pass
Appache log parsing error
62598f9f97e22403b383ad28
class TestUserMetadataSplitter(object): <NEW_LINE> <INDENT> pass
>>> splitRun = test_splitter('UserMetadataSplitter', 'dataK.dbs', create_config(config_dict={'dataset': {'split metadata': 'NOTHING'}})) file1: A, file2: B, file3: C, filex: D AAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDD => 40 ---------------------------------------- => 0,40 >>> splitRun = test_splitter('UserMetadataSpl...
62598f9f01c39578d7f12b9a
class HathiChecksumReport(AbsChecksumBuilder): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def _format_entry(filename: str, hash_value: str) -> str: <NEW_LINE> <INDENT> return "{} *{}".format(hash_value, filename) <NEW_LINE> <DEDENT> def build(self) -> str: <NEW_LINE> <INDENT> lines = [] <NEW_LINE> for entry in sorted...
Generate a new Checksum report for Hathi.
62598f9f85dfad0860cbf983
class TreebookHandler(BookHandler): <NEW_LINE> <INDENT> def __init__(self, pObject): <NEW_LINE> <INDENT> BookHandler.__init__(self, pObject) <NEW_LINE> <DEDENT> def Save(self): <NEW_LINE> <INDENT> book, obj = self._window, self._pObject <NEW_LINE> expanded = "" <NEW_LINE> for page in range(book.GetPageCount()): <NEW_LI...
Supports saving/restoring open tree branches. This class handles the following wxPython widgets: - :class:`Treebook` (except for page selection, see :class:`BookHandler` for this).
62598f9f4a966d76dd5eecfe
class CNNTargetNetwork(CNN): <NEW_LINE> <INDENT> def __init__(self, state_shape, num_actions, hidden=20, lr=1e-4, tau=0.01): <NEW_LINE> <INDENT> super(CNNTargetNetwork, self).__init__(state_shape, num_actions, hidden, lr) <NEW_LINE> self.tau = tau <NEW_LINE> self._associate = self._register_associate() <NEW_LINE> <DED...
Slowly updated target network. Tau indicates the speed of adjustment. If 1, it is always set to the values of its associate.
62598f9f07f4c71912baf268
class Universe(object): <NEW_LINE> <INDENT> LTP = Ola_pb2.LTP <NEW_LINE> HTP = Ola_pb2.HTP <NEW_LINE> def __init__(self, universe_id, name, merge_mode): <NEW_LINE> <INDENT> self._id = universe_id <NEW_LINE> self._name = name <NEW_LINE> self._merge_mode = merge_mode <NEW_LINE> <DEDENT> @property <NEW_LINE> def id(self):...
Represents a universe. Attributes: id: the integer universe id name: the name of this universe merge_mode: the merge mode this universe is using
62598f9f66673b3332c301e4
class TestBase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> app = create_app("test") <NEW_LINE> self.app = app <NEW_LINE> self.db = db <NEW_LINE> with self.app.app_context(): <NEW_LINE> <INDENT> db.create_all() <NEW_LINE> <DEDENT> self.client = self.app.test_client(use_cookies=False) <NE...
Base class for testing the fulcrum API
62598f9f91f36d47f2230daf
class ChanceScheduler(driver.Scheduler): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(ChanceScheduler, self).__init__(*args, **kwargs) <NEW_LINE> self.compute_rpcapi = compute_rpcapi.ComputeAPI() <NEW_LINE> <DEDENT> def _filter_hosts(self, request_spec, hosts, filter_properties): <...
Implements Scheduler as a random node selector.
62598f9f0c0af96317c5619e
class InvalidMarket(Exception): <NEW_LINE> <INDENT> pass
Markets can only have one reference product
62598f9f8e7ae83300ee8ebd
class MRI_ESM(NetCDF_Gridded): <NEW_LINE> <INDENT> priority = 100 <NEW_LINE> def _add_available_aux_coords(self, cube, filenames): <NEW_LINE> <INDENT> from iris.aux_factory import HybridPressureFactory <NEW_LINE> from iris.coords import AuxCoord <NEW_LINE> from cis.data_io.netcdf import read <NEW_LINE> ps_filenames = [...
Plugin for reading ECHAM-HAM NetCDF output files. **Air pressure is converted to hPa**
62598f9f0a50d4780f7051f7