code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class GM11(BaseModel): <NEW_LINE> <INDENT> def __init__(self, phio=0.5): <NEW_LINE> <INDENT> self.phio = phio <NEW_LINE> <DEDENT> def fit(self, sequence): <NEW_LINE> <INDENT> self.sequence = sequence <NEW_LINE> X1 = np.cumsum(self.sequence).transpose() <NEW_LINE> X1_temp = (X1[:-1] + X1[1:]) / 2 <NEW_LINE> B = np.colum... | GM11 for grey model | 62598f9a85dfad0860cbf927 |
class LogFormatter(Enum): <NEW_LINE> <INDENT> JSON = "JSON" <NEW_LINE> COLOR = "COLOR" | Define allowed destinations for logs. | 62598f9a10dbd63aa1c7091c |
class DoesNotExist(Exception): <NEW_LINE> <INDENT> pass | This Exception can be raised by Managers or Models if they are asked to perform operations on
records that do not exist. | 62598f9ad99f1b3c44d05417 |
class MicroDocumentType(Enum): <NEW_LINE> <INDENT> DIRECTORY = 1 <NEW_LINE> DOC = 3 <NEW_LINE> EXCEL = 4 <NEW_LINE> COLLECT = 5 | 微文档类型 | 62598f9a6e29344779b003c2 |
class GetDirectionalViewMapDensityF1D: <NEW_LINE> <INDENT> def __init__(self, orientation, level, integration_type=IntegrationType.MEAN, sampling=2.0): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __call__(self, inter): <NEW_LINE> <INDENT> pass | Class hierarchy: freestyle.types.UnaryFunction1D > freestyle.types.UnaryFunction1DDouble > GetDirectionalViewMapDensityF1D | 62598f9a435de62698e9bb5b |
class HiveGenerator: <NEW_LINE> <INDENT> _required_framework_version = (2, 0, 0) <NEW_LINE> def __init__(self, cmhive, forward = True): <NEW_LINE> <INDENT> self._cmhive = cmhive <NEW_LINE> self._forward = forward <NEW_LINE> self._invalid = None <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> for hive in sel... | Walks the registry HiveList linked list in a given direction and stores an invalid offset
if it's unable to fully walk the list | 62598f9a3eb6a72ae038a3a6 |
class Example(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def fromJSON(cls, data, fields): <NEW_LINE> <INDENT> return cls.fromdict(json.loads(data), fields) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def fromdict(cls, data, fields): <NEW_LINE> <INDENT> ex = cls() <NEW_LINE> for key, vals in fields.items(): <N... | Defines a single training or test example.
Stores each column of the example as an attribute. | 62598f9abe8e80087fbbedc6 |
class InputExample(object): <NEW_LINE> <INDENT> def __init__(self, guid, text, label=None, gazetteer=None): <NEW_LINE> <INDENT> self.guid = guid <NEW_LINE> self.text = text <NEW_LINE> self.label = label <NEW_LINE> self.gazetteer = gazetteer | A single training/test example for simple sequence classification. | 62598f9ae5267d203ee6b676 |
class MemoryLocation(Location): <NEW_LINE> <INDENT> addr : Expression | A memory location as `addr | 62598f9a851cf427c66b802e |
class HddInfo(BaseInfo): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.IGNORED_DEVICE_PATHS = {'/dm', '/loop', '/md'} <NEW_LINE> if self.OS == 'linux': <NEW_LINE> <INDENT> import pyudev <NEW_LINE> self.context = pyudev.Context() <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDE... | Provide any available info on HDDs on the users system | 62598f9a60cbc95b063640b1 |
class AcidityAdmin(TranslationAdmin): <NEW_LINE> <INDENT> fields = ('acidity', 'order') <NEW_LINE> list_display = ['acidity_fr','acidity_en', 'order', 'last_modified', 'created'] <NEW_LINE> ordering = ['order'] | Manage the Acidity fields | 62598f9a0a50d4780f70513f |
class SwiftPackReader(object): <NEW_LINE> <INDENT> def __init__(self, scon, filename, pack_length): <NEW_LINE> <INDENT> self.scon = scon <NEW_LINE> self.filename = filename <NEW_LINE> self.pack_length = pack_length <NEW_LINE> self.offset = 0 <NEW_LINE> self.base_offset = 0 <NEW_LINE> self.buff = b'' <NEW_LINE> self.buf... | A SwiftPackReader that mimic read and sync method
The reader allows to read a specified amount of bytes from
a given offset of a Swift object. A read offset is kept internaly.
The reader will read from Swift a specified amount of data to complete
its internal buffer. chunk_length specifiy the amount of data
to read fr... | 62598f9aadb09d7d5dc0a2f0 |
class Elite(Selector): <NEW_LINE> <INDENT> def select_one(self, population: Population) -> Individual: <NEW_LINE> <INDENT> return population.best() <NEW_LINE> <DEDENT> @tap <NEW_LINE> def select(self, population: Population, n: int = 1) -> Sequence[Individual]: <NEW_LINE> <INDENT> super().select(population, n) <NEW_LIN... | Returns the best N individuals by total error. | 62598f9a4527f215b58e9c4b |
class TfIdfVectorizer(CountVectorizer): <NEW_LINE> <INDENT> def __init__(self, max_features=1000): <NEW_LINE> <INDENT> super().__init__(max_features) <NEW_LINE> <DEDENT> def fit(self, documents: Sequence[str]) -> None: <NEW_LINE> <INDENT> super().fit(documents) <NEW_LINE> X = super().transform(documents) <NEW_LINE> sel... | Converts a collection of textual documents to a matrix of tfidf values.
tfidf value is calculated as a combination of tf and idf values
tf stands for term frequency and it counts number of occurences of a
token in a documents with respect to total token number in a document.
tf = (number of times token appears in a d... | 62598f9a4a966d76dd5eec48 |
class _Relationship(object): <NEW_LINE> <INDENT> def __init__(self, rId, reltype, target, baseURI, external=False): <NEW_LINE> <INDENT> super(_Relationship, self).__init__() <NEW_LINE> self._rId = rId <NEW_LINE> self._reltype = reltype <NEW_LINE> self._target = target <NEW_LINE> self._baseURI = baseURI <NEW_LINE> self.... | Value object for relationship to part. | 62598f9ab57a9660fecd17e3 |
class Menu(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=30, unique=True, verbose_name="菜单名") <NEW_LINE> parent = models.ForeignKey("self", null=True, blank=True, on_delete=models.SET_NULL, verbose_name="父菜单") <NEW_LINE> icon = models.CharField(max_length=50, null=True, blank=True, verbose_name=... | 菜单 | 62598f9af8510a7c17d7e02b |
class UserProfile(models.Model): <NEW_LINE> <INDENT> user = models.OneToOneField(User, on_delete=models.CASCADE) <NEW_LINE> picture = models.ImageField("Profile picture", upload_to="profiles", null=True, blank=True) <NEW_LINE> gender = models.CharField(default='', max_length=140, blank=True, choices=GENDER_CHOICES) <NE... | User profile.
Image sizes
- picture: 300x300
Todo:
- Picture constraints (size, ...) -> django-imagekit
- Picture default url | 62598f9a435de62698e9bb5c |
class TestHopcroftKarp: <NEW_LINE> <INDENT> def test_hopcroft_karp(self): <NEW_LINE> <INDENT> graph: Dict[int, List[str]] = { 0: ["v0", "v1"], 1: ["v0", "v4"], 2: ["v2", "v3"], 3: ["v0", "v4"], 4: ["v0", "v3"], } <NEW_LINE> expected: Dict[int, str] = {0: "v1", 1: "v4", 2: "v2", 3: "v0", 4: "v3"} <NEW_LINE> hk = Hopcrof... | Testing the implementation of the Hopcroft Karp algorithm. | 62598f9a76e4537e8c3ef31d |
class Container(object): <NEW_LINE> <INDENT> def __init__(self, config, logger): <NEW_LINE> <INDENT> self.config = config <NEW_LINE> self.logger = logger <NEW_LINE> self._runner = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def runner(self): <NEW_LINE> <INDENT> if not self._runner: <NEW_LINE> <INDENT> self._runner = ... | The goal of this object is to create as little
objects as possible in order to provide functionality
for a bulk update of metadata. | 62598f9a4e4d56256637218b |
class ApiCallRenderer(object): <NEW_LINE> <INDENT> __metaclass__ = registry.MetaclassRegistry <NEW_LINE> args_type = None <NEW_LINE> additional_args_types = {} <NEW_LINE> max_execution_time = 60 <NEW_LINE> def Render(self, args, token=None): <NEW_LINE> <INDENT> raise NotImplementedError() | Baseclass for restful API renderers. | 62598f9aeab8aa0e5d30baec |
class RLFSMPhEDExReserveCopyInterface(CopyInterface): <NEW_LINE> <INDENT> def __init__(self, config = None): <NEW_LINE> <INDENT> CopyInterface.__init__(self, config) <NEW_LINE> self.rlfsm = RLFSM(config.get('rlfsm', None)) <NEW_LINE> self.mysql = MySQL(config.reserve_db_params) <NEW_LINE> <DEDENT> def set_read_only(sel... | CopyInterface using the Dynamo RLFSM. | 62598f9a656771135c4893e9 |
class User(Entity): <NEW_LINE> <INDENT> id = db.Column(db.Integer, db.ForeignKey('entity.id'), primary_key=True) <NEW_LINE> admin = db.Column(db.Boolean(name='admin_bool'), nullable=False, default=False) <NEW_LINE> requests = db.relationship(Request, back_populates='submitter') <NEW_LINE> actions = db.relationship(Acti... | User base class.
Represents users who can submit, review and/or pay out requests. It also
supplies a number of convenience methods for subclasses. | 62598f9a498bea3a75a57888 |
class Features(Model): <NEW_LINE> <INDENT> general_female_websitescore = FloatType() <NEW_LINE> general_male_websitescore = FloatType() <NEW_LINE> time_extract_weekend = FloatType() <NEW_LINE> time_extract_daytime = StringType() <NEW_LINE> user_avg_no_of_sitevisits_per_day = FloatType() <NEW_LINE> user_no_of_sitevisits... | All extracted features: general, time, users.
| 62598f9a24f1403a92685766 |
class WordCountJob(mapreduce.MapReduceJob): <NEW_LINE> <INDENT> MAPREDUCE_CLASS = WordCount | MapReduce Job that illustrates simple word count of input.
Usage:
python etl.py run tools.etl.mapreduce_examples.WordCount /coursename appid server.appspot.com --job_args='path/to/input.file path/to/output/directory' | 62598f9a097d151d1a2c0d8d |
class ISolicitudFolder(Interface): <NEW_LINE> <INDENT> pass | Marker interface
| 62598f9ad6c5a102081e1ead |
class get_value_result(object): <NEW_LINE> <INDENT> def __init__(self, success=None, error=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> self.error = error <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTra... | Attributes:
- success
- error | 62598f9ae5267d203ee6b678 |
class Square(Rectangle): <NEW_LINE> <INDENT> def __init__(self, size, x=0, y=0, id=None): <NEW_LINE> <INDENT> super().__init__(size, size, x, y, id) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> builder = "[Square] ({}) {}/{} - {}".format(self.id, self.x, self.y, self.width) <NEW_LINE> return builder <NEW_... | square class for use as an object,
-> inherits from rectangle,
-> rectangle inherits from Base | 62598f9af7d966606f747d50 |
class Location: <NEW_LINE> <INDENT> def __init__(self, longitude, latitude): <NEW_LINE> <INDENT> self.lon = float(longitude) if longitude is not None else None <NEW_LINE> self.lat = float(latitude) if latitude is not None else None <NEW_LINE> <DEDENT> def to_json(self): <NEW_LINE> <INDENT> if self.lon is None and self.... | Class that stores longitude and latitude of a property (xcen, ycen) by Cadaster
in a format supported by Kibana (longitude=lon, latitude=lat) | 62598f9a851cf427c66b8030 |
class AccessToken(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(AUTH_USER_MODEL) <NEW_LINE> token = models.CharField(max_length=255, default=long_token, db_index=True) <NEW_LINE> client = models.ForeignKey(Client) <NEW_LINE> expires = models.DateTimeField() <NEW_LINE> scope = models.IntegerField(default=c... | Default access token implementation. An access token is a time limited
token to access a user's resources.
Access tokens are outlined :rfc:`5`.
Expected fields:
* :attr:`user`
* :attr:`token`
* :attr:`client` - :class:`Client`
* :attr:`expires` - :attr:`datetime.datetime`
* :attr:`scope`
Expected methods:
* :meth:... | 62598f9a236d856c2adc92ed |
@namespace.route('/') <NEW_LINE> class BlockchainList(Resource): <NEW_LINE> <INDENT> @namespace.doc('list_blocks') <NEW_LINE> @namespace.marshal_list_with(status) <NEW_LINE> def get(self): <NEW_LINE> <INDENT> return check_compatibility() <NEW_LINE> <DEDENT> @namespace.doc('create_block') <NEW_LINE> @namespace.expect(bl... | Shows a list of all blocks, and lets you POST to add new blocks | 62598f9ac432627299fa2d3f |
class DatasetLoader_Hung1995(AbstractDatasetLoader): <NEW_LINE> <INDENT> ID: str = "3367463" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super().__init__(datasets()[DatasetLoader_Hung1995.ID]) <NEW_LINE> <DEDENT> def load( self, ) -> Dict[str, Dict[str, ConstantPerceivedHueColourMatches_Hung1995]]: <NEW_LINE> <I... | Define the *Hung and Berns (1995)* *Constant Hue Loci Data*
dataset loader.
Attributes
----------
- :attr:`colour_datasets.loaders.DatasetLoader_Hung1995.ID`
Methods
-------
- :meth:`colour_datasets.loaders.DatasetLoader_Hung1995.__init__`
- :meth:`colour_datasets.loaders.DatasetLoader_Hung1995.load`
Reference... | 62598f9a16aa5153ce400267 |
@register("CameraWidget") <NEW_LINE> class CameraWidget(DOMWidget): <NEW_LINE> <INDENT> _view_module = Unicode('camera').tag(sync=True) <NEW_LINE> _view_name = Unicode('CameraView').tag(sync=True) <NEW_LINE> _model_module = Unicode('camera').tag(sync=True) <NEW_LINE> _model_name = Unicode('CameraModel').tag(sync=True) ... | Represents a media source. | 62598f9a15baa72349461cec |
class macro_table_gen: <NEW_LINE> <INDENT> def format_row(self, row, widths, sep=', '): <NEW_LINE> <INDENT> frow = [str(item) + sep + (' ' * (width - len(item))) for item, width in list(zip(row, widths))[:-1]] + [str(row[-1])] <NEW_LINE> return ''.join(frow) <NEW_LINE> <DEDENT> def format_table(self, table, *args, **kw... | A generator for macro tables. | 62598f9ab7558d5895463398 |
class MatrixSquareRoot(Function): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def forward(ctx, input): <NEW_LINE> <INDENT> m = input.detach().numpy().astype(np.float_) <NEW_LINE> sqrtm = torch.from_numpy(scipy.linalg.sqrtm(m).real).type_as(input) <NEW_LINE> ctx.save_for_backward(sqrtm) <NEW_LINE> return sqrtm <NEW_LIN... | Square root of a positive definite matrix.
NOTE: matrix square root is not differentiable for matrices with
zero eigenvalues.
From https://github.com/steveli/pytorch-sqrtm/blob/master/sqrtm.py | 62598f9a01c39578d7f12ae7 |
class EffectMatcher(Matcher): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Matcher.__init__(self, 'EFFECTS NAME IS(\s+)(.+)') <NEW_LINE> <DEDENT> def apply(self, stack, line): <NEW_LINE> <INDENT> m = re.search(self.regex, line) <NEW_LINE> if m: <NEW_LINE> <INDENT> stack[-1].transition.effect = m.group(2)... | No documentation for this class yet.
| 62598f9ad486a94d0ba2bd3f |
class KEYWORD(FieldType): <NEW_LINE> <INDENT> def __init__(self, stored = False, lowercase = False, commas = False, scorable = False, unique = False, field_boost = 1.0): <NEW_LINE> <INDENT> ana = KeywordAnalyzer(lowercase = lowercase, commas = commas) <NEW_LINE> self.format = Frequency(analyzer = ana, field_boost = fie... | Configured field type for fields containing space-separated or comma-separated
keyword-like data (such as tags). The default is to not store positional information
(so phrase searching is not allowed in this field) and to not make the field scorable. | 62598f9a44b2445a339b6821 |
class RouterWebServiceWap(RouterWebService): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def check(personality, config): <NEW_LINE> <INDENT> if 'type' not in config: <NEW_LINE> <INDENT> raise InvalidConfigException("missing mandatory attribute 'type' in Web service configuration") <NEW_LINE> <DEDENT> if config['type']... | WAMP Application Page service. | 62598f9a6aa9bd52df0d4c37 |
class Target(ClientBaseType): <NEW_LINE> <INDENT> attrs = ['id', 'user', 'type', 'latitude', 'longitude', 'orientation', 'shape', 'background_color', 'alphanumeric', 'alphanumeric_color', 'description', 'autonomous', 'team_id', 'actionable_override'] <NEW_LINE> def __init__(self, id=None, user=None, type=None, latitude... | A target.
Attributes:
id: Optional. The ID of the target. Assigned by the interoperability
server.
user: Optional. The ID of the user who created the target. Assigned by
the interoperability server.
type: Target type, must be one of TargetType.
latitude: Optional. Target latitude in dec... | 62598f9a8da39b475be02f4e |
class FirstAP(APDecorator): <NEW_LINE> <INDENT> aps = FIRST_APS | Decorator to mark a function as yielding an access point to be tested.
The first access point must have the following properties:
- id: int, identity_property
- name: unicode
- color: unicode
- second_ap: Item, remote_ap="second_ap", | 62598f9add821e528d6d8c9e |
class IsStaffOrReadOnly(BasePermission): <NEW_LINE> <INDENT> def has_permission(self, request, view): <NEW_LINE> <INDENT> return (request.user and request.user.is_staff) or request.method in SAFE_METHODS <NEW_LINE> <DEDENT> def has_object_permission(self, request, view, obj): <NEW_LINE> <INDENT> return self.has_permiss... | The request is authenticated as a user and is staff, or is a read-only request | 62598f9add821e528d6d8c9f |
class SepConv(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_planes, out_planes, kernel_size, stride): <NEW_LINE> <INDENT> super(SepConv, self).__init__() <NEW_LINE> self.conv1 = nn.Conv2d(in_planes, out_planes, kernel_size, stride, padding=(kernel_size-1)//2, bias=False, groups=in_planes) <NEW_LINE> self.bn1 = ... | Separable Convolution. | 62598f9acb5e8a47e493c029 |
class StaticField(Construct): <NEW_LINE> <INDENT> __slots__ = ["length"] <NEW_LINE> def __init__(self, name, length): <NEW_LINE> <INDENT> Construct.__init__(self, name) <NEW_LINE> self.length = length <NEW_LINE> <DEDENT> def _parse(self, stream, context): <NEW_LINE> <INDENT> return _read_stream(stream, self.length) <NE... | A fixed-size byte field.
:param str name: field name
:param int length: number of bytes in the field | 62598f9ae76e3b2f99fd87a0 |
class getUserBalance_args: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.I32, 'uid', None, None, ), ) <NEW_LINE> def __init__(self, uid=None,): <NEW_LINE> <INDENT> self.uid = uid <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isi... | Attributes:
- uid | 62598f9a6e29344779b003c6 |
class PartOfPreorder(Preorder): <NEW_LINE> <INDENT> def _leq(self, set1, set2): <NEW_LINE> <INDENT> if len(set2) == 0: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> if len(set1) != 0: <NEW_LINE> <INDENT> return all(i1 in set2 or any(i1.is_part_of(i2) for i2 in set2) for i1 in set1) <NEW_LINE> <DEDENT> return Fals... | Preorder using the set inclusion and partOf relation to compare sets of RelationshipElements | 62598f9abde94217f370751f |
class LDIFWriter(FileWriter): <NEW_LINE> <INDENT> def __init__(self,l,writer_obj,headerStr='',footerStr=''): <NEW_LINE> <INDENT> import ldif <NEW_LINE> if isinstance(writer_obj,ldif.LDIFWriter): <NEW_LINE> <INDENT> self._ldif_writer = writer_obj <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self._ldif_writer = ldif.LDI... | Class for writing a stream LDAP search results to a LDIF file
Arguments:
l
LDAPObject instance
writer_obj
Either a file-like object or a ldif.LDIFWriter instance used for output | 62598f9a63d6d428bbee2520 |
class BoundaryConditionsData(): <NEW_LINE> <INDENT> def __init__(self, t=None, north=SingleBoundaryConditionData(), south=SingleBoundaryConditionData(), east=SingleBoundaryConditionData(), west=SingleBoundaryConditionData()): <NEW_LINE> <INDENT... | This class holds external solution for all boundaries over time. | 62598f9ad7e4931a7ef3be03 |
class PasswordError(Exception): <NEW_LINE> <INDENT> def __init__(self, errorInfo): <NEW_LINE> <INDENT> Exception.__init__(self) <NEW_LINE> self.errorInfo = errorInfo <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.errorInfo | 密码错误类 | 62598f9ae64d504609df926d |
class UserChangeForm(forms.ModelForm): <NEW_LINE> <INDENT> password = ReadOnlyPasswordHashField() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = MyUser <NEW_LINE> fields = ("email", "password", "is_admin", "is_active") <NEW_LINE> <DEDENT> def clean_password(self): <NEW_LINE> <INDENT> return self.initial["password"] | A form for updating users. Includes all the fields on the user,
but replaces the password field with admin's password hash display field. | 62598f9a7d43ff24874272b9 |
@dataclass <NEW_LINE> class ResidualInfo: <NEW_LINE> <INDENT> group_name: str <NEW_LINE> times: np.array <NEW_LINE> obs: np.array <NEW_LINE> num_times: int = field(init=False) <NEW_LINE> difference: np.array = field(init=False) <NEW_LINE> amount_data: np.array = field(init=False) <NEW_LINE> def __post_init__(self): <NE... | {begin_markdown ResidualInfo}
{spell_markdown metadata}
# `curvefit.uncertainty.predictive_validity.ResidualInfo`
## Keeps track of metadata about the residuals
## Arguments
- `group_name (str)`: name of the group
- `times (np.array)`: times that have data
- `obs (np.array)`: observations at `times`
## Attributes
... | 62598f9abe8e80087fbbedca |
class FilterLookupError(SbpyException): <NEW_LINE> <INDENT> pass | Attempted to look up filter in, e.g., solar_fluxd, but not present. | 62598f9ae5267d203ee6b67a |
class CommandWindow(): <NEW_LINE> <INDENT> def __init__(self, content): <NEW_LINE> <INDENT> self.windowId = struct.unpack(types.int32, content.read(4))[0] <NEW_LINE> self.selectedTabIndex = struct.unpack(types.int32, content.read(4))[0] <NEW_LINE> self.numTab = struct.unpack(types.int32, content.read(4))[0] <NEW_LINE> ... | TODO | 62598f9a7d847024c075c13d |
class CreateDistanceCallback(object): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> size = data.num_locations <NEW_LINE> self.matrix = {} <NEW_LINE> for from_node in range(size): <NEW_LINE> <INDENT> self.matrix[from_node] = {} <NEW_LINE> for to_node in range(size): <NEW_LINE> <INDENT> x = data.locat... | 二点間の距離を返すCallbackを定義 | 62598f9a94891a1f408b95a6 |
class Solution: <NEW_LINE> <INDENT> def splitString(self, s): <NEW_LINE> <INDENT> if not s: <NEW_LINE> <INDENT> return [[]] <NEW_LINE> <DEDENT> ans = [] <NEW_LINE> self.dfs(s, 0, [], ans) <NEW_LINE> return ans <NEW_LINE> <DEDENT> def dfs(self, s, index, chosen, answers): <NEW_LINE> <INDENT> size = len(s) <NEW_LINE> if ... | @param: : a string to be split
@return: all possible split string array | 62598f9af7d966606f747d52 |
class HlyChargeSectionParser(EspChargesSectionParser): <NEW_LINE> <INDENT> def is_section_start(self, line: str) -> bool: <NEW_LINE> <INDENT> return line == " Generate Potential Derived Charges using the Hu-Lu-Yang model" | HLY charges parser for Gaussian output | 62598f9a30dc7b766599f5b8 |
class TestResource: <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setup_class(cls): <NEW_LINE> <INDENT> cls.client = wysteria.default_client() <NEW_LINE> cls.client.connect() <NEW_LINE> cls.collection = cls.client.create_collection(_rs()) <NEW_LINE> cls.item = cls.collection.create_item(_rs(), _rs()) <NEW_LINE> cls.v... | Tests for the Resource class | 62598f9a5f7d997b871f9293 |
class TestPositionalsNargsZeroOrMoreDefault(ParserTestCase): <NEW_LINE> <INDENT> parser_signature = Sig(add_config=False, add_debug=False) <NEW_LINE> argument_signatures = [Sig('foo', nargs='*', default='bar')] <NEW_LINE> failures = ['-x'] <NEW_LINE> successes = [ ('', NS(foo='bar')), ('a', NS(foo=['a'])), ('a b', NS(f... | Test a Positional that specifies unlimited nargs and a default | 62598f9a236d856c2adc92ee |
class KmlExportTask(ExportTask): <NEW_LINE> <INDENT> name = 'KML Export' <NEW_LINE> def run(self, run_uid=None, stage_dir=None, job_name=None): <NEW_LINE> <INDENT> self.update_task_state(run_uid=run_uid, name=self.name) <NEW_LINE> sqlite = stage_dir + job_name + '.sqlite' <NEW_LINE> kmlfile = stage_dir + job_name + '.k... | Class defining KML export function. | 62598f9a3539df3088ecc020 |
class DatasetStruct(DatasetStruct_): <NEW_LINE> <INDENT> pass | structure that defines fields of a dataset
This data structure is used to store the properties of training sets and test sets within the models, so that the
textual content and the file names of the documents used to create the classifiers are included with them and they
can be easily retrieved. | 62598f9a009cb60464d0128f |
class CopyResidueTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.struc_a = ModernaStructure('file',MINI_TEMPLATE) <NEW_LINE> self.struc_b = ModernaStructure('file',MINI_TEMPLATE) <NEW_LINE> self.struc_c = ModernaStructure() <NEW_LINE> <DEDENT> def test_copy(self): <NEW_LINE> <INDENT> copi... | Makes sure a RNAResidue can be copied from
one ModernaStructure to another (or itself),
and that the resulting residue is really different. | 62598f9a4527f215b58e9c4f |
class _GoogleLandmarksInfo(object): <NEW_LINE> <INDENT> num_classes = {'gld_v1': 14951, 'gld_v2': 203094, 'gld_v2_clean': 81313} | Metadata about the Google Landmarks dataset. | 62598f9aac7a0e7691f72277 |
class Solution: <NEW_LINE> <INDENT> def common_pre(self, str1, str2): <NEW_LINE> <INDENT> cnt = 0 <NEW_LINE> for a, b in zip(str1, str2): <NEW_LINE> <INDENT> if a != b: <NEW_LINE> <INDENT> break <NEW_LINE> <DEDENT> cnt += 1 <NEW_LINE> <DEDENT> return cnt <NEW_LINE> <DEDENT> def queryLCP(self, arr, query): <NEW_LINE> <I... | @param arr: string array
@param query: query array
@return: return LCP ans array | 62598f9a4a966d76dd5eec4c |
class CompositionEventHandler(eventHandlers.DatatypeEventHandler): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def on_create(self, item, attr, trans): <NEW_LINE> <INDENT> if item._isDeleted: <NEW_LINE> <INDENT> attr.value = [self.db.getDeletedItem(sID, trans) for sID in attr.value] <NEW_LINE> <DEDENT> CompositionEventH... | Composition datatype event handler | 62598f9abaa26c4b54d4f01d |
class Traceback(List[TracebackEntry]): <NEW_LINE> <INDENT> def __init__( self, tb: Union[TracebackType, Iterable[TracebackEntry]], excinfo: Optional["ReferenceType[ExceptionInfo[BaseException]]"] = None, ) -> None: <NEW_LINE> <INDENT> self._excinfo = excinfo <NEW_LINE> if isinstance(tb, TracebackType): <NEW_LINE> <INDE... | Traceback objects encapsulate and offer higher level access to Traceback entries. | 62598f9a0c0af96317c560ee |
class InstructionsTestCase(TestCase): <NEW_LINE> <INDENT> def test_get_instruction(self): <NEW_LINE> <INDENT> for i, item in enumerate(INSTRUCTION_TABLE): <NEW_LINE> <INDENT> inst = get_instruction(i) <NEW_LINE> self.assertEqual(inst.opcode, i) <NEW_LINE> self.assertTrue(inst.mnemonic.upper()) <NEW_LINE> self.assertEqu... | Tests for dqutils.snescpu.instructions. | 62598f9aa79ad16197769dcf |
class URLPatternsFactory: <NEW_LINE> <INDENT> app_namespace = None <NEW_LINE> def get_urlpatterns(self): <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> @property <NEW_LINE> def urlpatterns(self): <NEW_LINE> <INDENT> return self.get_urlpatterns(), self.app_namespace | Allows to generate the URL patterns of a machina application.
Machina's views and URLs use a tree of ``URLPatternsFactory`` instances in order to build the
complete list of URL patterns of the forum application. This class provides a
``get_urlpatterns`` method that allows to define the URL patterns to include in the g... | 62598f9a01c39578d7f12ae9 |
class ResultSubtitle(ExternalSubtitle): <NEW_LINE> <INDENT> def __init__(self, path, language, service, link, release=None, confidence=1, keywords=None): <NEW_LINE> <INDENT> super(ResultSubtitle, self).__init__(path, language) <NEW_LINE> self.service = service <NEW_LINE> self.link = link <NEW_LINE> self.release = relea... | Subtitle found using :mod:`~subliminal.services`
:param string path: path to the subtitle
:param language: language of the subtitle
:type language: :class:`~subliminal.language.Language`
:param string service: name of the service
:param string link: download link for the subtitle
:param string release: release name of... | 62598f9a10dbd63aa1c70921 |
class Download(_request_helpers.RequestsMixin, _download.Download): <NEW_LINE> <INDENT> def _write_to_stream(self, response): <NEW_LINE> <INDENT> expected_checksum, checksum_object = _helpers._get_expected_checksum( response, self._get_headers, self.media_url, checksum_type=self.checksum ) <NEW_LINE> with response: <NE... | Helper to manage downloading a resource from a Google API.
"Slices" of the resource can be retrieved by specifying a range
with ``start`` and / or ``end``. However, in typical usage, neither
``start`` nor ``end`` is expected to be provided.
Args:
media_url (str): The URL containing the media to be downloaded.
... | 62598f9ad53ae8145f9181f9 |
class BaseController: <NEW_LINE> <INDENT> def __init__(self, app): <NEW_LINE> <INDENT> self.app = app <NEW_LINE> self.sa_session = app.model.context <NEW_LINE> self.user_manager = users.UserManager(app) <NEW_LINE> <DEDENT> def get_toolbox(self): <NEW_LINE> <INDENT> return self.app.toolbox <NEW_LINE> <DEDENT> def get_cl... | Base class for Galaxy web application controllers. | 62598f9aa05bb46b3848a5eb |
class CertificatesController(wsgi.Controller): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.cert_rpcapi = nova.cert.rpcapi.CertAPI() <NEW_LINE> super(CertificatesController, self).__init__() <NEW_LINE> <DEDENT> @extensions.expected_errors((404, 501)) <NEW_LINE> def show(self, req, id): <NEW_LINE> <I... | The x509 Certificates API HeterogeneousController for the OpenStack API. | 62598f9a76e4537e8c3ef321 |
class FolderExplorer(QWidget): <NEW_LINE> <INDENT> file_clicked = Signal(str) <NEW_LINE> ask_open_folder = Signal() <NEW_LINE> def __init__(self, parent): <NEW_LINE> <INDENT> print('folderExplorer init') <NEW_LINE> super(FolderExplorer, self).__init__() <NEW_LINE> self.parent = parent <NEW_LINE> self._folder_dir_path =... | A explorer for file folder, use Qt's model/view | 62598f9abe383301e0253562 |
class Solution: <NEW_LINE> <INDENT> @timeit <NEW_LINE> def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]: <NEW_LINE> <INDENT> from collections import defaultdict <NEW_LINE> if endWord not in wordList or not endWord or not beginWord or not wordList: <NEW_LINE> <INDENT> return []... | [126. 单词接龙 II](https://leetcode-cn.com/problems/word-ladder-ii/) | 62598f9ab7558d589546339b |
class TestResponse(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 testResponse(self): <NEW_LINE> <INDENT> pass | Response unit test stubs | 62598f9a9b70327d1c57eb0d |
class TestWebHooksApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = swagger_client.api.web_hooks_api.WebHooksApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_web_hooks_add_web_hook_subscriptions(self): <NEW_LINE> <INDENT> pass ... | WebHooksApi unit test stubs | 62598f9a596a8972361279ed |
class CohortTarget(Target): <NEW_LINE> <INDENT> cohort = models.ForeignKey('course_groups.CourseUserGroup') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> app_label = "bulk_email" <NEW_LINE> <DEDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> kwargs['target_type'] = SEND_TO_COHORT <NEW_LINE> super(CohortTarge... | Subclass of Target, specifically referring to a cohort. | 62598f9a462c4b4f79dbb776 |
class ListDonateUser(generic.DetailView): <NEW_LINE> <INDENT> model = User <NEW_LINE> template_name = 'list-donate.html' <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super(ListDonateUser, self).get_context_data(**kwargs) <NEW_LINE> order = self.request.GET.get('order') <NEW_LINE> neg =... | 用户查看自己的所有捐赠
| 62598f9a090684286d59358f |
class Graphic(mmw.Drawable): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> if self.useRelativePos: <NEW_LINE> <INDENT> return 'mmw.Graphic() at ({}/{}, {}/{})'.format( self.xRel, self.x, self.yRel, self.y) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return 'mmw.Graphic() at ({}, {})'.format(self.x, self... | Pseudo-graphic drawable object | 62598f9a498bea3a75a5788c |
class DBAPIProxyCursor(object): <NEW_LINE> <INDENT> def __init__(self, engine, conn): <NEW_LINE> <INDENT> self.engine = engine <NEW_LINE> self.connection = conn <NEW_LINE> self.cursor = conn.cursor() <NEW_LINE> <DEDENT> def execute(self, stmt, parameters=None, **kw): <NEW_LINE> <INDENT> if parameters: <NEW_LINE> <INDEN... | Proxy a DBAPI cursor.
Tests can provide subclasses of this to intercept
DBAPI-level cursor operations. | 62598f9afff4ab517ebcd55a |
class Model(object): <NEW_LINE> <INDENT> def __init__(self, model, shared_variables, name): <NEW_LINE> <INDENT> self.model = model <NEW_LINE> self.shared_variables = shared_variables <NEW_LINE> self.name = name <NEW_LINE> self.trace = None <NEW_LINE> <DEDENT> def _repr_latex_(self): <NEW_LINE> <INDENT> return self.mode... | Encapsulate constituent parts of a PyMC3 model and provide useful functionality
Holds:
* model
* trace
* shared variables
* a name | 62598f9a442bda511e95c1d3 |
class PyPenetrance(BasePenetrance): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> _simuPOP_la.PyPenetrance_swiginit(self, _simuPOP_la.new_PyP... | Details:
This penetrance operator assigns penetrance values by calling a
user provided function. It accepts a list of loci (parameter
loci), and a Python function func which should be defined with one
or more of parameters geno, mut, gen, ind, pop, or names of
information fields. When this operator... | 62598f9abde94217f3707520 |
class WorkerFramecount(QObject): <NEW_LINE> <INDENT> framecount = pyqtSignal(int) <NEW_LINE> finished = pyqtSignal() <NEW_LINE> @pyqtSlot() <NEW_LINE> def run(self, video_input, ffmpeg_path): <NEW_LINE> <INDENT> cmd = "\"" + ffmpeg_path + "\"" + " -i " + "\"" + video_input + "\"" + " -hide_banner -loglevel 32 -map 0:v:... | WorkerFramecount
Signals
----------
framecount : emits the framecount of the subprogress in the run function
finished : emits if the run function is finished | 62598f9ae64d504609df926e |
class ISimMapSettings(Interface): <NEW_LINE> <INDENT> mapserver = schema.TextLine( title=_(u"Mapserver"), description=_(u"The URL of the mapserver"), required=True, default=u'http://localhost.leamgroup.com/cgi-bin/mapserv', ) <NEW_LINE> baselayer = schema.TextLine( title=_(u"OpenLayers Baselayer"), description=_(u"A ja... | Global SimMap settings. This describes records stored in the
configuration registry and obtainable via plone.registry. | 62598f9a3eb6a72ae038a3ac |
class MrePgrd(MelRecord): <NEW_LINE> <INDENT> rec_sig = b'PGRD' <NEW_LINE> melSet = MelSet( MelStruct(b'DATA', [u'2I', u'2s', u'H'], u'pgrd_x', u'pgrd_y', u'unknown1', u'point_count'), MelMWId(), MelBase(b'PGRP', u'point_array'), MelBase(b'PGRC', u'point_edges'), ) <NEW_LINE> __slots__ = melSet.getSlotsUsed() | Path Grid. | 62598f9ae5267d203ee6b67b |
class Total(BaseModel): <NEW_LINE> <INDENT> amount: float = Field(..., alias="amount") <NEW_LINE> currency: int = Field(..., alias="currency") | Object: total | 62598f9a6fb2d068a7693cea |
class EventQueryParameter(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'event_code': {'key': 'eventCode', 'type': 'str'}, 'severity': {'key': 'severity', 'type': 'str'}, 'event_type': {'key': 'eventType', 'type': 'str'}, 'fabric_name': {'key': 'fabricName', 'type': 'str'}, 'affected_object_friend... | Implements the event query parameter.
:param event_code: The source id of the events to be queried.
:type event_code: str
:param severity: The severity of the events to be queried.
:type severity: str
:param event_type: The type of the events to be queried.
:type event_type: str
:param fabric_name: The affected object... | 62598f9af7d966606f747d54 |
@dataclass <NEW_LINE> class Paging(BaseModel): <NEW_LINE> <INDENT> cursors: Optional[PagingCursors] = field() <NEW_LINE> previous: Optional[str] = field() <NEW_LINE> next: Optional[str] = field(repr=True) | Refer: https://developers.facebook.com/docs/graph-api/using-graph-api/#paging | 62598f9a45492302aabfc245 |
class OverridesGetattr(Persistent): <NEW_LINE> <INDENT> def __getattr__(self, name): <NEW_LINE> <INDENT> if name.startswith("__") and name.endswrith("__"): <NEW_LINE> <INDENT> raise AttributeError(name) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return name.upper(), self._p_changed | Example of overriding __getattr__
| 62598f9a0a50d4780f705145 |
class EdiDocument(models.Model): <NEW_LINE> <INDENT> _inherit = 'edi.document' <NEW_LINE> pick_request_tutorial_ids = fields.One2many( 'edi.pick.request.tutorial.record', 'doc_id', string="Stock Transfer Requests", ) <NEW_LINE> move_request_tutorial_ids = fields.One2many( 'edi.move.request.tutorial.record', 'doc_id', s... | Extend ``edi.document`` to include stock transfer tutorial records | 62598f9a236d856c2adc92ef |
@attr.s(auto_attribs=True) <NEW_LINE> class Map: <NEW_LINE> <INDENT> w: int <NEW_LINE> h: int <NEW_LINE> floor: int = 0 <NEW_LINE> dijkstra_map: Any = None <NEW_LINE> directory: dict = Dict[Tuple[int, int], List[Tuple[int, int]]] <NEW_LINE> fov_map: Any = None <NEW_LINE> tiles: Any = None | The size of the playable area, including the dijkstra map used for pathfinding. | 62598f9a2ae34c7f260aae4e |
class ItemTypesObject(QObject): <NEW_LINE> <INDENT> itemTypesChanged = pyqtSignal(list, name='itemTypesChanged') | This class exists so that a signal can be emitted when item_types changes. | 62598f9a498bea3a75a5788d |
class SchedulerAPI(object): <NEW_LINE> <INDENT> RPC_API_VERSION = '1.5' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(SchedulerAPI, self).__init__() <NEW_LINE> target = messaging.Target(topic=CONF.scheduler_topic, version=self.RPC_API_VERSION) <NEW_LINE> self.client = rpc.get_client(target, version_cap='1.5'... | Client side of the scheduler rpc API.
API version history:
1.0 - Initial version.
1.1 - Add get_pools method
1.2 - Introduce Share Instances:
Replace create_share() - > create_share_instance()
1.3 - Add create_consistency_group method
1.4 - Add migrate_share_to_host method
1.5 - Add cr... | 62598f9a3539df3088ecc022 |
@world.define_property <NEW_LINE> class IndefiniteName(Property) : <NEW_LINE> <INDENT> numargs = 1 | Gives the indefinite name of an object. For instance, "a ball"
or "Bob". | 62598f9a3cc13d1c6d4654d9 |
class Unit(Object): <NEW_LINE> <INDENT> def __init__(self, health, **kwargs): <NEW_LINE> <INDENT> Object.__init__(self, **kwargs) <NEW_LINE> self.health = health | Generic unit class | 62598f9a009cb60464d01292 |
class ImportDefinesSection(SectionBase): <NEW_LINE> <INDENT> def __init__(self, first_line_num, import_resolver): <NEW_LINE> <INDENT> SourceFile.SectionBase.__init__(self, first_line_num) <NEW_LINE> self._import_resolver = import_resolver <NEW_LINE> <DEDENT> def TryAppend(self, line, line_num): <NEW_LINE> <INDENT> if n... | Section containing an import of PDDM-DEFINES from an external file. | 62598f9a67a9b606de545d42 |
class DeleteLineBeforeCursor(ScintillaCmdKeyExecute): <NEW_LINE> <INDENT> key_bindings = {'default': 'C-S-BACK'} <NEW_LINE> cmd = wx.stc.STC_CMD_DELLINELEFT | Delete all characters on the line before the cursor | 62598f9abaa26c4b54d4f01f |
class Psychic(Human): <NEW_LINE> <INDENT> def __init__(self, ChID, Name, Role="Psychic", Life=True): <NEW_LINE> <INDENT> super(Psychic, self).__init__(ChID, Name, Role, Life=True) <NEW_LINE> <DEDENT> def NightPhase(self): <NEW_LINE> <INDENT> pass | docstring for Psychic | 62598f9a21a7993f00c65cef |
class IotHubSkuDescription(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'resource_type': {'readonly': True}, 'sku': {'required': True}, 'capacity': {'required': True}, } <NEW_LINE> _attribute_map = { 'resource_type': {'key': 'resourceType', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'IotHubSkuInf... | SKU properties.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
:ivar resource_type: The type of the resource.
:vartype resource_type: str
:ivar sku: Required. The type of the resource.
:vartype sku: ~azure.m... | 62598f9a91af0d3eaad39b77 |
class scale_color_crayon(scale): <NEW_LINE> <INDENT> VALID_SCALES = [] <NEW_LINE> def __radd__(self, gg): <NEW_LINE> <INDENT> colors = sorted(gg.data[gg._aes['color']].unique()) <NEW_LINE> gg.manual_color_list = [] <NEW_LINE> for color in colors: <NEW_LINE> <INDENT> new_color = CRAYON_COLORS.get(color.lower()) <NEW_LIN... | Use crayon colors in your plots
Examples
--------
>>> from ggplot import *
>>> import pandas as pd
>>> df = pd.DataFrame(dict(x=range(3), y=range(3), crayon=['sunset orange', 'inchworm', 'cadet blue']))
>>> p = ggplot(aes(x='x', y='y', color='crayon'), data=df)
>>> p += geom_point(size=250)
>>> print(p + scale_color_c... | 62598f9a55399d3f0562628e |
class NamespaceCompleter(object): <NEW_LINE> <INDENT> def __init__(self, ns): <NEW_LINE> <INDENT> super(NamespaceCompleter, self).__init__() <NEW_LINE> self.matches = [] <NEW_LINE> self.ns = ns <NEW_LINE> <DEDENT> def search_tree(self, root, path): <NEW_LINE> <INDENT> node = root <NEW_LINE> for p in path: <NEW_LINE> <I... | Readline completer using a dictionary namespace. | 62598f9a4e4d562566372191 |
class Number(NumericMatcher): <NEW_LINE> <INDENT> CLASS = numbers.Number | Matches any number
(integer, float, complex, custom number types, etc.). | 62598f9abe383301e0253564 |
class _Graph3DBars(Graph): <NEW_LINE> <INDENT> def __init__(self, *args, **keywords): <NEW_LINE> <INDENT> Graph.__init__(self, *args, **keywords) <NEW_LINE> self.axisKeys = ['x', 'y', 'z'] <NEW_LINE> self._axisInit() <NEW_LINE> <DEDENT> def process(self): <NEW_LINE> <INDENT> self.fig = plt.figure() <NEW_LINE> ax = Axes... | Not functioning in all matplotlib versions
| 62598f9a8e71fb1e983bb823 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.